From 1dcea813f33177a2fb8d0224b528422552f0ef9a Mon Sep 17 00:00:00 2001 From: lyt-Top <1105290566@qq.com> Date: Mon, 8 Mar 2021 21:16:18 +0800 Subject: [PATCH] =?UTF-8?q?'admin-21.03.08:=E6=B7=BB=E5=8A=A0antdG6?= =?UTF-8?q?=E6=80=9D=E7=BB=B4=E5=AF=BC=E5=9B=BE=E7=95=8C=E9=9D=A2'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 +- src/utils/setIconfont.ts | 4 +- src/views/fun/mindMap/index.vue | 709 ++++++++++++++++++++++---------- 3 files changed, 494 insertions(+), 222 deletions(-) diff --git a/package.json b/package.json index 0eeafef..a48b78e 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,6 @@ "build": "vite build" }, "dependencies": { - "@antv/g6": "^4.1.16", "axios": "^0.21.1", "clipboard": "^2.0.6", "countup.js": "^2.0.7", @@ -37,4 +36,4 @@ "typescript": "^4.2.3", "vite": "^2.0.5" } -} +} \ No newline at end of file diff --git a/src/utils/setIconfont.ts b/src/utils/setIconfont.ts index 9f3dcde..0f26d9a 100644 --- a/src/utils/setIconfont.ts +++ b/src/utils/setIconfont.ts @@ -4,7 +4,9 @@ const cssCdnUrlList: Array = [ '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' ] // 第三方 js url -const jsCdnUrlList: Array = [] +const jsCdnUrlList: Array = [ + 'https://gw.alipayobjects.com/os/antv/pkg/_antv.g6-3.8.1/dist/g6.min.js' +] // 动态设置字体图标 export function setCssCdn() { diff --git a/src/views/fun/mindMap/index.vue b/src/views/fun/mindMap/index.vue index b1fda67..62a7237 100644 --- a/src/views/fun/mindMap/index.vue +++ b/src/views/fun/mindMap/index.vue @@ -8,7 +8,6 @@ - - \ No newline at end of file + \ No newline at end of file