From 35aaef7adf061ff26c5adf00cb8f9b3564a0e361 Mon Sep 17 00:00:00 2001 From: ks3356143 <314298729@qq.com> Date: Fri, 18 Oct 2024 09:56:43 +0800 Subject: [PATCH] ks002 --- cdTMP/package-lock.json | 24 ++++++++++++------------ cdTMP/package.json | 6 +++--- cdTMP/src/components/ma-editor/index.vue | 2 ++ cdTMP/visualizer.html | 2 +- 4 files changed, 18 insertions(+), 16 deletions(-) diff --git a/cdTMP/package-lock.json b/cdTMP/package-lock.json index 16067df..89508e1 100644 --- a/cdTMP/package-lock.json +++ b/cdTMP/package-lock.json @@ -35,7 +35,7 @@ }, "devDependencies": { "@types/lodash-es": "^4.17.12", - "@types/node": "^22.7.5", + "@types/node": "^22.7.6", "@types/nprogress": "^0.2.3", "@types/qs": "^6.9.16", "@vitejs/plugin-vue": "^5.1.4", @@ -43,7 +43,7 @@ "@vue/babel-plugin-jsx": "^1.2.5", "autoprefixer": "^10.4.20", "browserslist": "^4.24.0", - "caniuse-lite": "^1.0.30001668", + "caniuse-lite": "^1.0.30001669", "eslint": "^9.12.0", "eslint-plugin-vue": "^9.29.0", "less": "^4.2.0", @@ -51,7 +51,7 @@ "postcss": "^8.4.47", "prettier": "^3.3.3", "rollup-plugin-visualizer": "^5.12.0", - "tailwindcss": "^3.4.13", + "tailwindcss": "^3.4.14", "typescript": "^5.6.3", "vite": "^5.4.9" } @@ -1546,9 +1546,9 @@ } }, "node_modules/@types/node": { - "version": "22.7.5", - "resolved": "https://registry.npmmirror.com/@types/node/-/node-22.7.5.tgz", - "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", + "version": "22.7.6", + "resolved": "https://registry.npmmirror.com/@types/node/-/node-22.7.6.tgz", + "integrity": "sha512-/d7Rnj0/ExXDMcioS78/kf1lMzYk4BZV8MZGTBKzTGZ6/406ukkbYlIsZmMPhcR5KlkunDHQLrtAVmSq7r+mSw==", "dev": true, "license": "MIT", "dependencies": { @@ -2360,9 +2360,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001668", - "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001668.tgz", - "integrity": "sha512-nWLrdxqCdblixUO+27JtGJJE/txpJlyUy5YN1u53wLZkP0emYCo5zgS6QYft7VUYR42LGgi/S5hdLZTrnyIddw==", + "version": "1.0.30001669", + "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001669.tgz", + "integrity": "sha512-DlWzFDJqstqtIVx1zeSpIMLjunf5SmwOw0N2Ck/QSQdS8PLS4+9HrLaYei4w8BIAL7IB/UEDu889d8vhCTPA0w==", "dev": true, "funding": [ { @@ -5240,9 +5240,9 @@ "dev": true }, "node_modules/tailwindcss": { - "version": "3.4.13", - "resolved": "https://registry.npmmirror.com/tailwindcss/-/tailwindcss-3.4.13.tgz", - "integrity": "sha512-KqjHOJKogOUt5Bs752ykCeiwvi0fKVkr5oqsFNt/8px/tA8scFPIlkygsf6jXrfCqGHz7VflA6+yytWuM+XhFw==", + "version": "3.4.14", + "resolved": "https://registry.npmmirror.com/tailwindcss/-/tailwindcss-3.4.14.tgz", + "integrity": "sha512-IcSvOcTRcUtQQ7ILQL5quRDg7Xs93PdJEk1ZLbhhvJc7uj/OAhYOnruEiwnGgBvUtaUAJ8/mhSw1o8L2jCiENA==", "dev": true, "license": "MIT", "dependencies": { diff --git a/cdTMP/package.json b/cdTMP/package.json index 912987f..c5f2f0d 100644 --- a/cdTMP/package.json +++ b/cdTMP/package.json @@ -38,7 +38,7 @@ }, "devDependencies": { "@types/lodash-es": "^4.17.12", - "@types/node": "^22.7.5", + "@types/node": "^22.7.6", "@types/nprogress": "^0.2.3", "@types/qs": "^6.9.16", "@vitejs/plugin-vue": "^5.1.4", @@ -46,7 +46,7 @@ "@vue/babel-plugin-jsx": "^1.2.5", "autoprefixer": "^10.4.20", "browserslist": "^4.24.0", - "caniuse-lite": "^1.0.30001668", + "caniuse-lite": "^1.0.30001669", "eslint": "^9.12.0", "eslint-plugin-vue": "^9.29.0", "less": "^4.2.0", @@ -54,7 +54,7 @@ "postcss": "^8.4.47", "prettier": "^3.3.3", "rollup-plugin-visualizer": "^5.12.0", - "tailwindcss": "^3.4.13", + "tailwindcss": "^3.4.14", "typescript": "^5.6.3", "vite": "^5.4.9" } diff --git a/cdTMP/src/components/ma-editor/index.vue b/cdTMP/src/components/ma-editor/index.vue index 51e9052..cd9d54a 100644 --- a/cdTMP/src/components/ma-editor/index.vue +++ b/cdTMP/src/components/ma-editor/index.vue @@ -158,6 +158,8 @@ const initConfig = reactive({ // 1.自定义粘贴过滤器函数,args.content就是粘贴内容 paste_preprocess: function (plugin, args) { let content = args.content + // 去掉这个地方修改比较大注意 + content = content.replace(/]*>/g, "").replace(/<\/span>/g, "") const parser = new DOMParser() const doc = parser.parseFromString(content, "text/html") // 遍历一级元素 diff --git a/cdTMP/visualizer.html b/cdTMP/visualizer.html index ac17368..cf368c8 100644 --- a/cdTMP/visualizer.html +++ b/cdTMP/visualizer.html @@ -4822,7 +4822,7 @@ var drawChart = (function (exports) {