mirror of
https://github.com/youzan/vant.git
synced 2026-05-02 01:01:43 +08:00
[new feature] Rate: add icon、void-icon prop (#2148)
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
:class="b('item')"
|
||||
:size="size + 'px'"
|
||||
:data-index="index"
|
||||
:name="full ? 'star' : 'star-o'"
|
||||
:name="full ? icon : voidIcon"
|
||||
:color="disabled ? disabledColor : full ? color : voidColor"
|
||||
@click="onSelect(index)"
|
||||
/>
|
||||
@@ -29,6 +29,14 @@ export default create({
|
||||
type: Number,
|
||||
default: 20
|
||||
},
|
||||
icon: {
|
||||
type: String,
|
||||
default: 'star'
|
||||
},
|
||||
voidIcon: {
|
||||
type: String,
|
||||
default: 'star-o'
|
||||
},
|
||||
color: {
|
||||
type: String,
|
||||
default: '#ffd21e'
|
||||
|
||||
Reference in New Issue
Block a user