fix: type error fix

This commit is contained in:
kkxxkk2019 2023-11-15 21:45:33 +08:00 committed by Weixing Zhang
parent b4f9ce3c93
commit 938efb686e

View File

@ -164,7 +164,7 @@ function getLabelStyle(
styleObj.fontSize = getPixelPropertyStr(labelFontSize);
styleObj.color = labelColor as string;
styleObj.textAlign = textAlign as TextAlign;
styleObj.lineHeight = getPixelPropertyStr(lineHeight);
styleObj.lineHeight = getPixelPropertyStr(lineHeight as number);
styleObj.fontWeight = fontWeight as FontWeight;
styleObj.whiteSpace = multiLine ? 'initial' : 'nowrap';
styleObj.wordBreak = multiLine ? wordBreak ?? 'break-word' : 'normal';