From c022b9b0a0f69769f4b90261e18b42f0f0e7c097 Mon Sep 17 00:00:00 2001 From: suixy <2277317060@qq.com> Date: Thu, 27 Nov 2025 18:24:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 + src/main.ts | 4 +- src/views/chart/chart1.vue | 418 ++++++++++++++++++++++------------- src/views/chart/treeItem.vue | 203 +++++++++++++++++ vite.config.ts | 6 +- 5 files changed, 480 insertions(+), 154 deletions(-) create mode 100644 src/views/chart/treeItem.vue diff --git a/package.json b/package.json index 4c00a60..af4f590 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "dependencies": { "@element-plus/icons-vue": "2.3.1", "@highlightjs/vue-plugin": "2.1.0", + "@vitejs/plugin-vue-jsx": "^5.1.1", "@vueup/vue-quill": "1.2.0", "@vueuse/core": "13.1.0", "animate.css": "4.1.1", @@ -44,9 +45,11 @@ "vue-cropper": "1.1.1", "vue-i18n": "11.1.3", "vue-json-pretty": "2.4.0", + "vue-masonry": "^0.16.0", "vue-router": "4.5.0", "vue-types": "6.0.0", "vue3-scroll-seamless": "^1.0.6", + "vue3-seamless-scroll": "^3.0.2", "vxe-table": "4.13.7" }, "devDependencies": { diff --git a/src/main.ts b/src/main.ts index f5c8778..b2ebdd1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -41,10 +41,10 @@ VXETable.setConfig({ // 修改 el-dialog 默认点击遮照为不关闭 import { ElDialog } from 'element-plus'; ElDialog.props.closeOnClickModal.default = false; +import { VueMasonryPlugin } from 'vue-masonry'; const app = createApp(App); - - +app.use(VueMasonryPlugin); app.use(HighLight); app.use(ElementIcons); app.use(router); diff --git a/src/views/chart/chart1.vue b/src/views/chart/chart1.vue index 4ea435f..6e7d52e 100644 --- a/src/views/chart/chart1.vue +++ b/src/views/chart/chart1.vue @@ -6,25 +6,31 @@