<script setup lang="ts">
import TextWithImages from '@/views/Design/components/Questions/TextWithImages.vue';
import { computed, watch } from 'vue';

// 问题
const question = defineModel<question>('question', { default: {} });
// question 序号
const answerIndex = computed(() => question.value?.title ?? 0);
// 答案
const answer = defineModel('answer');
// setTimeout(() => {
//   answer.value = '123';
// }, 300);
</script>

<template>
  <text-with-images
    :element="question"
    :index="answerIndex"
    :error-message="question.error"
    :is-preview="true"
  />
</template>

<style scoped lang="scss"></style>
