fix: 移动端设计时,等待区可能出现空白问题

This commit is contained in:
wangjiahao 2022-04-29 11:46:48 +08:00
parent 49e39d3701
commit 7dad0503f3
5 changed files with 13 additions and 13 deletions

View File

@ -1368,7 +1368,11 @@ export default {
resizeView(index, item) {
if (item.type === 'view' || item.type === 'de-show-date') {
this.$refs.wrapperChild[index].chartResize()
try {
this.$refs.wrapperChild[index].chartResize()
} catch (e) {
// ignore error
}
}
},
editComponent(index, item) {

View File

@ -115,7 +115,7 @@ export default {
this.flvPlayer.load()
this.flvPlayer.play()
} catch (error) {
console.log(error)
console.log('flvjs err ignore')
}
}
}

View File

@ -128,7 +128,7 @@ export function baseGaugeOptionAntV(plot, container, chart, action, scale = 1) {
}
}
}
console.log(options.indicator.pin)
// console.log(options.indicator.pin)
// 开始渲染
if (plot) {

View File

@ -9,7 +9,7 @@
v-for="(config, index) in pcComponentData"
v-if="!config.mobileSelected"
:id="'wait' + config.id"
:key="index"
:key="config.id"
>
<component-wait-item
:config="config"

View File

@ -1,8 +1,5 @@
<template>
<div
v-proportion="0.8"
:style="componentItemStyle"
>
<div class="component-item">
<mobile-check-bar v-if="mobileCheckBarShow" :element="config" />
<de-out-widget
v-if="config.type==='custom'"
@ -70,11 +67,6 @@ export default {
})
return result
},
componentItemStyle() {
return {
padding: '5px'
}
},
...mapState([
'mobileLayoutStatus',
'componentData',
@ -96,4 +88,8 @@ export default {
width: 100% !important;
height: 100%;
}
.component-item {
padding: 5px;
height: 200px!important;
}
</style>