Skip to content

Button 按钮

常用的操作按钮。

基础用法

使用 plainroundcircle 来定义按钮的样式。 使用 loading定义按钮加载。 使用 icon定义按钮前缀图标。

loading

尺寸设置

使用 size来定义按钮的大小。

loading

类型设置

使用 type 来定义按钮的主题样式。

loading

Button Attributes

NameDescriptionTypeDefault
size按钮尺寸enum - 'large'| 'small'
type按钮类型enum - 'primary'| 'success'| 'warning'| 'danger'| 'info'
plain按钮是否为朴素类型booleanfalse
round按钮是否为圆角类型booleanfalse
circle按钮是否为圆形类型booleanfalse
loading按钮是否在加载booleanfalse
disabled按钮是否禁用booleanfalse
icon按钮前缀图标名string
autofocus和button原生属性 autofocus 相同booleanfalse
native-type和button原生属性 type 相同enum - 'button'| 'submit'| 'reset'button