Browse Source

chore(ApiRadioGroup): 移除多余的change事件

pull/3418/head
invalid w 3 years ago
parent
commit
1296590e3a
  1. 7
      src/components/Form/src/components/ApiRadioGroup.vue

7
src/components/Form/src/components/ApiRadioGroup.vue

@ -2,7 +2,7 @@
* @Description:It is troublesome to implement radio button group in the form. So it is extracted independently as a separate component
-->
<template>
<Radio.Group v-bind="attrs" v-model:value="state" button-style="solid" @change="handleChange">
<Radio.Group v-bind="attrs" v-model:value="state" button-style="solid">
<template v-for="item in getOptions" :key="`${item.value}`">
<Radio.Button
v-if="props.isBtn"
@ -119,9 +119,4 @@
function handleClick(...args) {
emitData.value = args;
}
function handleChange(e) {
emit('change', e.target.value);
emit('update:value', e.target.value);
}
</script>

Loading…
Cancel
Save