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 <a-drawer
:visible="addvoteVisible" :visible="addvoteVisible"
class="drawerStyle" class="drawerStyle"
style="color: red"
width="80%" width="80%"
title="添加投票" title="添加投票"
placement="right" placement="right"

View File

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