diff --git a/src/packages/components/Informations/Mores/Video/config.ts b/src/packages/components/Informations/Mores/Video/config.ts new file mode 100644 index 00000000..43c38cc1 --- /dev/null +++ b/src/packages/components/Informations/Mores/Video/config.ts @@ -0,0 +1,21 @@ +import { PublicConfigClass } from '@/packages/public' +import { CreateComponentType } from '@/packages/index.d' +import { VideoConfig } from './index' +import cloneDeep from 'lodash/cloneDeep' + +export const option = { + // 视频路径 + dataset: '', + // 适应方式 + fit: 'contain', + // 圆角 + borderRadius: 0, + // 透明度 + opacity: 1 +} + +export default class Config extends PublicConfigClass implements CreateComponentType { + 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 new file mode 100644 index 00000000..7ece81b8 --- /dev/null +++ b/src/packages/components/Informations/Mores/Video/config.vue @@ -0,0 +1,64 @@ + + + diff --git a/src/packages/components/Informations/Mores/Video/index.ts b/src/packages/components/Informations/Mores/Video/index.ts new file mode 100644 index 00000000..01998cb7 --- /dev/null +++ b/src/packages/components/Informations/Mores/Video/index.ts @@ -0,0 +1,14 @@ +import image from '@/assets/images/chart/informations/photo.png' +import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d' +import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d' + +export const VideoConfig: ConfigType = { + key: 'Video', + chartKey: 'VVideo', + conKey: 'VCVideo', + title: '视频', + category: ChatCategoryEnum.MORE, + categoryName: ChatCategoryEnumName.MORE, + package: PackagesCategoryEnum.INFORMATIONS, + image +} diff --git a/src/packages/components/Informations/Mores/Video/index.vue b/src/packages/components/Informations/Mores/Video/index.vue new file mode 100644 index 00000000..2a4c0ac2 --- /dev/null +++ b/src/packages/components/Informations/Mores/Video/index.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/src/packages/components/Informations/Mores/index.ts b/src/packages/components/Informations/Mores/index.ts index eb12db36..19648094 100644 --- a/src/packages/components/Informations/Mores/index.ts +++ b/src/packages/components/Informations/Mores/index.ts @@ -1,4 +1,5 @@ import { TextCloudConfig } from './TextCloud/index' import { ImageConfig } from './Image/index' +import { VideoConfig } from './Video/index' -export default [ImageConfig, TextCloudConfig] +export default [ImageConfig, VideoConfig, TextCloudConfig] diff --git a/src/views/chart/ContentEdit/components/EditShapeBox/index.vue b/src/views/chart/ContentEdit/components/EditShapeBox/index.vue index dc521ad8..93450fed 100644 --- a/src/views/chart/ContentEdit/components/EditShapeBox/index.vue +++ b/src/views/chart/ContentEdit/components/EditShapeBox/index.vue @@ -69,6 +69,10 @@ const select = computed(() => { @include go(shape-box) { position: absolute; cursor: move; + + // 混合模式 + mix-blend-mode: screen; + /* 锚点 */ .shape-point { z-index: 1;