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




更多关于uni-app无法在easycom自定义组件中进行百度小程序usingSwanComponents配置的实战教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复


