From c4953e7afd4e38f5b67f0a099c6c4fe1c652300d Mon Sep 17 00:00:00 2001 From: MTrun <1262327911@qq.com> Date: Fri, 14 Jan 2022 22:10:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=E7=BC=BA=E5=A4=B1?= =?UTF-8?q?=E7=9A=84=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/index.ts | 2 ++ .../components/ContentCharts/hooks/asideHook.ts | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/packages/index.ts b/src/packages/index.ts index a56b81c1..aa6dd705 100644 --- a/src/packages/index.ts +++ b/src/packages/index.ts @@ -5,6 +5,8 @@ import { DecorateList } from '@/packages/components/Decorate/index' // 所有图表 let packagesList: PackagesType = { [PackagesCategoryEnum.CHARTS]: ChartList, + [PackagesCategoryEnum.TEXTS]: DecorateList, + [PackagesCategoryEnum.TABLES]: DecorateList, [PackagesCategoryEnum.DECORATES]: DecorateList } diff --git a/src/views/chart/components/ContentCharts/hooks/asideHook.ts b/src/views/chart/components/ContentCharts/hooks/asideHook.ts index 43576cdd..dabd1ed7 100644 --- a/src/views/chart/components/ContentCharts/hooks/asideHook.ts +++ b/src/views/chart/components/ContentCharts/hooks/asideHook.ts @@ -25,14 +25,14 @@ const packagesListObj = { icon: renderIcon(RoadmapIcon), label: renderLang('图表') }, - // [PackagesCategoryEnum.TEXTS]: { - // icon: renderIcon(SpellCheckIcon), - // label: renderLang('信息') - // }, - // [PackagesCategoryEnum.TABLES]: { - // icon: renderIcon(GraphicalDataFlowIcon), - // label: renderLang('表格') - // }, + [PackagesCategoryEnum.TEXTS]: { + icon: renderIcon(SpellCheckIcon), + label: renderLang('信息') + }, + [PackagesCategoryEnum.TABLES]: { + icon: renderIcon(GraphicalDataFlowIcon), + label: renderLang('表格') + }, [PackagesCategoryEnum.DECORATES]: { icon: renderIcon(GraphicalDataFlowIcon), label: renderLang('装饰')