From f52e5b3c11e8bd8af6ebc55864702b32762b402f Mon Sep 17 00:00:00 2001 From: lhj <403133128@qq.com> Date: Wed, 6 Nov 2024 23:18:27 +0800 Subject: [PATCH 01/18] =?UTF-8?q?fix:=E6=9B=B4=E6=96=B0.gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 94c254c..4395bce 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,6 @@ dist-ssr *.njsproj *.sln *.sw? + +src/utils*.cjs +src/utils*.js -- 2.49.0 From 0d5773175bfe8f7ec4dde7fdcf800af113c23da9 Mon Sep 17 00:00:00 2001 From: lhj <403133128@qq.com> Date: Wed, 6 Nov 2024 23:18:54 +0800 Subject: [PATCH 02/18] =?UTF-8?q?fix:=E6=9B=B4=E6=96=B0.gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4395bce..2965e90 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,6 @@ dist-ssr *.njsproj *.sln *.sw? - +package-lock.json src/utils*.cjs src/utils*.js -- 2.49.0 From fe4a3bdd4a5369282992d3959ceca0875a2322d9 Mon Sep 17 00:00:00 2001 From: lhj <403133128@qq.com> Date: Wed, 6 Nov 2024 23:20:00 +0800 Subject: [PATCH 03/18] =?UTF-8?q?fix:=E6=9B=B4=E6=96=B0.gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2965e90..aa80ad2 100644 --- a/.gitignore +++ b/.gitignore @@ -24,5 +24,5 @@ dist-ssr *.sln *.sw? package-lock.json -src/utils*.cjs -src/utils*.js +src/utils/*.cjs +src/utils/*.js -- 2.49.0 From c399e9dfe645a23a0651f9746a315a8e7dac2bb0 Mon Sep 17 00:00:00 2001 From: lhj <403133128@qq.com> Date: Wed, 6 Nov 2024 23:20:29 +0800 Subject: [PATCH 04/18] =?UTF-8?q?fix:=E6=9B=B4=E6=96=B0.gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index aa80ad2..d0788e7 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,4 @@ dist-ssr *.sw? package-lock.json src/utils/*.cjs -src/utils/*.js +src/**/*.js -- 2.49.0 From 63f1c87cac11c85c6dcd4f2a55ff67bcbdab3eac Mon Sep 17 00:00:00 2001 From: lhj <403133128@qq.com> Date: Wed, 6 Nov 2024 23:32:22 +0800 Subject: [PATCH 05/18] =?UTF-8?q?fix:=E6=89=93=E5=8C=85=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + vite.config.ts | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/package.json b/package.json index 34f5750..6762d1f 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "@types/node": "^22.9.0", "@vitejs/plugin-vue": "^5.0.5", "less": "^4.2.0", + "rollup-plugin-visualizer": "^5.12.0", "sass": "^1.77.8", "typescript": "^5.5.4", "unplugin-auto-import": "^0.18.2", diff --git a/vite.config.ts b/vite.config.ts index 1d1a270..7877a7b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,10 +7,17 @@ import {ArcoResolver} from 'unplugin-vue-components/resolvers' import Components from 'unplugin-vue-components/vite' import {vitePluginForArco} from '@arco-plugins/vite-vue' import * as path from "node:path"; +import {visualizer} from "rollup-plugin-visualizer"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [ + visualizer({ + emitFile: false, + filename: 'stats.html', + open: true, + sourcemap: true + }), AutoImport({ resolvers: [ArcoResolver()], imports: [ @@ -45,5 +52,16 @@ export default defineConfig({ alias: { '@': path.resolve(__dirname, './src') } + }, + build: { + rollupOptions: { + output: { + manualChunks(id) { + if (id.includes('node_modules')) { + return 'vendor' + } + } + } + } } }) -- 2.49.0 From 729a172c05afea542b5608c029542d4972e7fc2b Mon Sep 17 00:00:00 2001 From: lhj <403133128@qq.com> Date: Wed, 6 Nov 2024 23:41:43 +0800 Subject: [PATCH 06/18] =?UTF-8?q?fix:=E6=89=93=E5=8C=85=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + preview/views/MainView.vue | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d0788e7..d2e6e3a 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ dist-ssr package-lock.json src/utils/*.cjs src/**/*.js +/stats.html diff --git a/preview/views/MainView.vue b/preview/views/MainView.vue index f6e57d5..f3b09c0 100644 --- a/preview/views/MainView.vue +++ b/preview/views/MainView.vue @@ -53,7 +53,7 @@ import NestedFunction from "@/components/NestedFunction.vue"; let componentsList = []; const store = useSchemeStore(); -watch(store, (n, e) => { +watch(store, (n) => { console.log("数据", n); }); @@ -127,6 +127,7 @@ const clone = function (element: IComponent) { } const onEnd = (obj: any) => { + console.log(obj) // const {oldDraggableIndex} = obj; // store.previewData(store.component[oldDraggableIndex]); // store.nowComponentsData(store.component[oldDraggableIndex]); @@ -183,7 +184,7 @@ const view = () => { } .tem_btn { - padding: 0px 10px; + padding: 0 10px; height: 30px; line-height: 30px; text-align: center; -- 2.49.0 From 1ec747acc7882b6af87458ab9eb6bbf1cda539aa Mon Sep 17 00:00:00 2001 From: lhj <403133128@qq.com> Date: Thu, 7 Nov 2024 01:04:16 +0800 Subject: [PATCH 07/18] fix --- preview/views/MainView.vue | 82 +++++++++++++++++++++++++++++--------- 1 file changed, 64 insertions(+), 18 deletions(-) diff --git a/preview/views/MainView.vue b/preview/views/MainView.vue index f3b09c0..970ef3a 100644 --- a/preview/views/MainView.vue +++ b/preview/views/MainView.vue @@ -11,28 +11,50 @@