feat:修改全部单选框可取消选中 部分弹窗退出清楚状态 清除无用变量

This commit is contained in:
dongwug
2022-10-21 15:36:33 +08:00
parent fcf1fdd263
commit 88a19d9ffb
5 changed files with 229 additions and 91 deletions

View File

@@ -162,9 +162,9 @@
</div>
<div class="btnbox">
<a-radio-group v-model:value="radioV1">
<a-radio v-model:checked="checked" :value="1">仅签到</a-radio>
<a-radio v-model:checked="checked" :value="2"
>签到签退全部完成</a-radio
<a-radio v-model:checked="checked" :value="1" @click="cloradio1">仅签到</a-radio>
<a-radio v-model:checked="checked" :value="2" @click="cloradio1"
>签到签退全部完成</a-radio
>
</a-radio-group>
</div>
@@ -220,15 +220,22 @@ export default {
});
const closeDrawer = () => {
ctx.emit("update:addactiveVisible", false);
state.radioV1 = "";
};
const afterVisibleChange = (bool) => {
console.log("state", bool);
};
const cloradio1 = (value) => {
if (value != "") {
state.radioV1 = "";
}
}
return {
...toRefs(state),
afterVisibleChange,
closeDrawer,
rowSelection,
cloradio1,
};
},
};