feat: migrate Radio/RadioGroup
This commit is contained in:
+4
-2
@@ -12,14 +12,16 @@ export default createComponent({
|
||||
}),
|
||||
],
|
||||
|
||||
emits: ['click', 'update:modelValue'],
|
||||
|
||||
computed: {
|
||||
currentValue: {
|
||||
get() {
|
||||
return this.parent ? this.parent.value : this.value;
|
||||
return this.parent ? this.parent.modelValue : this.modelValue;
|
||||
},
|
||||
|
||||
set(val) {
|
||||
(this.parent || this).$emit('input', val);
|
||||
(this.parent || this).$emit('update:modelValue', val);
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user