diff --git a/components.d.ts b/components.d.ts index 4a2e464..4bc3beb 100644 --- a/components.d.ts +++ b/components.d.ts @@ -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'] diff --git a/src/stores/modules/common.ts b/src/stores/modules/common.ts index 659fadc..4d83961 100644 --- a/src/stores/modules/common.ts +++ b/src/stores/modules/common.ts @@ -264,7 +264,7 @@ export const useCommonStore = defineStore('common', { stem: '请选择一个选项', other: '', question_index: 30, - question_type: 1, + question_type: 2, config: { placeholder: '', version: '', diff --git a/src/views/Design/Index.vue b/src/views/Design/Index.vue index e622ffd..67a1be2 100644 --- a/src/views/Design/Index.vue +++ b/src/views/Design/Index.vue @@ -18,7 +18,7 @@ > @@ -151,7 +151,7 @@ const getChooseQuestionId = (questionItem) => { // 组件对应的操作 const actionOptions = [ { - question_type: [1, 5], + question_type: [1, 2, 5], actions: [ { label: '添加选项', diff --git a/src/views/Design/components/ActionCompoents/OptionAction.vue b/src/views/Design/components/ActionCompoents/OptionAction.vue index 92bcc63..2842135 100644 --- a/src/views/Design/components/ActionCompoents/OptionAction.vue +++ b/src/views/Design/components/ActionCompoents/OptionAction.vue @@ -39,9 +39,11 @@ > - - - + + + diff --git a/src/views/Design/components/ActionCompoents/components/QuestionBefore.vue b/src/views/Design/components/ActionCompoents/components/QuestionItemAction/QuestionBefore.vue similarity index 100% rename from src/views/Design/components/ActionCompoents/components/QuestionBefore.vue rename to src/views/Design/components/ActionCompoents/components/QuestionItemAction/QuestionBefore.vue diff --git a/src/views/Design/components/Questions/Choice.vue b/src/views/Design/components/Questions/Choice.vue index dc9721a..f0b7686 100644 --- a/src/views/Design/components/Questions/Choice.vue +++ b/src/views/Design/components/Questions/Choice.vue @@ -15,13 +15,13 @@ > - - - + + + - + + + + + + + + + + + + + + + + - - + + @@ -74,16 +101,26 @@ const saveStem = (e, ele) => { };