mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
fix(图表): 修复表格日期字段条件样式判空不生效 #17710
This commit is contained in:
@@ -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') {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user