From cb3fbf7ef1fe5b800e44cad0ea96e00277e41f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Wed, 2 Nov 2022 16:35:08 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E4=BA=8B=E4=BB=B6=E6=A1=88=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ChartEventMonacoEditor/importTemplate.ts | 12 ++++++++++++ .../components/ChartEvent/index.vue | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventMonacoEditor/importTemplate.ts b/src/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventMonacoEditor/importTemplate.ts index c7f78903..527dd9b3 100644 --- a/src/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventMonacoEditor/importTemplate.ts +++ b/src/views/chart/ContentConfigurations/components/ChartEvent/components/ChartEventMonacoEditor/importTemplate.ts @@ -17,6 +17,14 @@ const nodeModulesTemplateString = ` console.log(node_modules) ` +// 添加点击事件 +const addClickTemplateString = ` +// 在渲染之后才能获取 dom 实例 +e.el.addEventListener('click', () => { + alert('我触发拉~'); +}, false) +` + // 异步引入 const importTemplateString = ` await import('https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/lodash.js/4.17.21/lodash.js') @@ -162,6 +170,10 @@ export const templateList = [ description: '获取远程 CDN 库', code: importTemplateString }, + { + description: '设置文字组件点击事件', + code: addClickTemplateString + }, { description: '修改图表 tooltip', code: tooltipTemplateString diff --git a/src/views/chart/ContentConfigurations/components/ChartEvent/index.vue b/src/views/chart/ContentConfigurations/components/ChartEvent/index.vue index e60a7731..a5335f5e 100644 --- a/src/views/chart/ContentConfigurations/components/ChartEvent/index.vue +++ b/src/views/chart/ContentConfigurations/components/ChartEvent/index.vue @@ -7,7 +7,9 @@ - 【单击、双击、移入、移出】尽情期待! + 【单击、双击、移入、移出】在开发中,即将上线! + + (备注:高级事件模块可自行实现上述功能) From 81a233a413c921ed45a1beb1cba5ac472ca05ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Wed, 2 Nov 2022 20:03:32 +0800 Subject: [PATCH 2/3] =?UTF-8?q?style:=20=E4=BF=AE=E6=94=B9=20iframe?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/components/Informations/Mores/Iframe/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/components/Informations/Mores/Iframe/config.ts b/src/packages/components/Informations/Mores/Iframe/config.ts index 514966ff..2e96c211 100644 --- a/src/packages/components/Informations/Mores/Iframe/config.ts +++ b/src/packages/components/Informations/Mores/Iframe/config.ts @@ -6,7 +6,7 @@ import cloneDeep from 'lodash/cloneDeep' export const option = { // 网站路径 - dataset: "https://cn.vuejs.org/", + dataset: "https://www.mtruning.club/", // 圆角 borderRadius: 10 } From dfc69e19c5d3f37db72f7097e80817b82559cf35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Thu, 3 Nov 2022 09:27:09 +0800 Subject: [PATCH 3/3] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/components/Decorates/Three/ThreeEarth01/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/components/Decorates/Three/ThreeEarth01/index.vue b/src/packages/components/Decorates/Three/ThreeEarth01/index.vue index 057dac40..5fd62d6a 100644 --- a/src/packages/components/Decorates/Three/ThreeEarth01/index.vue +++ b/src/packages/components/Decorates/Three/ThreeEarth01/index.vue @@ -67,7 +67,7 @@ watch( onMounted(() => { try { if (navigator.userAgent.indexOf('Chrome') < -1 || navigator.userAgent.indexOf('Edg') > -1) { - window['$message'].error('此组件仅在【谷歌】浏览器上能正常展示!') + window['$message'].error('三维地图组件仅在【谷歌】浏览器上能正常展示!') chartEditStore.removeComponentList(undefined, false) return }