Browse Source

radio-value值获取方法修改

pull/105/head
zq 3 weeks ago
parent
commit
6bc59e6169
  1. 6
      src/components/GuipRadio.vue

6
src/components/GuipRadio.vue

@ -149,7 +149,11 @@ export default {
return option.key;
}
return option[this.valueKey] || option;
// valueKey
if (typeof option === 'object' && this.valueKey in option) {
return option[this.valueKey];
}
return option;
},
//
isDisabled(key) {

Loading…
Cancel
Save