From 71db7a2284b61bc8b68e1097e9b8ee819cb6f32f Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期四, 16 一月 2025 13:47:20 +0800 Subject: [PATCH] 修改指标分类为选择tree,增加选择框可编辑 --- src/components/Echart/src/Echart.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Echart/src/Echart.vue b/src/components/Echart/src/Echart.vue index fd3342d..02738ca 100644 --- a/src/components/Echart/src/Echart.vue +++ b/src/components/Echart/src/Echart.vue @@ -9,6 +9,10 @@ import { isString } from '@/utils/is' import { useDesign } from '@/hooks/web/useDesign' +import 'echarts/lib/component/markPoint' +import 'echarts/lib/component/markLine' +import 'echarts/lib/component/markArea' + defineOptions({ name: 'EChart' }) const { getPrefixCls, variables } = useDesign() @@ -94,13 +98,13 @@ contentEl.value = document.getElementsByClassName(`${variables.namespace}-layout-content`)[0] unref(contentEl) && - (unref(contentEl) as Element).addEventListener('transitionend', contentResizeHandler) + (unref(contentEl) as Element).addEventListener('transitionend', contentResizeHandler) }) onBeforeUnmount(() => { window.removeEventListener('resize', resizeHandler) unref(contentEl) && - (unref(contentEl) as Element).removeEventListener('transitionend', contentResizeHandler) + (unref(contentEl) as Element).removeEventListener('transitionend', contentResizeHandler) }) onActivated(() => { -- Gitblit v1.9.3