feat: 继续完成...

This commit is contained in:
539943419 committed 2025-01-15 07:39:03 +08:00
1 parent 31e253eaef
commit d7f1bf7d49
8 files changed
+270 -122

No files matched your search

+19 -10
View File
@@ -1,20 +1,29 @@
<template>
<div class="post-editor">
editor以后再写
<el-input v-model:model-value="id" placeholder="id" />
<el-input v-model:model-value="title" placeholder="title" />
<el-input v-model:model-value="summary" placeholder="summary" />
<el-input-tag v-model:model-value="tags" placeholder="tags" />
<el-input type="textarea" v-model:model-value="content" placeholder="content" autosize />
<!-- editor以后再写 -->
<el-row :gutter="10">
<el-col :span="8">
<el-input v-model:model-value="title" placeholder="title">
<template #prepend>标题</template>
</el-input>
</el-col>
<el-col :span="16">
<el-input-tag v-model:model-value="tags" placeholder="添加标签" />
</el-col>
</el-row>
<el-row>
<el-col>
<el-input v-model:model-value="summary" placeholder="summary" >
<template #prepend>摘要</template>
</el-input>
</el-col>
</el-row>
<el-input type="textarea" v-model:model-value="content" placeholder="content" :autosize="{ minRows: 15 }" />
</div>
</template>
<script setup lang="ts">
import useMiaoFetch from '~/hooks/useMiaoFetch';
// const { post: { updatePost } } = useMiaoFetch()
const id = defineModel<number>('id')
const title = defineModel<string>('title')
const summary = defineModel<string>('summary')
const tags = defineModel<string[]>('tags')