Browse Source

fix: cssinjs compatibility (#6454)

pull/6458/head
果冻橙 2 years ago committed by GitHub
parent
commit
838aa71b4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/_util/cssinjs/transformers/legacyLogicalProperties.ts

4
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);
}

Loading…
Cancel
Save