refactor(Design): 重构问卷预览功能
- 在 Choice、Completion、FileUpload、MatrixQuestion、NPS、Rate、SignQuestion 和 TextWithImages 组件中添加 isPreview 属性 - 根据 isPreview 属性决定是否显示题号或题目标题 - 更新 PreviewCompletion、PreviewFileUpload 和 PreviewSign 组件,设置 isPreview 为 true
This commit is contained in:
@@ -17,7 +17,6 @@ const element = defineModel<question>('element', {
|
||||
return {};
|
||||
}
|
||||
});
|
||||
|
||||
// table 宽度
|
||||
const tableWidth = defineModel<number>('tableWidth', { required: false, default: 110 });
|
||||
// 行记录(相关答案的记录)
|
||||
@@ -117,7 +116,7 @@ const errorMessage = defineModel('errorMessage', {
|
||||
class="contenteditable-question-title"
|
||||
>
|
||||
<template #left-icon>
|
||||
{{ index + 1 }}
|
||||
{{ isPreview ? element.title : index + 1 }}
|
||||
</template>
|
||||
<!-- 使用 title 插槽来自定义标题 -->
|
||||
<template #label>
|
||||
|
||||
Reference in New Issue
Block a user