feat: 完善内容管理通用富文本编辑器

This commit is contained in:
2026-08-27 17:01:48 +08:00
parent ed81f24892
commit d93486cd9a
21 changed files with 1245 additions and 30 deletions

View File

@@ -0,0 +1,10 @@
<script setup lang="ts">
import { toDisplayHtml } from '~/utils/rich-text'
const props = defineProps<{ content: string }>()
const html = computed(() => toDisplayHtml(props.content))
</script>
<template>
<div class="rich-text-content" v-html="html" />
</template>