提交 b9aa0b58 authored 作者: wangjiahao's avatar wangjiahao

refactor:优化视频拖拽效果

上级 fa2efef9
......@@ -66,18 +66,15 @@ export default {
moveFlag() {
return (this.element.optStatus.dragging || this.element.optStatus.resizing)
},
curGap() {
return this.canvasStyleData.panel.gap === 'yes' && this.element.auxiliaryMatrix ? this.componentGap : 0
},
player() {
return this.$refs.videoPlayer.player
},
playerOptions() {
const videoPlayerOptions = this.element.videoLinks[this.element.videoLinks.videoType]
let playHeight = this.h
if (this.canvasStyleData.panel.gap === 'yes') {
playHeight = this.h - (this.componentGap * 2)
}
videoPlayerOptions.height = playHeight
console.log('videoPlayerOptions:' + JSON.stringify(videoPlayerOptions))
videoPlayerOptions.height = this.h - (this.curGap * 2)
return videoPlayerOptions
},
...mapState([
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论