提交 cf87a142 编写于 作者: Q qiang

fix: 修复作用域插槽内 easycom 组件不显示的问题 question/103407

上级 cc9bfaeb
......@@ -105,6 +105,12 @@ module.exports = function generateJson (compilation) {
}
delete jsonObj.usingGlobalComponents
// usingAutoImportComponents
if (jsonObj.usingAutoImportComponents && Object.keys(jsonObj.usingAutoImportComponents).length) {
jsonObj.usingComponents = Object.assign(jsonObj.usingAutoImportComponents, jsonObj.usingComponents)
}
delete jsonObj.usingAutoImportComponents
if (jsonObj.genericComponents && jsonObj.genericComponents.length) { // scoped slots
// 生成genericComponents json
const genericComponents = Object.create(null)
......@@ -144,12 +150,6 @@ module.exports = function generateJson (compilation) {
delete jsonObj.genericComponents
// usingAutoImportComponents
if (jsonObj.usingAutoImportComponents && Object.keys(jsonObj.usingAutoImportComponents).length) {
jsonObj.usingComponents = Object.assign(jsonObj.usingAutoImportComponents, jsonObj.usingComponents)
}
delete jsonObj.usingAutoImportComponents
if (process.env.UNI_PLATFORM !== 'app-plus' && process.env.UNI_PLATFORM !== 'h5') {
delete jsonObj.navigationBarShadow
}
......@@ -195,4 +195,4 @@ module.exports = function generateJson (compilation) {
require('@dcloudio/uni-cli-shared/lib/cache').store()
}, 50)
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册