This commit is contained in:
2026-02-25 15:13:47 +08:00
parent 6d7d06cd2a
commit 57568a3a7c
7 changed files with 151 additions and 26 deletions

View File

@@ -391,6 +391,12 @@
computed,
getCurrentInstance
} from 'vue'
const props = defineProps({
content: {
type: String,
},
})
const emit = defineEmits(['init-data'])
// 页面元素
const {
@@ -441,7 +447,7 @@
editorCtx.value = res.context
// 初始化HTML内容
editorCtx.value.setContents({//赋值
html: editorContent.html
html: props.content?props.content:editorContent.html
})
}).exec()
// #endif