style: 样式修改

This commit is contained in:
wangjiahao 2021-12-30 14:29:51 +08:00
parent b011aaab98
commit f20b58df80
2 changed files with 16 additions and 4 deletions

View File

@ -84,12 +84,20 @@ export default {
])
},
created() {
this.pOption = this.element.videoLinks[this.element.videoLinks.videoType]
this.pOption.height = this.h - (this.curGap * 2)
this.initOption()
},
watch: {
h(newVal, oldVla) {
this.initOption()
}
},
mounted() {
},
methods: {
initOption() {
this.pOption = this.element.videoLinks[this.element.videoLinks.videoType]
this.pOption.height = this.h - (this.curGap * 2)
},
// listen event
onPlayerPlay(player) {
// console.log('player play!', player)

View File

@ -22,7 +22,7 @@
:style="getComponentStyleDefault(config.style)"
:is-edit="false"
:element="config"
:h="itemHeight"
:h="outItemHeight"
/>
</div>
</template>
@ -53,6 +53,9 @@ export default {
}
},
computed: {
outItemHeight() {
return this.itemHeight - (4 * this.componentGap)
},
//
mobileCheckBarShow() {
// 1.
@ -74,7 +77,8 @@ export default {
},
...mapState([
'mobileLayoutStatus',
'componentData'
'componentData',
'componentGap'
])
},
methods: {