From 816c11a87729ff83b1373c397133a8058dbe32d1 Mon Sep 17 00:00:00 2001 From: tnt group Date: Thu, 18 May 2023 19:41:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=89=A9=E5=B1=95=20ConfigType?= =?UTF-8?q?=EF=BC=8C=E4=BB=A5=E6=94=AF=E6=8C=81=E8=99=9A=E6=8B=9F=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/index.d.ts | 1 + .../chart/ContentCharts/components/ChartsItemBox/index.vue | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/packages/index.d.ts b/src/packages/index.d.ts index cb0cbbad..a6b2d7ec 100644 --- a/src/packages/index.d.ts +++ b/src/packages/index.d.ts @@ -28,6 +28,7 @@ export type ConfigType = { dataset?: any // 组件预设的 dataset 值 disabled?: boolean // 禁用的 clickHandle?: Function // 单击事件 + icon?: string // 图标 } // 数据请求 diff --git a/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue b/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue index cf45e904..76e3d714 100644 --- a/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue +++ b/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue @@ -23,7 +23,8 @@
- + +
@@ -48,6 +49,7 @@ import { DragKeyEnum } from '@/enums/editPageEnum' import { createComponent } from '@/packages' import { ConfigType, CreateComponentType } from '@/packages/index.d' import { fetchConfigComponent, fetchChartComponent } from '@/packages/index' +import { Icon } from '@iconify/vue' import omit from 'lodash/omit'