diff --git a/src/assets/images/chart/informations/text_barrage.gif b/src/assets/images/chart/informations/text_barrage.gif new file mode 100644 index 00000000..282f85c6 Binary files /dev/null and b/src/assets/images/chart/informations/text_barrage.gif differ diff --git a/src/packages/components/Informations/Texts/TextBarrage/config.ts b/src/packages/components/Informations/Texts/TextBarrage/config.ts new file mode 100644 index 00000000..eb04f096 --- /dev/null +++ b/src/packages/components/Informations/Texts/TextBarrage/config.ts @@ -0,0 +1,42 @@ +import { PublicConfigClass } from '@/packages/public' +import { CreateComponentType } from '@/packages/index.d' +import { TextBarrageConfig } from './index' +import { chartInitConfig } from '@/settings/designSetting' +import cloneDeep from 'lodash/cloneDeep' + +export enum FontWeightEnum { + NORMAL = '常规', + BOLD = '加粗', +} + +export const FontWeightObject = { + [FontWeightEnum.NORMAL]: 'normal', + [FontWeightEnum.BOLD]: 'bold', +} + +export const option = { + + dataset: '让数字化看得见', + fontSize: 32, + fontColor: '#ffffff', + fontWeight: 'normal', + // 字间距 + letterSpacing: 5, + //阴影 + showShadow: true, + boxShadow: 'none', + hShadow: 0, + vShadow: 0, + blurShadow: 8, + colorShadow: '#0075ff', + //动画 + animationTime: 0, + animationSpeed: 50, +} + +export default class Config extends PublicConfigClass implements CreateComponentType { + public key = TextBarrageConfig.key + public attr = { ...chartInitConfig, w: 500, h: 70, zIndex: -1 } + public chartConfig = cloneDeep(TextBarrageConfig) + public option = cloneDeep(option) +} diff --git a/src/packages/components/Informations/Texts/TextBarrage/config.vue b/src/packages/components/Informations/Texts/TextBarrage/config.vue new file mode 100644 index 00000000..e2a5ad59 --- /dev/null +++ b/src/packages/components/Informations/Texts/TextBarrage/config.vue @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 展示阴影 + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/packages/components/Informations/Texts/TextBarrage/index.ts b/src/packages/components/Informations/Texts/TextBarrage/index.ts new file mode 100644 index 00000000..84aa8eae --- /dev/null +++ b/src/packages/components/Informations/Texts/TextBarrage/index.ts @@ -0,0 +1,14 @@ +import image from '@/assets/images/chart/informations/text_barrage.gif' +import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d' +import { ChatCategoryEnum,ChatCategoryEnumName } from '../../index.d' + +export const TextBarrageConfig: ConfigType = { + key: 'TextBarrage', + chartKey: 'VTextBarrage', + conKey: 'VCTextBarrage', + title: '弹幕文字', + category: ChatCategoryEnum.TEXT, + categoryName: ChatCategoryEnumName.TEXT, + package: PackagesCategoryEnum.INFORMATIONS, + image +} diff --git a/src/packages/components/Informations/Texts/TextBarrage/index.vue b/src/packages/components/Informations/Texts/TextBarrage/index.vue new file mode 100644 index 00000000..54e9df2b --- /dev/null +++ b/src/packages/components/Informations/Texts/TextBarrage/index.vue @@ -0,0 +1,102 @@ + + + + + {{ option.dataset }} + + + + + + + + diff --git a/src/packages/components/Informations/Texts/index.ts b/src/packages/components/Informations/Texts/index.ts index 093a2d52..960dcaef 100644 --- a/src/packages/components/Informations/Texts/index.ts +++ b/src/packages/components/Informations/Texts/index.ts @@ -1,4 +1,5 @@ import { TextCommonConfig } from './TextCommon/index' +import { TextBarrageConfig } from './TextBarrage/index' import { TextGradientConfig } from './TextGradient/index' -export default [TextCommonConfig, TextGradientConfig] +export default [TextCommonConfig, TextGradientConfig, TextBarrageConfig]