forked from github/dataease
refactor(视图): 优化符号地图对公共组件样式的适配 (#2588)
Co-authored-by: wangjiahao <1522128093@qq.com>
This commit is contained in:
parent
94fecaafa1
commit
bb51c676d8
@ -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>
|
||||
|
@ -1681,6 +1681,7 @@ export default {
|
||||
outline: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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">
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user