From 65927f4ff5fb82db5ffca54c7ff315854a903fef Mon Sep 17 00:00:00 2001 From: huanghao1412 Date: Sat, 3 Feb 2024 18:05:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Informations/Mores/Video/SelectItem.vue | 30 +++++++++++ .../Informations/Mores/Video/config.ts | 7 +++ .../Informations/Mores/Video/config.vue | 53 +++++++++++++++++-- .../components/Informations/Mores/index.ts | 2 +- src/packages/components/Informations/index.ts | 4 +- .../components/ChartSetting/index.vue | 2 +- 6 files changed, 89 insertions(+), 9 deletions(-) create mode 100644 src/packages/components/Informations/Mores/Video/SelectItem.vue diff --git a/src/packages/components/Informations/Mores/Video/SelectItem.vue b/src/packages/components/Informations/Mores/Video/SelectItem.vue new file mode 100644 index 00000000..3fe8a8a7 --- /dev/null +++ b/src/packages/components/Informations/Mores/Video/SelectItem.vue @@ -0,0 +1,30 @@ + + + + + \ No newline at end of file diff --git a/src/packages/components/Informations/Mores/Video/config.ts b/src/packages/components/Informations/Mores/Video/config.ts index 41db6a90..a67bfb05 100644 --- a/src/packages/components/Informations/Mores/Video/config.ts +++ b/src/packages/components/Informations/Mores/Video/config.ts @@ -7,6 +7,8 @@ import video from '@/assets/videos/earth.mp4' export const option = { // 视频路径 dataset: video, + // 视频列表 + datasetList: [], // 循环播放 loop: true, // 静音 @@ -18,6 +20,11 @@ export const option = { } export default class Config extends PublicConfigClass implements CreateComponentType { + constructor() { + super(); + this.styles.filterShow = true + this.styles.blendMode = 'screen' + } public key = VideoConfig.key public chartConfig = cloneDeep(VideoConfig) public option = cloneDeep(option) diff --git a/src/packages/components/Informations/Mores/Video/config.vue b/src/packages/components/Informations/Mores/Video/config.vue index 14a5accc..95916beb 100644 --- a/src/packages/components/Informations/Mores/Video/config.vue +++ b/src/packages/components/Informations/Mores/Video/config.vue @@ -3,11 +3,18 @@ diff --git a/src/packages/components/Informations/Mores/index.ts b/src/packages/components/Informations/Mores/index.ts index 572ab9e0..3ea0d133 100644 --- a/src/packages/components/Informations/Mores/index.ts +++ b/src/packages/components/Informations/Mores/index.ts @@ -4,4 +4,4 @@ import { IframeConfig } from './Iframe/index' import { VideoConfig } from './Video/index' import { WordCloudConfig } from './WordCloud/index' -export default [ImageConfig, ImageCarouselConfig, VideoConfig, IframeConfig, WordCloudConfig] +export default [VideoConfig] diff --git a/src/packages/components/Informations/index.ts b/src/packages/components/Informations/index.ts index bcfbff79..055a34c1 100644 --- a/src/packages/components/Informations/index.ts +++ b/src/packages/components/Informations/index.ts @@ -1,6 +1,6 @@ import Texts from './Texts' // import Inputs from './Inputs' -// import Mores from './Mores' +import Mores from './Mores' // export const InformationList = [...Texts, ...Inputs, ...Mores] -export const InformationList = [...Texts] +export const InformationList = [...Texts, ...Mores] diff --git a/src/views/chart/ContentConfigurations/components/ChartSetting/index.vue b/src/views/chart/ContentConfigurations/components/ChartSetting/index.vue index 21c7d96a..206ae7f0 100644 --- a/src/views/chart/ContentConfigurations/components/ChartSetting/index.vue +++ b/src/views/chart/ContentConfigurations/components/ChartSetting/index.vue @@ -9,7 +9,7 @@ - +