Skip to content

Commit

Permalink
fix(cf): different styles of icon set render different results (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gggpound committed Mar 28, 2024
1 parent 2c3f048 commit b4d47f1
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,17 @@ export const iconSetCalculateUnit: ICalculateUnit = {
computeResult.setValue(row, col, { iconId, iconType, isShowValue });
return;
}
} else if (index === splitValue.length - 1) {
computeResult.setValue(row, col, { iconId, iconType, isShowValue });
return;
} else {
const pre = splitValue[index - 1];
end.operator = getOppositeOperator(pre.operator);
end.value = pre.value;
}
if (compareWithNumber(start, value) && compareWithNumber(end, value)) {
computeResult.setValue(row, col, { iconId, iconType, isShowValue });
return;
if (compareWithNumber(start, value) && compareWithNumber(end, value)) {
computeResult.setValue(row, col, { iconId, iconType, isShowValue });
return;
}
}
}
});
Expand Down

0 comments on commit b4d47f1

Please sign in to comment.