fix: 修改配置项目

This commit is contained in:
MTrun
2022-01-25 11:09:32 +08:00
parent 953b8c3486
commit bbeba4a8d8
78 changed files with 86 additions and 55 deletions
@@ -0,0 +1,14 @@
import BorderCommon from './index.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',
title: '边框',
category: ChatCategoryEnum.BORDER,
categoryName: ChatCategoryEnumName.BORDER,
package: PackagesCategoryEnum.DECORATES,
node: BorderCommon,
image
}
@@ -0,0 +1,13 @@
<template>
<div>
边框
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
@@ -0,0 +1,3 @@
import { BorderCommonConfig } from './BorderCommon/index'
export default [BorderCommonConfig]
@@ -0,0 +1,14 @@
import Number from './index.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',
title: '数字翻牌',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.DECORATES,
node: Number,
image
}
@@ -0,0 +1,13 @@
<template>
<div>
天气
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
@@ -0,0 +1,14 @@
import Time from './index.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',
title: '时间',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.DECORATES,
node: Time,
image
}
@@ -0,0 +1,13 @@
<template>
<div>
天气
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
@@ -0,0 +1,14 @@
import Weather from './index.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',
title: '天气',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.DECORATES,
node: Weather,
image
}
@@ -0,0 +1,13 @@
<template>
<div>
天气
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
@@ -0,0 +1,14 @@
import WeatherTime from './index.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',
title: '天气和时间',
category: ChatCategoryEnum.MORE,
categoryName: ChatCategoryEnumName.MORE,
package: PackagesCategoryEnum.DECORATES,
node: WeatherTime,
image
}
@@ -0,0 +1,13 @@
<template>
<div>
天气
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
</style>
@@ -0,0 +1,6 @@
import { WeatherConfig } from './Weather/index'
import { TimeConfig } from './Time/index'
import { WeatherTimeConfig } from './WeatherTime/index'
import { NumberConfig } from './Number/index'
export default [WeatherConfig, TimeConfig, WeatherTimeConfig, NumberConfig]
+9
View File
@@ -0,0 +1,9 @@
export enum ChatCategoryEnum {
BORDER = 'Borders',
MORE = 'Mores'
}
export enum ChatCategoryEnumName {
BORDER = '边框',
MORE = '更多'
}
@@ -0,0 +1,4 @@
import Borders from './Borders'
import Mores from './Mores'
export const DecorateList = [...Borders, ...Mores]