Selaa lähdekoodia

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

invalid w 1 vuosi sitten
vanhempi
commit
1296590e3a
1 muutettua tiedostoa jossa 1 lisäystä ja 6 poistoa
  1. 1 6
      src/components/Form/src/components/ApiRadioGroup.vue

+ 1 - 6
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>