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

+3
View File
@@ -0,0 +1,3 @@
<template>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512"><path d="M384 224v184a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V168a40 40 0 0 1 40-40h167.48" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"></path><path d="M459.94 53.25a16.06 16.06 0 0 0-23.22-.56L424.35 65a8 8 0 0 0 0 11.31l11.34 11.32a8 8 0 0 0 11.34 0l12.06-12c6.1-6.09 6.67-16.01.85-22.38z" fill="currentColor"></path><path d="M399.34 90L218.82 270.2a9 9 0 0 0-2.31 3.93L208.16 299a3.91 3.91 0 0 0 4.86 4.86l24.85-8.35a9 9 0 0 0 3.93-2.31L422 112.66a9 9 0 0 0 0-12.66l-9.95-10a9 9 0 0 0-12.71 0z" fill="currentColor"></path></svg>
</template>
+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')