diff --git a/components.d.ts b/components.d.ts index fab8e77..7b27095 100644 --- a/components.d.ts +++ b/components.d.ts @@ -38,6 +38,8 @@ declare module 'vue' { VanRow: typeof import('vant/es')['Row'] VanStepper: typeof import('vant/es')['Stepper'] VanSwitch: typeof import('vant/es')['Switch'] + VanTab: typeof import('vant/es')['Tab'] + VanTabs: typeof import('vant/es')['Tabs'] YLCascader: typeof import('./src/components/YLCascader.vue')['default'] YLInput: typeof import('./src/components/YLInput.vue')['default'] YLPicker: typeof import('./src/components/YLPicker.vue')['default'] diff --git a/src/views/Design/components/ChooseQuestion.vue b/src/views/Design/components/ChooseQuestion.vue index b554564..564b46a 100644 --- a/src/views/Design/components/ChooseQuestion.vue +++ b/src/views/Design/components/ChooseQuestion.vue @@ -69,9 +69,7 @@ const element = defineModel('element', { return {}; } }); -const index = defineModel('index', { - type: Number -}); +const index = defineModel('index'); // watch( // () => index.value, diff --git a/src/views/Design/components/Questions/Choice.vue b/src/views/Design/components/Questions/Choice.vue index d6ce715..c129ecb 100644 --- a/src/views/Design/components/Questions/Choice.vue +++ b/src/views/Design/components/Questions/Choice.vue @@ -130,8 +130,7 @@ defineProps({ default: false }, index: { - type: Number, - default: 0 + default: '' } }); diff --git a/src/views/Design/components/Questions/Completion.vue b/src/views/Design/components/Questions/Completion.vue index 6f50df2..c20eabc 100644 --- a/src/views/Design/components/Questions/Completion.vue +++ b/src/views/Design/components/Questions/Completion.vue @@ -45,7 +45,6 @@ const props = defineProps({ } }, index: { - type: Number, default: 0 }, active: { diff --git a/src/views/Design/components/Questions/FileUpload.vue b/src/views/Design/components/Questions/FileUpload.vue index 8c1ca62..3e51bd6 100644 --- a/src/views/Design/components/Questions/FileUpload.vue +++ b/src/views/Design/components/Questions/FileUpload.vue @@ -7,7 +7,7 @@ import { fileLimit, answer } from './hooks/useFileUploadHooks'; const isPreview = defineModel('isPreview', { default: false, type: Boolean, required: false }); const props = defineProps<{ element: any; - index: number; + index: number | String; active: boolean; }>(); const { element } = toRefs(props); diff --git a/src/views/Design/components/Questions/MatrixCheckbox.vue b/src/views/Design/components/Questions/MatrixCheckbox.vue index 42f3040..d95e919 100644 --- a/src/views/Design/components/Questions/MatrixCheckbox.vue +++ b/src/views/Design/components/Questions/MatrixCheckbox.vue @@ -1,10 +1,6 @@