fix(视图): Tab 切换时重新渲染表格

This commit is contained in:
wisonic-s 2023-12-26 15:09:45 +08:00
parent 18e07517ef
commit 79f9889692
2 changed files with 3 additions and 1 deletions

View File

@ -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()
}
},
//

View File

@ -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()