You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.1 KiB
29 lines
1.1 KiB
6 years ago
|
## Button
|
||
|
|
||
|
常用的操作按钮
|
||
|
|
||
|
### Button props
|
||
|
|
||
|
属性 | 说明 | 类型 | 可选值 | 默认值
|
||
|
--- | --- | --- | --- | ---
|
||
|
title | 标题 | String / DOM | - | -
|
||
|
type | 类型 | String | primary、ghost、dashed、text、info、success、warning、error | -
|
||
|
shape | 形状 | String | circle或者不设置 | -
|
||
|
size | 大小 | String | large、small、default、xsmall | -
|
||
|
loading | 是否为加载中状态 | Boolean | - | -
|
||
|
disabled | 是否禁用 | Boolean | - | -
|
||
|
visible | 在按钮组中,按钮是否显示 | Boolean | - | true
|
||
|
html-type | 设置button原生的type | String | button、submit、reset | button
|
||
|
icon | 按钮的图标类型 | String | - | -
|
||
|
long | 开启后,长度为 100% | Boolean | - | false
|
||
|
value | 按钮的值,可用于双向绑定 | any | - | -
|
||
|
|
||
|
ButtonGroup props
|
||
|
|
||
|
属性 | 说明 | 类型 | 可选值 | 默认值
|
||
|
--- | --- | --- | --- | ---
|
||
|
size | 大小 | String | large、default、small、xsmall | -
|
||
|
shape | 形状 | String | - | -
|
||
|
vertical | 是否纵向排列按钮组 | Boolean | - | -
|
||
|
value | 按钮的值,可用于双向绑定 | any | - | -
|