Browse Source
* ✨ feat: popover Component Token * ✨ feat: update * ✨ feat: update * ✨ feat: update * ✨ feat: update * ✨ feat: update * ✨ feat: update snap * ✨ feat: update * ✨ feat: update * ✨ feat: update * ✨ feat: updatepull/42648/head
黑雨
2 years ago
committed by
GitHub
9 changed files with 228 additions and 10 deletions
@ -0,0 +1,7 @@ |
|||
## zh-CN |
|||
|
|||
Component Token Debug. |
|||
|
|||
## en-US |
|||
|
|||
Component Token Debug. |
@ -0,0 +1,33 @@ |
|||
import { ConfigProvider, Popover } from 'antd'; |
|||
import React from 'react'; |
|||
|
|||
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalPopover } = Popover; |
|||
|
|||
const content = ( |
|||
<div> |
|||
<p>Content</p> |
|||
<p>Content</p> |
|||
</div> |
|||
); |
|||
|
|||
const App: React.FC = () => ( |
|||
<ConfigProvider |
|||
theme={{ |
|||
components: { |
|||
Popover: { |
|||
minWidth: 40, |
|||
}, |
|||
}, |
|||
}} |
|||
> |
|||
<InternalPopover content={content} title="Title" /> |
|||
<InternalPopover |
|||
content={content} |
|||
title="Title" |
|||
placement="bottomLeft" |
|||
style={{ width: 250 }} |
|||
/> |
|||
</ConfigProvider> |
|||
); |
|||
|
|||
export default App; |
Loading…
Reference in new issue