forked from github/dataease
Merge pull request #13177 from dataease/pr@dev-v2@fix_threshold_field_font_color_alpha
Pr@dev v2@fix threshold field font color alpha
This commit is contained in:
commit
0bf8dceaa4
@ -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