使用

Color:
Size:
md
Disabled
wide
Full width
Outline style
Ghost style
Link style
Soft style
Dash style
With loading
Loading positon:

尺寸

Buttonsize属性支持: "xs", "sm", "md", "lg"; 不支持自定义尺寸

颜色

Buttoncolor属性支持: "primary", "secondary", "accent", "info", "success", "warning", "error","neutral"; 不支持自定义颜色

fullWidth

ButtonfullWidth属性为true时, 会设置宽度为 100%

Link样式

Buttonlink属性为 true 时, 会渲染为link风格的样式. 此时outlineghost属性将被忽略.

头部/尾部图标

ButtonstartIcon/endIcon属性可以用来显示自定义的头部/尾部图标

tips: 一旦定义则相应位置的loading将被忽略.

glass 型

Buttonglass属性为 true 时, 会应用毛玻璃效果.

tips: 需要在图像背景下才能体现效果

宽高相等的形状

Buttonshape属性支持: "square"(正方形)和"circle"(圆形), 两者都是宽高相等的形状, 对于显示单个字符或者显示图标的按钮非常有用.

color,size,ghost属性都可以运用到这两个形状上