mirror of
https://github.com/dataease/dataease.git
synced 2026-05-19 02:08:10 +08:00
Pr@dev v2@fix table scroll (#15522)
* fix(图表): 修复分组柱状图子维度为空时不显示 * fix(图表): 修复表格滚动失效
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
) {
|
||||
// 防止多次渲染
|
||||
|
||||
Reference in New Issue
Block a user