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

This commit is contained in:
invalid w
2023-12-13 18:28:56 +08:00
parent ccf4027533
commit 1296590e3a

View File

@@ -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>