Skip to content

Button 按钮

常用的操作按钮。

基本用法

使用 typeplainroundcircle 来定义按钮的样式。

禁用状态

使用 disabled 属性来定义按钮是否被禁用。

加载状态

使用 loading 属性来定义按钮是否加载中。

链接按钮

按钮组

以按钮组的方式出现,常用于多项类似操作。

Button API

属性

属性说明类型默认值
type按钮类型default | primary | success | warning | info | danger''
size按钮尺寸large | default | small''
plain是否为朴素按钮booleanundefined
link是否为链接按钮booleanundefined
round是否为圆角按钮booleanundefined
circle是否为圆形按钮booleanfalse
loading是否加载中booleanfalse
disabled是否禁用booleanfalse
iconIcon 组件Componentnull

ButtonGroup API

属性说明类型默认值
direction方向horizontal | vertical'horizontal'
size尺寸large | default | small''
type类型default | primary | success | warning | info | danger''