Merge pull request #7356 from dataease/pr@dev@fix_tab_switch
Pr@dev@fix tab switch
This commit is contained in:
commit
2e2101ca09
@ -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