From a47f8058d66a7f1397bd54564ce09149e962a9d4 Mon Sep 17 00:00:00 2001 From: shifeng1993 Date: Wed, 12 Apr 2023 21:23:22 +0800 Subject: [PATCH] fix cssinjs compatibility --- .../_util/cssinjs/transformers/legacyLogicalProperties.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/_util/cssinjs/transformers/legacyLogicalProperties.ts b/components/_util/cssinjs/transformers/legacyLogicalProperties.ts index a6944d0127..58e00c89f4 100644 --- a/components/_util/cssinjs/transformers/legacyLogicalProperties.ts +++ b/components/_util/cssinjs/transformers/legacyLogicalProperties.ts @@ -16,14 +16,14 @@ function splitValues(value: string | number) { temp += item; brackets += item.split('(').length - 1; } else if (item.includes(')')) { - temp += item; + temp += ` ${item}`; brackets -= item.split(')').length - 1; if (brackets === 0) { list.push(temp); temp = ''; } } else if (brackets > 0) { - temp += item; + temp += ` ${item}`; } else { list.push(item); }