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
在less文件中使用if函数进行条件判断,最后结果异常 代码
.max (@bool) { width: if(@bool, 520px, 100%); } .box { .max(true); .inner { .max(false); } }
<div className={styles.box}> <div className={styles.inner}>test</div> </div>
结果:
The text was updated successfully, but these errors were encountered:
这个大概率是less-plugin-function的冲突,不是很好修,会很花时间。如果可以避开的话,建议先劈开,比如干脆css-in-js
less-plugin-function
Sorry, something went wrong.
No branches or pull requests
在less文件中使用if函数进行条件判断,最后结果异常
代码
结果:
The text was updated successfully, but these errors were encountered: