feat(设计): 优化问卷设计功能

- 调整完成式题目字数限制显示逻辑- 为 NPS 问卷添加内容编辑组件
- 优化文本加图片问卷的编辑功能
- 调整必答设置的显示逻辑
- 修复完成式题目的保存问题
- 优化 API 接口配置
This commit is contained in:
陈昱达
2025-03-12 20:35:53 +08:00
parent b0c0979f70
commit eb22b77d46
7 changed files with 49 additions and 34 deletions

View File

@@ -17,7 +17,11 @@
></contenteditable>
</template>
<template #input>
<div contenteditable="true" class="input other_input"></div>
<textarea
class="other_input"
:placeholder="element.config.placeholder"
:rows="element.config.line_height"
></textarea>
</template>
</van-field>
</div>
@@ -45,7 +49,6 @@ const props = defineProps({
// 创建一个本地副本以保存更改
const emit = defineEmits(['update:element']);
const { element } = toRefs(props);
const emitValue = () => {
emit('update:element', element.value);
};
@@ -55,7 +58,7 @@ const emitValue = () => {
.cont {
.other_input {
width: 100%;
height: 40px;
min-height: 40px;
margin-bottom: 10px;
padding: 3px 5px;
border: 1px solid #ccc;