[improvement] Tag: add size prop (#1949)

This commit is contained in:
neverland
2018-10-17 15:16:32 +08:00
committed by GitHub
parent 935108c15c
commit d252a66b77
6 changed files with 43 additions and 5 deletions
+11 -1
View File
@@ -54,11 +54,21 @@ Vue.use(Tag);
<van-tag color="#7232dd" plain>Tag</van-tag>
```
#### Custom Size
```html
<van-tag>Tag</van-tag>
<van-tag size="medium">Tag</van-tag>
<van-tag size="large">Tag</van-tag>
```
### API
| Attribute | Description | Type | Default |
|-----------|-----------|-----------|-------------|
| type | Type, can be set to `primary` `success` `danger` | `String` | `''`|
| type | Type, can be set to `primary` `success` `danger` | `String` | - |
| size | Size, can be set to `large` `medium` | `String` | - |
| color | Custom color | `String` | - |
| plain | Whether to be plain style | `Boolean` | `false` |
| round | Whether to be round style | `Boolean` | `false` |
| mark | Wtether to be mark style | `Boolean` | `false` |