fix: cssinjs compatibility (#6454)

pull/6458/head
果冻橙 2 years ago committed by GitHub
parent 2bf654da71
commit 838aa71b4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,14 +16,14 @@ function splitValues(value: string | number) {
temp += item; temp += item;
brackets += item.split('(').length - 1; brackets += item.split('(').length - 1;
} else if (item.includes(')')) { } else if (item.includes(')')) {
temp += item; temp += ` ${item}`;
brackets -= item.split(')').length - 1; brackets -= item.split(')').length - 1;
if (brackets === 0) { if (brackets === 0) {
list.push(temp); list.push(temp);
temp = ''; temp = '';
} }
} else if (brackets > 0) { } else if (brackets > 0) {
temp += item; temp += ` ${item}`;
} else { } else {
list.push(item); list.push(item);
} }

Loading…
Cancel
Save