refactor(视图): 优化符号地图对公共组件样式的适配 (#2588)

Co-authored-by: wangjiahao <1522128093@qq.com>
This commit is contained in:
fit2cloudrd 2022-07-05 17:23:11 +08:00 committed by GitHub
parent 94fecaafa1
commit bb51c676d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 4 deletions

View File

@ -24,6 +24,7 @@
:is="config.component"
v-else
ref="wrapperChild"
class="component"
:out-style="config.style"
:style="getComponentStyleDefault(config.style)"
:prop-value="config.propValue"
@ -268,4 +269,7 @@ export default {
.main_view{
background-size: 100% 100%!important;
}
.component{
position: relative;
}
</style>

View File

@ -1681,6 +1681,7 @@ export default {
outline: none;
width: 100%;
height: 100%;
position: relative;
}
}

View File

@ -12,7 +12,7 @@
<span class="params-title">{{ $t('panel.inner_padding') }}</span>
</el-col>
<el-col :span="15">
<el-slider v-model="curComponent.commonBackground.innerPadding" show-input :show-input-controls="false" input-size="mini" :max="15" />
<el-slider v-model="curComponent.commonBackground.innerPadding" show-input :show-input-controls="false" input-size="mini" :max="50" />
</el-col>
</el-row>
<el-row style="height: 50px;overflow: hidden">

View File

@ -389,7 +389,7 @@ export default {
this.myChart.store.set('scrollY', this.scrollTop)
this.myChart.render()
if (senior.scrollCfg && senior.scrollCfg.open && (this.chart.type === 'table-normal' || (this.chart.type === 'table-info' && !this.showPage))) {
if (senior && senior.scrollCfg && senior.scrollCfg.open && (this.chart.type === 'table-normal' || (this.chart.type === 'table-info' && !this.showPage))) {
const rowHeight = customAttr.size.tableItemHeight
const headerHeight = customAttr.size.tableTitleHeight

View File

@ -148,7 +148,7 @@ export default {
eventBus.$on('resizing', this.chartResize)
},
beforeDestroy() {
eventBus.$off('resizing',this.chartResize)
eventBus.$off('resizing', this.chartResize)
clearInterval(this.scrollTimer)
},
methods: {
@ -387,7 +387,7 @@ export default {
})
}, 0)
if (senior.scrollCfg && senior.scrollCfg.open && (this.chart.type === 'table-normal' || (this.chart.type === 'table-info' && !this.showPage))) {
if (senior && senior.scrollCfg && senior.scrollCfg.open && (this.chart.type === 'table-normal' || (this.chart.type === 'table-info' && !this.showPage))) {
let rowHeight = customAttr.size.tableItemHeight
if (rowHeight < 36) {
rowHeight = 36