[improvement] Card: add tag prop (#1878)

This commit is contained in:
neverland
2018-09-30 15:46:05 +08:00
committed by GitHub
parent 69151078cc
commit 6c983929c6
6 changed files with 28 additions and 6 deletions
+4 -2
View File
@@ -26,9 +26,10 @@ Vue.use(Card);
```html
<van-card
title="标题"
desc="描述"
num="2"
tag="标签"
desc="描述"
title="标题"
price="2.00"
:thumb="imageURL"
>
@@ -46,6 +47,7 @@ Vue.use(Card);
| thumb | 左侧图片 | `String` | - |
| title | 标题 | `String` | - |
| desc | 描述 | `String` | - |
| tag | 标签 | `String` | - |
| num | 商品数量 | `String | Number` | - |
| price | 商品价格 | `String | Number` | - |
| centered | 内容是否垂直居中 | `String` | `false` |