feat:合并

This commit is contained in:
李晓鸽
2022-10-17 16:52:29 +08:00
parent 2e515ff8e5
commit 660e6750da
2 changed files with 6 additions and 2 deletions

View File

@@ -2,7 +2,6 @@
<a-drawer
:visible="addvoteVisible"
class="drawerStyle"
style="color: red"
width="80%"
title="添加投票"
placement="right"

View File

@@ -23,6 +23,7 @@
<div>
<add-vote v-model:addvoteVisible="visible" />
</div>
<a-radio v-model:checked="checked" @click="changeRadio">Option A</a-radio>
</div>
</template>
<script>
@@ -36,15 +37,19 @@ export default {
setup() {
const state = reactive({
visible: false,
checked: true,
});
const showDrawer = () => {
state.visible = true;
};
const changeRadio = () => {
state.checked = false;
};
return {
...toRefs(state),
showDrawer,
changeRadio,
};
},
};