@mpxjs/webpack-plugin 2.10.7-beta.6 → 2.10.7-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/react/processJSON.js +6 -6
- package/package.json +1 -1
package/lib/react/processJSON.js
CHANGED
|
@@ -113,14 +113,14 @@ module.exports = function (jsonContent, {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
if (ctorType === 'page') {
|
|
116
|
-
|
|
116
|
+
const keysToExtract = ['navigationStyle', 'navigationBarTitleText', 'navigationBarTextStyle', 'navigationBarBackgroundColor']
|
|
117
117
|
const configObj = {}
|
|
118
118
|
// 暂时先不注入数据,后续如需要使用再用
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
keysToExtract.forEach(key => {
|
|
120
|
+
if (jsonObj[key]) {
|
|
121
|
+
configObj[key] = jsonObj[key]
|
|
122
|
+
}
|
|
123
|
+
})
|
|
124
124
|
loaderContext._module.addPresentationalDependency(new RecordPageConfigsMapDependency(parseRequest(loaderContext.resource).resourcePath, configObj))
|
|
125
125
|
}
|
|
126
126
|
|