You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2023. It is now read-only.
在设计组件的时候,想通过
props来动态传入style参数从而改变组件的样式,但是经过查询,当前版本的wepy(v1.6.0)不支持:style,仅仅支持:class,且:class只支持bool判断,不支持其他运算,导致无法更好的设计组件。目前采用的方案:将一些样式写固定,通过wx-if来销毁和生成。