style: 样式修改 (#1563)

* style: 样式修改

* style: 样式修改

Co-authored-by: wangjiahao <1522128093@qq.com>
This commit is contained in:
fit2cloudrd 2021-12-30 14:30:37 +08:00 committed by GitHub
parent 3948184720
commit 2dfe2e3cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 5 deletions

View File

@ -4,7 +4,7 @@
<div
id="canvasInfoTemp"
ref="canvasInfoTemp"
:style="[{height:mainHeight},screenShotStyle]"
:style="[canvasInfoTempStyle,screenShotStyle]"
class="main-class"
@mouseup="deselectCurComponent"
@mousedown="handleMouseDown"
@ -144,6 +144,19 @@ export default {
}
}
},
canvasInfoTempStyle() {
if (this.screenShot) {
return {
width: '100%',
height: this.mainHeight
}
} else {
return {
width: '100%',
height: '100%'
}
}
},
customStyle() {
let style = {
width: '100%'

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: {