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) { resizeView(index, item) {
if (item.type === 'view' || item.type === 'de-show-date') { if (item.type === 'view' || item.type === 'de-show-date') {
try {
this.$refs.wrapperChild[index].chartResize() this.$refs.wrapperChild[index].chartResize()
} catch (e) {
// ignore error
}
} }
}, },
editComponent(index, item) { editComponent(index, item) {

View File

@ -115,7 +115,7 @@ export default {
this.flvPlayer.load() this.flvPlayer.load()
this.flvPlayer.play() this.flvPlayer.play()
} catch (error) { } 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) { if (plot) {

View File

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

View File

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