pages/xx/index.json中添加配置
"renderer": "skyline",
"componentFramework": "glass-easel",
app.json中添加i配置
"lazyCodeLoading": "requiredComponents",
// 全局组件
"usingComponents": { },
"rendererOptions": {
"skyline": {
"defaultDisplayBlock": true
}
}
模拟器中:
真机预览:
参考文档配置下,这样才会开启Skyline:https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/skyline/migration/release.html#%E5%8F%91%E5%B8%83%E4%B8%8A%E7%BA%BF
挺佩服你们的,居然敢用 Skyline 。