feat(Design): 选择题支持单选和多选功能

- 修改 Choice 组件,支持单选和多选的渲染逻辑
- 新增 CheckboxAction 组件,用于多选题的排它项设置
- 更新 QuestionAction 组件,适配新的单选和多选逻辑
- 调整 Index 组件,支持单选和多选题的显示
- 修改 stores 中的 question_type 值,以区分单选和多选
This commit is contained in:
陈昱达
2025-03-06 11:41:12 +08:00
committed by Huangzhe
parent 811f441b69
commit 99070a8fa5
8 changed files with 105 additions and 17 deletions

View File

@@ -88,7 +88,7 @@ import { showConfirmDialog } from 'vant';
import { ref } from 'vue';
import { useCounterStore } from '@/stores/counter';
import { storeToRefs } from 'pinia';
import QuestionBefore from '@/views/Design/components/ActionCompoents/components/QuestionBefore.vue';
import QuestionBefore from '@/views/Design/components/ActionCompoents/components/QuestionItemAction/QuestionBefore.vue';
import { v4 as uuidv4 } from 'uuid';
const store = useCounterStore();
const { questionsInfo } = storeToRefs(store);