Skip to content

Button 按钮 ​

常用的操作按钮。

基础用法 ​

禁用状态 ​

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

文字按钮 ​

没有边框和背景色的按钮。

调整尺寸 ​

除了默认的大小,按钮组件还提供了几种额外的尺寸可供选择,以便适配不同的场景。

自定义颜色 ​

您可以自定义按钮颜色。

我们将自动计算 hover 和 active 颜色。

Button Attributes ​

AttributeDescriptionTypeAccepted ValuesDefault
sizebutton sizestringlarge / default /small—
typebutton typestringprimary / success / warning / danger / info / text—
plaindetermine whether it's a plain buttonboolean—false
rounddetermine whether it's a round buttonboolean—false
circledetermine whether it's a circle buttonboolean—false
disableddisable the buttonboolean—false

Button 插槽 ​

插槽名说明
default自定义默认内容

Released under the MIT License.