support Checkbox
support Checkbox
This commit is contained in:
parent
06322514c6
commit
cbe03a12b2
10 changed files with 146 additions and 29 deletions
|
@ -33,7 +33,7 @@
|
|||
data () {
|
||||
return {
|
||||
currentValue: this.value
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
classes () {
|
||||
|
|
|
@ -63,6 +63,7 @@
|
|||
}
|
||||
},
|
||||
mounted () {
|
||||
// todo 使用 while向上查找
|
||||
if (this.$parent && this.$parent.$options.name === 'radioGroup') this.group = true;
|
||||
if (!this.group) {
|
||||
this.updateValue();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue