Parcourir la source

fix: wangEditor

xingyu4j il y a 3 mois
Parent
commit
9e75e98a3f

+ 1 - 1
src/components/Editor/src/Editor.vue

@@ -20,7 +20,7 @@ const currentLocale = computed(() => localeStore.getCurrentLocale)
 i18nChangeLanguage(unref(currentLocale).lang)
 
 const props = defineProps({
-  editorId: propTypes.string.def('wangeEditor-1'),
+  editorId: propTypes.string.def('wangEditor-1'),
   height: propTypes.oneOfType([Number, String]).def('500px'),
   editorConfig: {
     type: Object as PropType<Partial<IEditorConfig>>,

+ 1 - 1
src/views/bpm/model/form/PrintTemplate/Index.vue

@@ -43,7 +43,7 @@ const handleConfirm = () => {
 
 // Editor 相关
 const editorRef = shallowRef<IDomEditor>()
-const editorId = ref('wangeEditor-1')
+const editorId = ref('wangEditor-1')
 const toolbarConfig = {
   excludeKeys: ['group-video'],
   insertKeys: {

types/custom-types.d.ts → types/wangeditor-types.d.ts