mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[new feature] Rate: add icon-class prop (#1026)
This commit is contained in:
parent
d7fc30fed7
commit
d5f36e05e3
@ -91,3 +91,11 @@ Page({
|
|||||||
| 类名 | 说明 |
|
| 类名 | 说明 |
|
||||||
|-----------|-----------|
|
|-----------|-----------|
|
||||||
| custom-class | 根节点样式类 |
|
| custom-class | 根节点样式类 |
|
||||||
|
| icon-class | 图标样式类 |
|
||||||
|
|
||||||
|
### 更新日志
|
||||||
|
|
||||||
|
| 版本 | 类型 | 内容 |
|
||||||
|
|-----------|-----------|-----------|
|
||||||
|
| 0.4.7 | feature | 新增组件 |
|
||||||
|
| 0.4.9 | feature | 增加 icon-class 外部样式类 |
|
||||||
|
@ -3,6 +3,8 @@ import { VantComponent } from '../common/component';
|
|||||||
VantComponent({
|
VantComponent({
|
||||||
field: true,
|
field: true,
|
||||||
|
|
||||||
|
classes: ['icon-class'],
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
readonly: Boolean,
|
readonly: Boolean,
|
||||||
disabled: Boolean,
|
disabled: Boolean,
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
wx:for="{{ list }}"
|
wx:for="{{ list }}"
|
||||||
wx:key="index"
|
wx:key="index"
|
||||||
class="van-rate__item"
|
class="van-rate__item"
|
||||||
|
custom-class="icon-class"
|
||||||
size="{{ size }}px"
|
size="{{ size }}px"
|
||||||
data-index="{{ index }}"
|
data-index="{{ index }}"
|
||||||
name="{{ item ? icon : voidIcon }}"
|
name="{{ item ? icon : voidIcon }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user