From 938efb686e43bd98339512a130ba03a8fa16e1f4 Mon Sep 17 00:00:00 2001 From: kkxxkk2019 Date: Wed, 15 Nov 2023 21:45:33 +0800 Subject: [PATCH] fix: type error fix --- packages/vchart/src/component/tooltip/handler/dom/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vchart/src/component/tooltip/handler/dom/util.ts b/packages/vchart/src/component/tooltip/handler/dom/util.ts index 3abcecdbb..00e73ce7b 100644 --- a/packages/vchart/src/component/tooltip/handler/dom/util.ts +++ b/packages/vchart/src/component/tooltip/handler/dom/util.ts @@ -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';