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

style: 样式修改

上级 b011aaab
...@@ -84,12 +84,20 @@ export default { ...@@ -84,12 +84,20 @@ export default {
]) ])
}, },
created() { created() {
this.pOption = this.element.videoLinks[this.element.videoLinks.videoType] this.initOption()
this.pOption.height = this.h - (this.curGap * 2) },
watch: {
h(newVal, oldVla) {
this.initOption()
}
}, },
mounted() { mounted() {
}, },
methods: { methods: {
initOption() {
this.pOption = this.element.videoLinks[this.element.videoLinks.videoType]
this.pOption.height = this.h - (this.curGap * 2)
},
// listen event // listen event
onPlayerPlay(player) { onPlayerPlay(player) {
// console.log('player play!', player) // console.log('player play!', player)
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
:style="getComponentStyleDefault(config.style)" :style="getComponentStyleDefault(config.style)"
:is-edit="false" :is-edit="false"
:element="config" :element="config"
:h="itemHeight" :h="outItemHeight"
/> />
</div> </div>
</template> </template>
...@@ -53,6 +53,9 @@ export default { ...@@ -53,6 +53,9 @@ export default {
} }
}, },
computed: { computed: {
outItemHeight() {
return this.itemHeight - (4 * this.componentGap)
},
// 移动端编辑组件选择按钮显示 // 移动端编辑组件选择按钮显示
mobileCheckBarShow() { mobileCheckBarShow() {
// 显示条件:1.当前是移动端画布编辑状态 // 显示条件:1.当前是移动端画布编辑状态
...@@ -74,7 +77,8 @@ export default { ...@@ -74,7 +77,8 @@ export default {
}, },
...mapState([ ...mapState([
'mobileLayoutStatus', 'mobileLayoutStatus',
'componentData' 'componentData',
'componentGap'
]) ])
}, },
methods: { methods: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论