refactor: 使用Editor组件替换WxEditor

This commit is contained in:
dhb52 committed 2023-04-14 14:49:19 +08:00
1 parent f25a4d7343
commit 813e7d2776
5 files changed
+307 -375

No files matched your search

+2 -1
View File
@@ -20,7 +20,7 @@ const props = defineProps({
editorId: propTypes.string.def('wangeEditor-1'),
height: propTypes.oneOfType([Number, String]).def('500px'),
editorConfig: {
type: Object as PropType<IEditorConfig>,
type: Object as PropType<Partial<IEditorConfig>>,
default: () => undefined
},
readonly: propTypes.bool.def(false),
@@ -147,6 +147,7 @@ const editorConfig = computed((): IEditorConfig => {
props.editorConfig || {}
)
})
const editorStyle = computed(() => {
return {
height: isNumber(props.height) ? `${props.height}px` : props.height