Browse Source
* feat: Tag support borderless * update demo * update colorFillSecondary * update color * fix * update demo sizepull/41371/head
lijianan
2 years ago
committed by
GitHub
12 changed files with 1010 additions and 25 deletions
@ -0,0 +1,7 @@ |
|||
## zh-CN |
|||
|
|||
无边框模式。 |
|||
|
|||
## en-US |
|||
|
|||
borderless. |
@ -0,0 +1,55 @@ |
|||
import { Divider, Space, Tag } from 'antd'; |
|||
import React from 'react'; |
|||
|
|||
const App: React.FC = () => ( |
|||
<> |
|||
<Space size="small" wrap> |
|||
<Tag bordered={false}>Tag 1</Tag> |
|||
<Tag bordered={false}>Tag 2</Tag> |
|||
<Tag bordered={false} closable> |
|||
Tag 3 |
|||
</Tag> |
|||
<Tag bordered={false} closable> |
|||
Tag 4 |
|||
</Tag> |
|||
</Space> |
|||
<Divider /> |
|||
<Space size="small" wrap> |
|||
<Tag bordered={false} color="magenta"> |
|||
magenta |
|||
</Tag> |
|||
<Tag bordered={false} color="red"> |
|||
red |
|||
</Tag> |
|||
<Tag bordered={false} color="volcano"> |
|||
volcano |
|||
</Tag> |
|||
<Tag bordered={false} color="orange"> |
|||
orange |
|||
</Tag> |
|||
<Tag bordered={false} color="gold"> |
|||
gold |
|||
</Tag> |
|||
<Tag bordered={false} color="lime"> |
|||
lime |
|||
</Tag> |
|||
<Tag bordered={false} color="green"> |
|||
green |
|||
</Tag> |
|||
<Tag bordered={false} color="cyan"> |
|||
cyan |
|||
</Tag> |
|||
<Tag bordered={false} color="blue"> |
|||
blue |
|||
</Tag> |
|||
<Tag bordered={false} color="geekblue"> |
|||
geekblue |
|||
</Tag> |
|||
<Tag bordered={false} color="purple"> |
|||
purple |
|||
</Tag> |
|||
</Space> |
|||
</> |
|||
); |
|||
|
|||
export default App; |
@ -0,0 +1,7 @@ |
|||
## zh-CN |
|||
|
|||
深色背景中的无边框模式。 |
|||
|
|||
## en-US |
|||
|
|||
borderless in layout background. |
@ -0,0 +1,58 @@ |
|||
import { Divider, Space, Tag, theme } from 'antd'; |
|||
import React from 'react'; |
|||
|
|||
const App: React.FC = () => { |
|||
const { token } = theme.useToken(); |
|||
return ( |
|||
<div style={{ backgroundColor: token.colorBgLayout, padding: 16 }}> |
|||
<Space size="small" wrap> |
|||
<Tag bordered={false}>Tag 1</Tag> |
|||
<Tag bordered={false}>Tag 2</Tag> |
|||
<Tag bordered={false} closable> |
|||
Tag 3 |
|||
</Tag> |
|||
<Tag bordered={false} closable> |
|||
Tag 4 |
|||
</Tag> |
|||
</Space> |
|||
<Divider /> |
|||
<Space size="small" wrap> |
|||
<Tag bordered={false} color="magenta"> |
|||
magenta |
|||
</Tag> |
|||
<Tag bordered={false} color="red"> |
|||
red |
|||
</Tag> |
|||
<Tag bordered={false} color="volcano"> |
|||
volcano |
|||
</Tag> |
|||
<Tag bordered={false} color="orange"> |
|||
orange |
|||
</Tag> |
|||
<Tag bordered={false} color="gold"> |
|||
gold |
|||
</Tag> |
|||
<Tag bordered={false} color="lime"> |
|||
lime |
|||
</Tag> |
|||
<Tag bordered={false} color="green"> |
|||
green |
|||
</Tag> |
|||
<Tag bordered={false} color="cyan"> |
|||
cyan |
|||
</Tag> |
|||
<Tag bordered={false} color="blue"> |
|||
blue |
|||
</Tag> |
|||
<Tag bordered={false} color="geekblue"> |
|||
geekblue |
|||
</Tag> |
|||
<Tag bordered={false} color="purple"> |
|||
purple |
|||
</Tag> |
|||
</Space> |
|||
</div> |
|||
); |
|||
}; |
|||
|
|||
export default App; |
Loading…
Reference in new issue