This commit is contained in:
2026-10-03 14:13:39 +07:00
parent 469b882dbe
commit 822316f26d
+7 -19
View File
@@ -1,27 +1,15 @@
<script setup lang="ts">
import { NInput, NInputGroup, NSpace, NText } from 'naive-ui'
import { type PropType } from 'vue'
import type { EditableQuestion } from '@/types/editor'
const props = defineProps({
newQuestionCode: {
type: String,
},
newQuestionText: {
type: String,
},
newQuestionAnswer: {
type: String,
},
question: {
type: Object as PropType<EditableQuestion>,
},
mode: {
type: String,
required: true,
},
})
const props = defineProps<{
newQuestionCode?: string
newQuestionText?: string
newQuestionAnswer?: string
question?: EditableQuestion
mode: string
}>()
const emit = defineEmits<{
'update:newQuestionCode': [value: string]