[improvement] Tag: add color prop (#1946)

This commit is contained in:
neverland
2018-10-17 14:37:27 +08:00
committed by GitHub
parent 995ae8c300
commit abbde67325
5 changed files with 51 additions and 7 deletions
+9
View File
@@ -36,6 +36,15 @@ Vue.use(Tag);
<van-tag mark type="success">Tag</van-tag>
```
#### Custom Color
```html
<van-tag color="#f2826a">Tag</van-tag>
<van-tag color="#f2826a" plain>Tag</van-tag>
<van-tag color="#7232dd">Tag</van-tag>
<van-tag color="#7232dd" plain>Tag</van-tag>
```
### API
| Attribute | Description | Type | Default |