fix(视图): Tab 切换时重新渲染表格
This commit is contained in:
parent
18e07517ef
commit
79f9889692
@ -655,6 +655,7 @@ export default {
|
||||
tabSwitch(tabCanvasId) {
|
||||
if (this.charViewS2ShowFlag && tabCanvasId === this.canvasId && this.$refs[this.element.propValue.id]) {
|
||||
// do nothing
|
||||
this.$refs[this.element.propValue.id].chartResize()
|
||||
}
|
||||
},
|
||||
// 编辑状态下 不启动刷新
|
||||
|
||||
@ -396,7 +396,8 @@ export default {
|
||||
const { width: chartWidth, height: chartHeight } = this.myChart.options
|
||||
if (width !== chartWidth || height !== chartHeight) {
|
||||
this.myChart?.changeSheetSize(width, height)
|
||||
if (chartWidth || chartHeight) {
|
||||
// 大小变化或者tab变化重新渲染
|
||||
if (chartWidth || chartHeight || !(chartHeight || chartWidth)) {
|
||||
this.myChart.render()
|
||||
}
|
||||
this.initScroll()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user