-
-
必填
+
+
高级设置 >
+
+
+
+
+
+
+
+
+
+
+
+
changeOptionOthers(val, element)"
+ >
+
+
+ 必填
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
- 添加新选项
+
+
+
+
+ 添加新选项
+
-
-
-
- 其他____
-
+
+ 其他____
+
-
-
-
-
-
+
+
+
+
+
diff --git a/web/src/management/pages/edit/modules/questionModule/components/AdvancedConfig/index.vue b/web/src/management/pages/edit/modules/questionModule/components/AdvancedConfig/index.vue
new file mode 100644
index 00000000..ba18f6c2
--- /dev/null
+++ b/web/src/management/pages/edit/modules/questionModule/components/AdvancedConfig/index.vue
@@ -0,0 +1,47 @@
+
+
+
+
+
diff --git a/web/src/materials/questions/QuestionContainerB/index.jsx b/web/src/materials/questions/QuestionContainerB/index.jsx
index 9f82966e..b3247362 100644
--- a/web/src/materials/questions/QuestionContainerB/index.jsx
+++ b/web/src/materials/questions/QuestionContainerB/index.jsx
@@ -1,4 +1,4 @@
-import { computed, defineComponent, onMounted, shallowRef, ref } from 'vue'
+import { computed, defineComponent, onMounted, shallowRef, ref, provide } from 'vue'
import questionLoader from '@/materials/questions/questionLoader.js'
@@ -46,7 +46,7 @@ export default defineComponent({
}
},
emits: ['blur', 'focus', 'change', 'select'],
- setup(props, { emit }) {
+ setup(props, { slots, emit }) {
const BlockComponent = shallowRef(null)
const questionMeta = ref({})
@@ -76,6 +76,11 @@ export default defineComponent({
emit('change', data)
}
+ // 透传高级组件
+ provide('slots', {
+ advancedEdit: slots.advancedEdit
+ })
+
return {
props,
BlockComponent,
diff --git a/web/src/materials/questions/widgets/EditOptions/AdvancedConfig/RateConfig.vue b/web/src/materials/questions/widgets/EditOptions/AdvancedConfig/RateConfig.vue
deleted file mode 100644
index be42487e..00000000
--- a/web/src/materials/questions/widgets/EditOptions/AdvancedConfig/RateConfig.vue
+++ /dev/null
@@ -1,160 +0,0 @@
-
-
-
-
-
评分数值
-
评分释义
-
评分后增添输入框
-
-
-
-
-
{{ item.index }}
-
-
-
-
-
-
- 必填
-
-
-
-
-
-
-
-
-
-
diff --git a/web/src/materials/questions/widgets/EditOptions/Options/OptionEditBar.vue b/web/src/materials/questions/widgets/EditOptions/Options/OptionEditBar.vue
index 58a66a64..e9689c47 100644
--- a/web/src/materials/questions/widgets/EditOptions/Options/OptionEditBar.vue
+++ b/web/src/materials/questions/widgets/EditOptions/Options/OptionEditBar.vue
@@ -1,60 +1,22 @@
-
其他____
-
-
- 高级设置>
-
-
-
- 高级评分设置>
+
+
+
+
-
-
-
-