Button 按钮
基础用法
使用 type
、plain
、round
和 circle
来定义按钮的样式。
你可以使用 disabled
属性来定义按钮是否被禁用。
禁用状态
图标按钮
使用 icon
属性来为按钮添加图标。
不同尺寸
使用 size
属性额外配置尺寸,可使用 large
和small
两种值。
链接按钮
通过设置 link
属性为 true
来显示链接按钮。
加载中
通过设置 loading
属性为 true
来显示加载中状态。
Button API
Button Attributes
Name | Description | Type | Default | Version |
---|---|---|---|---|
size | 尺寸 | large | small | — | |
type | 类型 | primary | success | warning | danger | info | — | |
plain | 朴素按钮 | boolean | false | |
link | 链接按钮 | boolean | false | |
round | 圆角按钮 | boolean | false | |
circle | 圆形按钮 | boolean | false | |
loading | 加载中 | boolean | false | |
disabled | 禁用 | boolean | false | |
icon | 图标组件 | string / Component | — |