@mpxjs/webpack-plugin 2.10.7-beta.5 → 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
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
|
|
|
@@ -2725,8 +2725,8 @@ function processElement (el, root, options, meta) {
|
|
|
2725
2725
|
processIf(el)
|
|
2726
2726
|
processFor(el)
|
|
2727
2727
|
processRefReact(el, meta)
|
|
2728
|
-
processStyleReact(el, options)
|
|
2729
2728
|
if (!pass) {
|
|
2729
|
+
processStyleReact(el, options)
|
|
2730
2730
|
processEventReact(el, options)
|
|
2731
2731
|
processComponentGenerics(el, meta)
|
|
2732
2732
|
processComponentIs(el, options)
|