fix: cssinjs compatibility (#6454)
parent
2bf654da71
commit
838aa71b4b
|
@ -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…
Reference in New Issue