Browse Source

Pull request #2052: 无JIRA任务 整理一下

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit '353f02daa3aaec26e5bcaa3f06ce2ff5b60d4a51':
  add
  add
es6
guy 3 years ago
parent
commit
ee15132bf5
  1. 3
      examples/dev.html
  2. 4
      src/core/6.inject.js

3
examples/dev.html

@ -17,11 +17,14 @@
});
BI.module("my.module", {
// version不设置的话默认就用接口的version作为判断条件
version: "1.0",
components: {
"demo.parent": "1.0"
}
})
// 主线代码里加这个
BI.config("bi.provider.system", function (provider) {
provider.addDependencies({
"my.module": {

4
src/core/6.inject.js

@ -109,11 +109,11 @@
var module = modules[i];
if (module && dependencies[module.moduleId] && module.version === version) {
var minVersion = dependencies[module.moduleId].minVersion, maxVersion = dependencies[module.moduleId].maxVersion;
if (minVersion && module.version < minVersion){
if (minVersion && (moduleInjection[module.moduleId].version || version) < minVersion){
findVersion = true;
break;
}
if(maxVersion && module.version > maxVersion){
if(maxVersion && (moduleInjection[module.moduleId].version || version) > maxVersion){
findVersion = true;
break;
}

Loading…
Cancel
Save