We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
legacyLogicalPropertiesTransformer
calc()
calc(a + b) 的拼接缺少必要的空格。
calc(a + b)
Sider 内的折叠 Menu Icon 受到明显的影响,无法居中对齐:
Sider
Menu
Icon
相关问题:
The text was updated successfully, but these errors were encountered:
临时解决方案:
const transformers = [ legacyLogicalPropertiesTransformer, { visit(cssObj) { for (const item of Object.values(cssObj)) { if (typeof item.value === 'string' && item.value === 'calc(50%-14px)') { item.value = item.value.split('-').join(' - '); } } }, }, ];
Sorry, something went wrong.
临时解决方案: const transformers = [ legacyLogicalPropertiesTransformer, { visit(cssObj) { for (const item of Object.values(cssObj)) { if (typeof item.value === 'string' && item.value === 'calc(50%-14px)') { item.value = item.value.split('-').join(' - '); } } }, }, ];
这里14px是不固定的, 我改成用正则了
if ( item && typeof item === 'object' && value' in item && typeof item.value === 'string' && /calc\(50%-\d+px\)/.test(item.value) ) { item.value = item.value.split('-').join(' - '); }
No branches or pull requests
calc(a + b)
的拼接缺少必要的空格。Sider
内的折叠Menu
Icon
受到明显的影响,无法居中对齐:相关问题:
The text was updated successfully, but these errors were encountered: