diff --git a/src/packages/components/Icons/Default/Icon/index.ts b/src/packages/components/Icons/Default/Icon/index.ts index 8b722907..47af1f9f 100644 --- a/src/packages/components/Icons/Default/Icon/index.ts +++ b/src/packages/components/Icons/Default/Icon/index.ts @@ -6,8 +6,8 @@ export const IconConfig: ConfigType = { chartKey: 'VIcon', conKey: 'VCIcon', title: '图标', - category: ChatCategoryEnum.COMMON, - categoryName: ChatCategoryEnumName.COMMON, + category: ChatCategoryEnum.DEFAULT, + categoryName: ChatCategoryEnumName.DEFAULT, package: PackagesCategoryEnum.ICONS, chartFrame: ChartFrameEnum.STATIC, image: 'icon.png' diff --git a/src/packages/components/Icons/index.d.ts b/src/packages/components/Icons/index.d.ts index 2cdb9db7..a7f74a94 100644 --- a/src/packages/components/Icons/index.d.ts +++ b/src/packages/components/Icons/index.d.ts @@ -1,12 +1,13 @@ export enum ChatCategoryEnum { ML = 'MaterialLine', COMMON = 'Common', - WEATHER = "WEATHER" + WEATHER = 'Weather', + DEFAULT = 'Default' // 这个仅用来表示组件分类目录,不要在 index.ts 中导入 } - export enum ChatCategoryEnumName { ML = '动画', COMMON = '通用', - WEATHER = "天气" + WEATHER = '天气', + DEFAULT = '默认' } diff --git a/src/packages/components/Icons/index.ts b/src/packages/components/Icons/index.ts index 19286a5e..4c126002 100644 --- a/src/packages/components/Icons/index.ts +++ b/src/packages/components/Icons/index.ts @@ -2,4 +2,4 @@ import MaterialLine from './MaterialLine' import Common from './Common' import Weather from './Weather' -export const IconList = [...MaterialLine, ...Common, ...Weather] +export const IconList = [...MaterialLine, ...Weather, ...Common]