AppJson
- 全局配置文件编译处理
使用示例
useReducer({
AppJson (node, store) {
let json = this.$node.content;
// you can process app.json here
if (json.window) {
json.windowInfo = json.window;
delete json.window;
}
}
});
编译结果示例
- 编译前
{
"window": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "演示",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
}
}
- 编译后
{
"windowInfo": {
"navigationBarTextStyle": "black",
"backgroundColor": "#F8F8F8",
"defaultTitle": "演示",
"titleBarColor": "#F8F8F8"
}
}