feat: 完成 preview 组件的功能
- 新增 preview 组件相关的资源 - 调用 web 端部分 API - 相关题目添加答案配置
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
</template>
|
||||
<template #input>
|
||||
<template v-for="(item, optionIndex) in element.options" :key="item.id">
|
||||
<van-radio-group v-if="element.question_type === 1">
|
||||
<van-radio-group v-if="element.question_type === 1" v-model="choiceValue">
|
||||
<option-action
|
||||
v-model:data="element.options[optionIndex]"
|
||||
:active="active"
|
||||
@@ -28,6 +28,7 @@
|
||||
:disabled="it.disabled"
|
||||
icon-size="0.45rem"
|
||||
>
|
||||
<!-- 自定义文本 -->
|
||||
<template #default>
|
||||
<div class="flex align-center van-cell">
|
||||
<contenteditable v-model="it.option" :active="active"></contenteditable>
|
||||
@@ -73,6 +74,8 @@
|
||||
<script setup>
|
||||
import OptionAction from '@/views/Design/components/ActionCompoents/OptionAction.vue';
|
||||
import { defineAsyncComponent, toRefs } from 'vue';
|
||||
|
||||
const choiceValue = ref('checked');
|
||||
const Contenteditable = defineAsyncComponent(() => import('@/components/contenteditable.vue'));
|
||||
const props = defineProps({
|
||||
element: {
|
||||
|
||||
Reference in New Issue
Block a user