From 4f55b881db51d334e417bb383b4ecb282e642cd5 Mon Sep 17 00:00:00 2001 From: tnt group Date: Mon, 19 Sep 2022 12:32:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=8C=E6=88=90=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E7=BB=84=E4=BB=B6,=E5=B9=B6=E6=94=AF=E6=8C=81=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=AE=9E=E6=97=B6=E6=8E=A7=E5=88=B6video=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Informations/Mores/Video/config.ts | 19 +++-- .../Informations/Mores/Video/config.vue | 76 +++++++++---------- .../Informations/Mores/Video/index.vue | 69 +++++++++-------- 3 files changed, 83 insertions(+), 81 deletions(-) diff --git a/src/packages/components/Informations/Mores/Video/config.ts b/src/packages/components/Informations/Mores/Video/config.ts index 43c38cc1..c3c9474a 100644 --- a/src/packages/components/Informations/Mores/Video/config.ts +++ b/src/packages/components/Informations/Mores/Video/config.ts @@ -3,15 +3,22 @@ import { CreateComponentType } from '@/packages/index.d' import { VideoConfig } from './index' import cloneDeep from 'lodash/cloneDeep' +export const VideoList = [ + { label: '数字楼宇', value: 'https://video.699pic.com/videos/76/09/36/b_D4DKnb48qdCI1631760936.mp4' }, + { label: '旋转魔方', value: 'https://video.699pic.com/videos/90/02/69/b_YjJAJZMT6vRK1554900269.mp4' }, + { label: '旋转地球', value: 'https://video.699pic.com/videos/32/13/12/b_7dng21IHECP51553321312.mp4' }, + { label: '声音示例', value: 'https://video.699pic.com/videos/80/62/39/a_qmbxMqNvK9jr1583806239.mp4' } +] + export const option = { // 视频路径 dataset: '', - // 适应方式 - fit: 'contain', - // 圆角 - borderRadius: 0, - // 透明度 - opacity: 1 + // 循环播放 + loop: true, + // 自动播放 + autoplay: true, + // 静音 + muted: true } export default class Config extends PublicConfigClass implements CreateComponentType { diff --git a/src/packages/components/Informations/Mores/Video/config.vue b/src/packages/components/Informations/Mores/Video/config.vue index 7ece81b8..512fc26a 100644 --- a/src/packages/components/Informations/Mores/Video/config.vue +++ b/src/packages/components/Informations/Mores/Video/config.vue @@ -1,26 +1,40 @@ + +