Pr@dev v2@fix table scroll (#15522)

* fix(图表): 修复分组柱状图子维度为空时不显示

* fix(图表): 修复表格滚动失效
This commit is contained in:
wisonic-s
2025-03-28 11:29:41 +08:00
committed by GitHub
parent f39ee03fb5
commit ce354c2495
2 changed files with 2 additions and 5 deletions

View File

@@ -448,10 +448,7 @@ export class GroupBar extends StackBar {
}
const { chart } = drawOptions
const { xAxis, xAxisExt, yAxis } = chart
let innerSort = true
if (!(xAxis.length && xAxisExt.length && yAxis.length)) {
innerSort = false
}
let innerSort = !!(xAxis.length && xAxisExt.length && yAxis.length)
if (innerSort && yAxis[0].sort === 'none') {
innerSort = false
}

View File

@@ -294,7 +294,7 @@ const initScroll = () => {
myChart &&
senior?.scrollCfg?.open &&
chartData.value.tableRow?.length &&
PAGE_CHARTS.includes(chart.type) &&
PAGE_CHARTS.includes(props.view.type) &&
!state.showPage
) {
// 防止多次渲染