refactor(Design): 重构问卷预览功能
- 在 Choice、Completion、FileUpload、MatrixQuestion、NPS、Rate、SignQuestion 和 TextWithImages 组件中添加 isPreview 属性 - 根据 isPreview 属性决定是否显示题号或题目标题 - 更新 PreviewCompletion、PreviewFileUpload 和 PreviewSign 组件,设置 isPreview 为 true
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
class="base-select contenteditable-question-title"
|
||||
>
|
||||
<template #left-icon>
|
||||
{{ index + 1 }}
|
||||
{{ isPreview ? element.title : index + 1 }}
|
||||
</template>
|
||||
<template #label>
|
||||
<contenteditable
|
||||
@@ -26,6 +26,10 @@
|
||||
import contenteditable from '@/components/contenteditable.vue';
|
||||
import { defineModel, toRefs } from 'vue';
|
||||
const props = defineProps({
|
||||
isPreview: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
element: {
|
||||
type: Object,
|
||||
default: () => {
|
||||
|
||||
Reference in New Issue
Block a user