mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
feat:合并
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user