<template>
	<el-col class="mb20">
		<el-form-item label="文件名" prop="name">
			<el-input placeholder="请输入文件名" v-model="modelValue.name" />
		</el-form-item>
	</el-col>
	<el-col class="mb20">
		<el-form-item label="内容" prop="content">
			<ai-editor
				v-model="modelValue.content"
				output="text"
				placeholder="选择输入文本，即可调用 AI 辅助功能"
				:minHeight="400"
			/>
		</el-form-item>
	</el-col>
</template>

<script setup lang="ts">
import { PropType } from 'vue';

defineProps({
	modelValue: {
		type: Object as PropType<any>,
		required: true,
	},
});

defineEmits(['update:modelValue']);
</script>
