Browse Source
* feat: add size prop * test: add test case * docs: update doc * fix: style issue * docs: add text size demo * test: update snapshotspull/43136/head
红果汁
1 year ago
committed by
GitHub
9 changed files with 2563 additions and 3 deletions
File diff suppressed because it is too large
@ -0,0 +1,7 @@ |
|||
## zh-CN |
|||
|
|||
触发器有大、中、小三种尺寸,若不设置 size,则尺寸为中。 |
|||
|
|||
## en-US |
|||
|
|||
The trigger has three sizes: large, medium and small. If size is not set, the size will be medium. |
@ -0,0 +1,19 @@ |
|||
import { ColorPicker, Space } from 'antd'; |
|||
import React from 'react'; |
|||
|
|||
const Demo = () => ( |
|||
<Space> |
|||
<Space direction="vertical"> |
|||
<ColorPicker size="small" /> |
|||
<ColorPicker /> |
|||
<ColorPicker size="large" /> |
|||
</Space> |
|||
<Space direction="vertical"> |
|||
<ColorPicker size="small" showText /> |
|||
<ColorPicker showText /> |
|||
<ColorPicker size="large" showText /> |
|||
</Space> |
|||
</Space> |
|||
); |
|||
|
|||
export default Demo; |
Loading…
Reference in new issue