Files
workspace/code/g3soft-libs/docs/examples/rich-text/basic.vue
T
2026-10-11 22:14:13 +08:00

12 lines
357 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
// 基础用法:v-model 输出 HTML,工具条内置字体/字号/上下标/表格/撤销重做
import { ref } from 'vue'
import { G3RichText } from '@g3soft/ui'
const html = ref('<p>你好,<strong>G3RichText</strong>!</p>')
</script>
<template>
<G3RichText v-model="html" placeholder="请输入正文…" />
</template>