提交 7dad0503 authored 作者: wangjiahao's avatar wangjiahao

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

上级 49e39d37
...@@ -1368,7 +1368,11 @@ export default { ...@@ -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') {
this.$refs.wrapperChild[index].chartResize() try {
this.$refs.wrapperChild[index].chartResize()
} catch (e) {
// ignore error
}
} }
}, },
editComponent(index, item) { editComponent(index, item) {
......
...@@ -115,7 +115,7 @@ export default { ...@@ -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')
} }
} }
} }
......
...@@ -128,7 +128,7 @@ export function baseGaugeOptionAntV(plot, container, chart, action, scale = 1) { ...@@ -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) {
......
...@@ -9,7 +9,7 @@ ...@@ -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"
......
<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 { ...@@ -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 { ...@@ -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>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论