Browse Source

reactor:拓展表单BUG修复;

zhangchong 6 months ago
parent
commit
3a07a782a9
4 changed files with 12 additions and 10 deletions
  1. 2 2
      package.json
  2. 2 2
      src/components/Editor/index.vue
  3. 3 1
      src/types/global.d.ts
  4. 5 5
      yarn.lock

+ 2 - 2
package.json

@@ -23,8 +23,8 @@
 		"@microsoft/signalr": "^7.0.0",
 		"@originjs/vite-plugin-commonjs": "^1.0.3",
 		"@vueuse/motion": "^2.0.0",
-		"@wangeditor-next/editor": "^5.6.1",
-		"@wangeditor-next/editor-for-vue": "^5.1.12",
+		"@wangeditor-next/editor": "^5.6.0",
+		"@wangeditor-next/editor-for-vue": "^5.1.14",
 		"axios": "^1.4.0",
 		"dayjs": "^1.11.9",
 		"echarts": "^5.5.0",

+ 2 - 2
src/components/Editor/index.vue

@@ -18,9 +18,9 @@ import { onBeforeUnmount, reactive, shallowRef, watch, nextTick, ref } from 'vue
 import { Cookie } from '@/utils/storage';
 import { uploadFile } from '@/api/public/upload';
 import { ElMessage } from 'element-plus';
-import '@wangeditor-next/editor/dist/css/style.css';
 import { Editor, Toolbar } from '@wangeditor-next/editor-for-vue';
-
+import { IDomEditor, IEditorConfig, IToolbarConfig } from '@wangeditor-next/editor'
+// import '@wangeditor-next/editor/dist/css/style.css';
 //  全局配置
 // 定义父组件传过来的值
 const props = defineProps({

+ 3 - 1
src/types/global.d.ts

@@ -3,11 +3,12 @@ declare module 'vue-grid-layout';
 declare module 'qrcodejs2-fixes';
 declare module 'sortablejs';
 declare module 'js-cookie';
-declare module '@wangeditor/editor-for-vue';
 declare module 'vue3-seamless-scroll';
 declare module 'splitpanes';
 declare module 'vuedraggable';
 declare module 'json-editor-vue3';
+declare module '@wangeditor-next/editor-for-vue';
+declare module '@wangeditor-next/editor';
 
 // 声明一个模块,防止引入文件时报错
 declare module '*.json';
@@ -16,6 +17,7 @@ declare module '*.jpg';
 declare module '*.scss';
 declare module '*.ts';
 declare module '*.js';
+declare module '*.css';
 
 // 声明文件,*.vue 后缀的文件交给 vue 模块来处理
 declare module '*.vue' {

+ 5 - 5
yarn.lock

@@ -1529,12 +1529,12 @@
     scroll-into-view-if-needed "^3.0.0"
     slate-history "^0.109.0"
 
-"@wangeditor-next/editor-for-vue@^5.1.12":
-  version "5.1.12"
-  resolved "https://registry.npmmirror.com/@wangeditor-next/editor-for-vue/-/editor-for-vue-5.1.12.tgz#9c36d3ac3d5a1bc25b4d188b770086911f74353b"
-  integrity sha512-kwLgKMWvKh86vedGzUvS9wwVKmpAvzLnGrpSwiLdU7WHrcOsa+nqsdP7XDxeYZ6wnpDcodGBDspwW0yKWWrzwg==
+"@wangeditor-next/editor-for-vue@^5.1.14":
+  version "5.1.14"
+  resolved "https://registry.npmmirror.com/@wangeditor-next/editor-for-vue/-/editor-for-vue-5.1.14.tgz#8d638ca5f4d265ae624796490219e5b63f01e15c"
+  integrity sha512-Xkrdo590AhLHvzyR+U246t6T89nIWHz1weAgMuo8jEA2HS5RiUnsA4U6+iUGaQ2E5c8mYQaeNqzHQXUp9Okbiw==
 
-"@wangeditor-next/editor@^5.6.1":
+"@wangeditor-next/editor@^5.6.0":
   version "5.6.1"
   resolved "https://registry.npmmirror.com/@wangeditor-next/editor/-/editor-5.6.1.tgz#1e7447b91790242ad75bfc827fbdee79b477716a"
   integrity sha512-JTngYhuSO5wZGcYdanLM4x9eoKVwZlVi8qpLVbTW8SUljH2PkUDjx7q6KgBh8KtrA6gNC8jpXKb4VGlIZ+K7yg==