Commit 4ee311d45b162710f0dd1f4e692c861f44b7e72b

Authored by fengwotao
1 parent fdf17197

feat:新增菜单侧边栏动画组件和组合组件

... ... @@ -149,7 +149,9 @@ export enum PackagesCategoryEnum {
149 149 CHARTS = 'Charts',
150 150 TABLES = 'Tables',
151 151 INFORMATIONS = 'Informations',
152   - DECORATES = 'Decorates'
  152 + DECORATES = 'Decorates',
  153 + ARTOONS = 'Artoons',
  154 + COMPOSES = 'Composes',
153 155 }
154 156
155 157 // 包分类名称
... ... @@ -157,7 +159,9 @@ export enum PackagesCategoryName {
157 159 CHARTS = '图表',
158 160 TABLES = '列表',
159 161 INFORMATIONS = '信息',
160   - DECORATES = '小组件'
  162 + DECORATES = '小组件',
  163 + ARTOONS='动画组件',
  164 + COMPOSES='组合组件',
161 165 }
162 166
163 167 // 获取组件
... ... @@ -172,4 +176,6 @@ export type PackagesType = {
172 176 [PackagesCategoryEnum.INFORMATIONS]: ConfigType[]
173 177 [PackagesCategoryEnum.TABLES]: ConfigType[]
174 178 [PackagesCategoryEnum.DECORATES]: ConfigType[]
  179 + [PackagesCategoryEnum.ARTOONS]: ConfigType[]
  180 + [PackagesCategoryEnum.COMPOSES]: ConfigType[]
175 181 }
... ...
... ... @@ -2,6 +2,8 @@ import { ChartList } from '@/packages/components/Charts/index'
2 2 import { DecorateList } from '@/packages/components/Decorates/index'
3 3 import { InformationList } from '@/packages/components/Informations/index'
4 4 import { TableList } from '@/packages/components/Tables/index'
  5 +import { ArtoonsList } from '@/packages/components/Artoons/index'
  6 +import { ComposesList } from '@/packages/components/Composes/index'
5 7 import { PackagesCategoryEnum, PackagesType, ConfigType, FetchComFlagType } from '@/packages/index.d'
6 8
7 9 const configModules = import.meta.globEager('./components/**/config.vue')
... ... @@ -13,7 +15,9 @@ export let packagesList: PackagesType = {
13 15 [PackagesCategoryEnum.CHARTS]: ChartList,
14 16 [PackagesCategoryEnum.INFORMATIONS]: InformationList,
15 17 [PackagesCategoryEnum.TABLES]: TableList,
16   - [PackagesCategoryEnum.DECORATES]: DecorateList
  18 + [PackagesCategoryEnum.DECORATES]: DecorateList,
  19 + [PackagesCategoryEnum.ARTOONS]: ArtoonsList,
  20 + [PackagesCategoryEnum.COMPOSES]: ComposesList,
17 21 }
18 22
19 23 /**
... ...
... ... @@ -44,6 +44,14 @@ const packagesListObj = {
44 44 icon: renderIcon(GraphicalDataFlowIcon),
45 45 label: PackagesCategoryName.DECORATES,
46 46 },
  47 + [PackagesCategoryEnum.ARTOONS]: {
  48 + icon: renderIcon(GraphicalDataFlowIcon),
  49 + label: PackagesCategoryName.ARTOONS,
  50 + },
  51 + [PackagesCategoryEnum.COMPOSES]: {
  52 + icon: renderIcon(GraphicalDataFlowIcon),
  53 + label: PackagesCategoryName.COMPOSES,
  54 + },
47 55 }
48 56
49 57 // 处理列表
... ...