mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 16:22:57 +08:00
fix: 修复图标组件持久化(或导出再导入)时保存的分类不正确导致无法载入的问题
This commit is contained in:
parent
1c2bf4019a
commit
9c0aa14473
@ -6,8 +6,8 @@ export const IconConfig: ConfigType = {
|
|||||||
chartKey: 'VIcon',
|
chartKey: 'VIcon',
|
||||||
conKey: 'VCIcon',
|
conKey: 'VCIcon',
|
||||||
title: '图标',
|
title: '图标',
|
||||||
category: ChatCategoryEnum.COMMON,
|
category: ChatCategoryEnum.DEFAULT,
|
||||||
categoryName: ChatCategoryEnumName.COMMON,
|
categoryName: ChatCategoryEnumName.DEFAULT,
|
||||||
package: PackagesCategoryEnum.ICONS,
|
package: PackagesCategoryEnum.ICONS,
|
||||||
chartFrame: ChartFrameEnum.STATIC,
|
chartFrame: ChartFrameEnum.STATIC,
|
||||||
image: 'icon.png'
|
image: 'icon.png'
|
||||||
|
7
src/packages/components/Icons/index.d.ts
vendored
7
src/packages/components/Icons/index.d.ts
vendored
@ -1,12 +1,13 @@
|
|||||||
export enum ChatCategoryEnum {
|
export enum ChatCategoryEnum {
|
||||||
ML = 'MaterialLine',
|
ML = 'MaterialLine',
|
||||||
COMMON = 'Common',
|
COMMON = 'Common',
|
||||||
WEATHER = "WEATHER"
|
WEATHER = 'Weather',
|
||||||
|
DEFAULT = 'Default' // 这个仅用来表示组件分类目录,不要在 index.ts 中导入
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export enum ChatCategoryEnumName {
|
export enum ChatCategoryEnumName {
|
||||||
ML = '动画',
|
ML = '动画',
|
||||||
COMMON = '通用',
|
COMMON = '通用',
|
||||||
WEATHER = "天气"
|
WEATHER = '天气',
|
||||||
|
DEFAULT = '默认'
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,4 @@ import MaterialLine from './MaterialLine'
|
|||||||
import Common from './Common'
|
import Common from './Common'
|
||||||
import Weather from './Weather'
|
import Weather from './Weather'
|
||||||
|
|
||||||
export const IconList = [...MaterialLine, ...Common, ...Weather]
|
export const IconList = [...MaterialLine, ...Weather, ...Common]
|
||||||
|
Loading…
Reference in New Issue
Block a user