1、使用场景:easycom组件中使用平台特殊组件
2、问题:在可以在pages.json中的pages中配置页面的style中定制,但是如果是在easycom中使用,编译以后json文件中没有相应的配置。如果使用globalStyle.usingComponents进行全局配置,可以展示,但是小程序会报错,因为usingComponents和usingSwanComponents都存在。
3、建议:提供单独配置项,或者继承页面的style配置。从而让usingSwanComponents项配置到对应组件的json文件中,而不是全局

小薰风
- 发布:2021-04-29 16:26
- 更新:2021-06-09 10:15
- 阅读:571



