mirror of
https://gitee.com/anji-plus/report.git
synced 2026-05-20 08:47:18 +08:00
Signed-off-by: jefflaa <jeff_laa@163.com>
This commit is contained in:
@@ -31,6 +31,22 @@ export const widgetVideo = {
|
||||
placeholder: '',
|
||||
value: 'https://www.w3school.com.cn//i/movie.ogg',
|
||||
},
|
||||
{
|
||||
type: 'el-switch',
|
||||
label: '循环播放',
|
||||
name: 'isLoop',
|
||||
required: false,
|
||||
placeholder: '',
|
||||
value: false,
|
||||
},
|
||||
{
|
||||
type: 'el-switch',
|
||||
label: '自动播放(静音)',
|
||||
name: 'autoplay',
|
||||
required: false,
|
||||
placeholder: '',
|
||||
value: false,
|
||||
},
|
||||
],
|
||||
// 数据
|
||||
data: [],
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
<template>
|
||||
<video :style="styleColor" :src="styleColor.videoAdress" controls="controls">
|
||||
<video
|
||||
:style="styleColor"
|
||||
:src="styleColor.videoAdress"
|
||||
controls="controls"
|
||||
:loop="styleColor.loop"
|
||||
:autoplay="styleColor.autoplay"
|
||||
:muted="styleColor.autoplay">
|
||||
您的浏览器不支持 video 标签。
|
||||
</video>
|
||||
</template>
|
||||
@@ -29,7 +35,9 @@ export default {
|
||||
left: this.transStyle.left + "px",
|
||||
top: this.transStyle.top + "px",
|
||||
right: this.transStyle.right + "px",
|
||||
videoAdress: this.transStyle.videoAdress
|
||||
videoAdress: this.transStyle.videoAdress,
|
||||
loop: this.transStyle.isLoop,
|
||||
autoplay: this.transStyle.autoplay
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user