fix: 去除配置文件里的 node 指向

This commit is contained in:
MTrun
2022-03-10 20:05:05 +08:00
parent a96df3cc13
commit 55c8314613
20 changed files with 49 additions and 107 deletions
@@ -1,17 +1,14 @@
import BorderCommon from './index.vue'
import Configuration from './config.vue'
import image from '@/assets/images/chart/decorates/border.png'
import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const BorderCommonConfig: ConfigType = {
key: 'VBorderCommon',
key: 'BorderCommon',
chartKey: 'VBorderCommon',
conKey: 'VCBorderCommon',
title: '边框',
category: ChatCategoryEnum.BORDER,
categoryName: ChatCategoryEnumName.BORDER,
package: PackagesCategoryEnum.DECORATES,
node: () => BorderCommon,
conNode: () => Configuration,
image
}
@@ -1,17 +1,15 @@
import Number from './index.vue'
import Configuration from './config.vue'
import image from '@/assets/images/chart/decorates/number.png'
import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const NumberConfig: ConfigType = {
key: 'VNumber',
key: 'Number',
chartKey: 'VNumber',
conKey: 'VCNumber',
title: '数字翻牌',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.DECORATES,
node: () => Number,
conNode: () => Configuration,
image
}
@@ -1,17 +1,14 @@
import Time from './index.vue'
import Configuration from './config.vue'
import image from '@/assets/images/chart/decorates/time.png'
import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const TimeConfig: ConfigType = {
key: 'VTime',
key: 'Time',
chartKey: 'VTime',
conKey: 'VCTime',
title: '时间',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.DECORATES,
node: () => Time,
conNode: () => Configuration,
image
}
@@ -1,17 +1,14 @@
import Weather from './index.vue'
import Configuration from './config.vue'
import image from '@/assets/images/chart/decorates/weather.png'
import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const WeatherConfig: ConfigType = {
key: 'VWeather',
key: 'Weather',
chartKey: 'VWeather',
conKey: 'VCWeather',
title: '天气',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.DECORATES,
node: () => Weather,
conNode: () => Configuration,
image
}
@@ -1,17 +1,14 @@
import WeatherTime from './index.vue'
import Configuration from './config.vue'
import image from '@/assets/images/chart/decorates/weather_time.png'
import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d'
import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d'
export const WeatherTimeConfig: ConfigType = {
key: 'VWeatherTime',
key: 'WeatherTime',
chartKey: 'VWeatherTime',
conKey: 'VCWeatherTime',
title: '天气和时间',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.DECORATES,
node: () => WeatherTime,
conNode: () => Configuration,
image
}