fix(图表): 修复表格日期字段条件样式判空不生效 #17710

This commit is contained in:
wisonic
2026-01-07 15:58:29 +08:00
committed by wisonic-s
parent af49f69778
commit 97e2800e50
2 changed files with 5 additions and 5 deletions

View File

@@ -268,11 +268,11 @@ export class TablePivot extends S2ChartView<PivotSheet> {
// 默认展开层级
if (basicStyle.tableLayoutMode === 'tree') {
const { defaultExpandLevel } = basicStyle
if (isNumber(defaultExpandLevel)) {
if (defaultExpandLevel >= chart.xAxis.length) {
s2Options.style.rowExpandDepth = defaultExpandLevel
if (isNumeric(defaultExpandLevel)) {
if ((defaultExpandLevel as number) >= chart.xAxis.length) {
s2Options.style.rowExpandDepth = defaultExpandLevel as number
} else {
s2Options.style.rowExpandDepth = defaultExpandLevel - 2
s2Options.style.rowExpandDepth = (defaultExpandLevel as number) - 2
}
}
if (defaultExpandLevel === 'all') {

View File

@@ -813,7 +813,7 @@ export function mappingColor(value, defaultColor, field, type, filedValueMap?, r
} else {
const fc = field.conditions[i]
if (fc.term === 'null') {
if (value === null && value === undefined && value === '') {
if (value === null || value === undefined || value === '') {
color = fc[type]
flag = true
}