feat: 增加图标边栏选项卡
This commit is contained in:
parent
aee8c6bf9e
commit
2fe63c613d
3
src/packages/index.d.ts
vendored
3
src/packages/index.d.ts
vendored
@ -162,6 +162,7 @@ export enum PackagesCategoryEnum {
|
|||||||
TABLES = 'Tables',
|
TABLES = 'Tables',
|
||||||
INFORMATIONS = 'Informations',
|
INFORMATIONS = 'Informations',
|
||||||
PHOTOS = 'Photos',
|
PHOTOS = 'Photos',
|
||||||
|
ICONS = 'Icons',
|
||||||
DECORATES = 'Decorates'
|
DECORATES = 'Decorates'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,6 +172,7 @@ export enum PackagesCategoryName {
|
|||||||
TABLES = '列表',
|
TABLES = '列表',
|
||||||
INFORMATIONS = '信息',
|
INFORMATIONS = '信息',
|
||||||
PHOTOS = '图片',
|
PHOTOS = '图片',
|
||||||
|
ICONS = '图标',
|
||||||
DECORATES = '小组件'
|
DECORATES = '小组件'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -186,5 +188,6 @@ export type PackagesType = {
|
|||||||
[PackagesCategoryEnum.INFORMATIONS]: ConfigType[]
|
[PackagesCategoryEnum.INFORMATIONS]: ConfigType[]
|
||||||
[PackagesCategoryEnum.TABLES]: ConfigType[]
|
[PackagesCategoryEnum.TABLES]: ConfigType[]
|
||||||
[PackagesCategoryEnum.PHOTOS]: ConfigType[]
|
[PackagesCategoryEnum.PHOTOS]: ConfigType[]
|
||||||
|
[PackagesCategoryEnum.ICONS]: ConfigType[]
|
||||||
[PackagesCategoryEnum.DECORATES]: ConfigType[]
|
[PackagesCategoryEnum.DECORATES]: ConfigType[]
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@ import { DecorateList } from '@/packages/components/Decorates/index'
|
|||||||
import { InformationList } from '@/packages/components/Informations/index'
|
import { InformationList } from '@/packages/components/Informations/index'
|
||||||
import { TableList } from '@/packages/components/Tables/index'
|
import { TableList } from '@/packages/components/Tables/index'
|
||||||
import { PhotoList } from '@/packages/components/Photos/index'
|
import { PhotoList } from '@/packages/components/Photos/index'
|
||||||
|
import { IconList } from '@/packages/components/Icons/index'
|
||||||
import { PackagesCategoryEnum, PackagesType, ConfigType, FetchComFlagType } from '@/packages/index.d'
|
import { PackagesCategoryEnum, PackagesType, ConfigType, FetchComFlagType } from '@/packages/index.d'
|
||||||
|
|
||||||
const configModules: Record<string, { default: string }> = import.meta.glob('./components/**/config.vue', {
|
const configModules: Record<string, { default: string }> = import.meta.glob('./components/**/config.vue', {
|
||||||
@ -21,6 +22,7 @@ export let packagesList: PackagesType = {
|
|||||||
[PackagesCategoryEnum.INFORMATIONS]: InformationList,
|
[PackagesCategoryEnum.INFORMATIONS]: InformationList,
|
||||||
[PackagesCategoryEnum.TABLES]: TableList,
|
[PackagesCategoryEnum.TABLES]: TableList,
|
||||||
[PackagesCategoryEnum.PHOTOS]: PhotoList,
|
[PackagesCategoryEnum.PHOTOS]: PhotoList,
|
||||||
|
[PackagesCategoryEnum.ICONS]: IconList,
|
||||||
[PackagesCategoryEnum.DECORATES]: DecorateList
|
[PackagesCategoryEnum.DECORATES]: DecorateList
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +67,8 @@ import {
|
|||||||
EyeOutline as EyeOutlineIcon,
|
EyeOutline as EyeOutlineIcon,
|
||||||
EyeOffOutline as EyeOffOutlineIcon,
|
EyeOffOutline as EyeOffOutlineIcon,
|
||||||
Albums as AlbumsIcon,
|
Albums as AlbumsIcon,
|
||||||
Analytics as AnalyticsIcon
|
Analytics as AnalyticsIcon,
|
||||||
|
Airplane as AirPlaneIcon
|
||||||
} from '@vicons/ionicons5'
|
} from '@vicons/ionicons5'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -238,10 +239,12 @@ const ionicons5 = {
|
|||||||
// 眼睛
|
// 眼睛
|
||||||
EyeOutlineIcon,
|
EyeOutlineIcon,
|
||||||
EyeOffOutlineIcon,
|
EyeOffOutlineIcon,
|
||||||
// 图表列表
|
// 图表列表
|
||||||
AlbumsIcon,
|
AlbumsIcon,
|
||||||
// 分析
|
// 分析
|
||||||
AnalyticsIcon
|
AnalyticsIcon,
|
||||||
|
// 飞机
|
||||||
|
AirPlaneIcon
|
||||||
}
|
}
|
||||||
|
|
||||||
const carbon = {
|
const carbon = {
|
||||||
|
@ -7,7 +7,7 @@ import { PackagesCategoryEnum, PackagesCategoryName, PackagesType } from '@/pack
|
|||||||
import { usePackagesStore } from '@/store/modules/packagesStore/packagesStore'
|
import { usePackagesStore } from '@/store/modules/packagesStore/packagesStore'
|
||||||
import { ChartLayoutStoreEnum } from '@/store/modules/chartLayoutStore/chartLayoutStore.d'
|
import { ChartLayoutStoreEnum } from '@/store/modules/chartLayoutStore/chartLayoutStore.d'
|
||||||
// 图标
|
// 图标
|
||||||
const { ImageIcon, BarChartIcon } = icon.ionicons5
|
const { AirPlaneIcon, ImageIcon, BarChartIcon } = icon.ionicons5
|
||||||
const { TableSplitIcon, RoadmapIcon, SpellCheckIcon, GraphicalDataFlowIcon } = icon.carbon
|
const { TableSplitIcon, RoadmapIcon, SpellCheckIcon, GraphicalDataFlowIcon } = icon.carbon
|
||||||
|
|
||||||
// 图表
|
// 图表
|
||||||
@ -38,6 +38,10 @@ const packagesListObj = {
|
|||||||
icon: renderIcon(ImageIcon),
|
icon: renderIcon(ImageIcon),
|
||||||
label: PackagesCategoryName.PHOTOS
|
label: PackagesCategoryName.PHOTOS
|
||||||
},
|
},
|
||||||
|
[PackagesCategoryEnum.ICONS]: {
|
||||||
|
icon: renderIcon(AirPlaneIcon),
|
||||||
|
label: PackagesCategoryName.ICONS
|
||||||
|
},
|
||||||
[PackagesCategoryEnum.DECORATES]: {
|
[PackagesCategoryEnum.DECORATES]: {
|
||||||
icon: renderIcon(GraphicalDataFlowIcon),
|
icon: renderIcon(GraphicalDataFlowIcon),
|
||||||
label: PackagesCategoryName.DECORATES
|
label: PackagesCategoryName.DECORATES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user