Button 按钮
常用的操作按钮。
基础用法
禁用状态
你可以使用 disabled 属性来定义按钮是否被禁用。
文字按钮
没有边框和背景色的按钮。
调整尺寸
除了默认的大小,按钮组件还提供了几种额外的尺寸可供选择,以便适配不同的场景。
自定义颜色
您可以自定义按钮颜色。
我们将自动计算 hover 和 active 颜色。
Button Attributes
| Attribute | Description | Type | Accepted Values | Default |
|---|---|---|---|---|
| size | button size | string | large / default /small | — |
| type | button type | string | primary / success / warning / danger / info / text | — |
| plain | determine whether it's a plain button | boolean | — | false |
| round | determine whether it's a round button | boolean | — | false |
| circle | determine whether it's a circle button | boolean | — | false |
| disabled | disable the button | boolean | — | false |
Button 插槽
| 插槽名 | 说明 |
|---|---|
| default | 自定义默认内容 |
Vangle