refactor(stores): 重构 common store 并优化数据类型定义- 定义明确的接口和类型,提高代码可读性和维护性

- 优化数据处理逻辑,使用 UUID 生成唯一 ID- 调整 NPS评分范围,提高用户体验
-优化问卷设计界面布局,提升可操作性
This commit is contained in:
陈昱达
2025-03-23 14:27:19 +08:00
parent 32a87991e1
commit e5ad917d6e
4 changed files with 56 additions and 35 deletions

View File

@@ -37,19 +37,24 @@
<!-- 自定义文本 -->
<template #default>
<div class="flex align-center van-cell">
<contenteditable
v-model="it.option"
:className="active ? 'contenteditable-input' : ''"
:active="active"
>
<template #right-icon>
<div v-if="active" class="moverQues">
<van-icon class-prefix="mobilefont" name="option "></van-icon>
</div>
</template>
</contenteditable>
<div v-if="it.is_other">
<input class="other-input" type="text" />
<div class="flex" style="width: 100%; flex-wrap: wrap">
<contenteditable
v-model="it.option"
:className="active ? 'contenteditable-input' : ''"
:active="active"
>
<template #right-icon>
<div v-if="active" class="moverQues">
<van-icon class-prefix="mobilefont" name="option "></van-icon>
</div>
</template>
</contenteditable>
<input
class="other-input"
type="text"
v-if="it.is_other"
style="width: 100%"
/>
</div>
</div>
</template>