From 890e513877f28a16f1242e0093b591196726d240 Mon Sep 17 00:00:00 2001 From: shangqunfeng Date: Fri, 18 Oct 2024 09:42:43 +0800 Subject: [PATCH] fix(*): fix code. --- .../webpack-plugin/lib/runtime/components/react/mpx-view.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx b/packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx index 749ba3c31d..2d5b5ef759 100644 --- a/packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx +++ b/packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx @@ -179,7 +179,7 @@ function calculateSizePosition (h: number, ch: number, val: string): number { if (!h || !ch) return 0 // 百分比需要单独的计算 - if (isPercent(h))) { + if (isPercent(h)) { h = ch * parseFloat(h) / 100 }