【发布时间】:2017-09-21 12:20:14
【问题描述】:
我们目前正在构建一组应用程序,其中有很多重用。
目前我们通过使用 jQuery.sap.registerModulePath 和 jQuery.sap.require。 但根据 Using and Nesting Components 你应该可以在 manifest.json 文件中声明你的复用组件。
我查看了SAPUI5 Developer Guide,但无法真正实现。据我所知,我需要添加以下内容:
"sap.App" :{
"embeddedBy" : "../.."
},
"sap.ui5": {
"componentUsages" :{
"<string for my reuse component>" : {
"name" : "<name of the component>"
}
"dependencies" :{
"components" : {
"<namespace of my component>"
}}
谁有一个可行的例子?
【问题讨论】:
标签: sapui5