[new feature] Rate: add icon-class prop (#1026)

This commit is contained in:
健忘症患者丶 2018-12-06 20:18:53 +08:00 committed by neverland
parent d7fc30fed7
commit d5f36e05e3
3 changed files with 11 additions and 0 deletions

View File

@ -91,3 +91,11 @@ Page({
| 类名 | 说明 |
|-----------|-----------|
| custom-class | 根节点样式类 |
| icon-class | 图标样式类 |
### 更新日志
| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 0.4.7 | feature | 新增组件 |
| 0.4.9 | feature | 增加 icon-class 外部样式类 |

View File

@ -3,6 +3,8 @@ import { VantComponent } from '../common/component';
VantComponent({
field: true,
classes: ['icon-class'],
props: {
readonly: Boolean,
disabled: Boolean,

View File

@ -6,6 +6,7 @@
wx:for="{{ list }}"
wx:key="index"
class="van-rate__item"
custom-class="icon-class"
size="{{ size }}px"
data-index="{{ index }}"
name="{{ item ? icon : voidIcon }}"