forked from github/dataease
fix(图表): 修复明细表条件样式列字体透明度不生效
This commit is contained in:
parent
c59b2e9c64
commit
dc0ea7703f
@ -564,7 +564,7 @@ export function getConditions(chart: Chart) {
|
|||||||
if (conditions?.length > 0) {
|
if (conditions?.length > 0) {
|
||||||
const { tableCell, basicStyle, tableHeader } = parseJson(chart.customAttr)
|
const { tableCell, basicStyle, tableHeader } = parseJson(chart.customAttr)
|
||||||
const enableTableCrossBG = tableCell.enableTableCrossBG
|
const enableTableCrossBG = tableCell.enableTableCrossBG
|
||||||
const valueColor = tableCell.tableFontColor
|
const valueColor = isAlphaColor(tableCell.tableFontColor) ? tableCell.tableFontColor : hexColorToRGBA(tableCell.tableFontColor, basicStyle.alpha)
|
||||||
const valueBgColor = enableTableCrossBG
|
const valueBgColor = enableTableCrossBG
|
||||||
? null
|
? null
|
||||||
: isAlphaColor(tableCell.tableItemBgColor)
|
: isAlphaColor(tableCell.tableItemBgColor)
|
||||||
@ -629,7 +629,7 @@ export function getConditions(chart: Chart) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function mappingColor(value, defaultColor, field, type, filedValueMap?, rowData?) {
|
export function mappingColor(value, defaultColor, field, type, filedValueMap?, rowData?) {
|
||||||
let color
|
let color = null
|
||||||
for (let i = 0; i < field.conditions.length; i++) {
|
for (let i = 0; i < field.conditions.length; i++) {
|
||||||
let flag = false
|
let flag = false
|
||||||
const t = field.conditions[i]
|
const t = field.conditions[i]
|
||||||
|
Loading…
Reference in New Issue
Block a user