[new feature] Card: add origin-price slot (#2588)

This commit is contained in:
neverland
2019-01-22 21:53:47 +08:00
committed by GitHub
parent 11cb38b65c
commit d9da76677c
3 changed files with 18 additions and 9 deletions
+3 -1
View File
@@ -22,7 +22,8 @@ Vue.use(Card);
```
#### 高级用法
可以通过具名`slot`添加定制内容
可以通过具名插槽添加定制内容
```html
<van-card
@@ -64,6 +65,7 @@ Vue.use(Card);
| desc | 自定义描述 |
| num | 自定义数量 |
| price | 自定义价格 |
| origin-price | 自定义商品原价 |
| thumb | 自定义图片 |
| tags | 自定义描述下方的内容 |
| footer | 自定义右下角内容 |