mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Doc] Button api
This commit is contained in:
parent
0bd557bdd4
commit
3c5cc03b4c
@ -60,7 +60,7 @@ Vue.use(Button);
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| type | Can be set to `primary` `warning` `danger` | `String` | `default` |
|
||||
| size | Can be set to `normal` `large` `small` `mini` | `String` | `normal` |
|
||||
| size | Can be set to `large` `small` `mini` | `String` | `normal` |
|
||||
| text | Text | `String` | - |
|
||||
| tag | Tag | `String` | `button` |
|
||||
| native-type | Native Type Attribute | `String` | `''` |
|
||||
|
@ -65,10 +65,10 @@ Vue.use(Button);
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| type | 类型,可选值为 `primary` `warning` `danger` | `String` | `default` | - |
|
||||
| size | 尺寸,可选值为 `normal` `large` `small` `mini` | `String` | `normal` | - |
|
||||
| size | 尺寸,可选值为 `large` `small` `mini` | `String` | `normal` | - |
|
||||
| text | 文字 | `String` | - | - |
|
||||
| tag | HTML 标签 | `String` | `button` | - |
|
||||
| native-type | 类型(原生) | `String` | - | - |
|
||||
| native-type | 原生 type 属性 | `String` | - | - |
|
||||
| disabled | 是否禁用按钮 | `Boolean` | `false` | - |
|
||||
| loading | 是否显示为加载状态 | `Boolean` | `false` | - |
|
||||
| block | 是否为块级元素 | `Boolean` | `false` | - |
|
||||
|
Loading…
x
Reference in New Issue
Block a user