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

4
components.d.ts vendored
View File

@@ -13,6 +13,8 @@ declare module 'vue' {
VanButton: typeof import('vant/es')['Button']
VanCell: typeof import('vant/es')['Cell']
VanCellGroup: typeof import('vant/es')['CellGroup']
VanCheck: typeof import('vant/es')['Check']
VanCheckbo: typeof import('vant/es')['Checkbo']
VanCheckbox: typeof import('vant/es')['Checkbox']
VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup']
VanCol: typeof import('vant/es')['Col']
@@ -21,6 +23,8 @@ declare module 'vue' {
VanField: typeof import('vant/es')['Field']
VanIcon: typeof import('vant/es')['Icon']
VanPopup: typeof import('vant/es')['Popup']
VanRadio: typeof import('vant/es')['Radio']
VanRadioGroup: typeof import('vant/es')['RadioGroup']
VanRow: typeof import('vant/es')['Row']
VanSearch: typeof import('vant/es')['Search']
VanSwitch: typeof import('vant/es')['Switch']