[new feature] Button: add info type (#2831)

This commit is contained in:
neverland
2019-02-24 16:50:01 +08:00
committed by GitHub
parent ac76ca0b40
commit 68909d6432
6 changed files with 26 additions and 8 deletions

View File

@@ -11,11 +11,12 @@ Vue.use(Button);
#### 按钮类型
支持`default`、`primary`、`warning`、`danger`种类型,默认为`default`
支持`default`、`primary`、`info`、`warning`、`danger`种类型,默认为`default`
```html
<van-button type="default">默认按钮</van-button>
<van-button type="primary">主要按钮</van-button>
<van-button type="info">信息按钮</van-button>
<van-button type="warning">警告按钮</van-button>
<van-button type="danger">危险按钮</van-button>
```
@@ -65,7 +66,7 @@ Vue.use(Button);
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| type | 类型,可选值为 `primary` `warning` `danger` | `String` | `default` | - |
| type | 类型,可选值为 `primary` `info` `warning` `danger` | `String` | `default` | 1.6.6 |
| size | 尺寸,可选值为 `large` `small` `mini` | `String` | `normal` | - |
| text | 文字 | `String` | - | - |
| tag | HTML 标签 | `String` | `button` | - |