@ -11,7 +11,10 @@
<script>
BI.config("demo.parent", function (config){
console.log("123");
return config;
return {
type: "bi.button",
text: "被替换的组件"
};
}, {
version: "1.0"
});
@ -22,7 +25,7 @@
components: {
"demo.parent": "1.0"
}
})
// 主线代码里加这个
BI.config("bi.provider.system", function (provider) {
@ -32,7 +35,7 @@
maxVersion: "4.0"
</script>
var Model = BI.inherit(Fix.Model, {
@ -95,7 +95,7 @@
if (modules && version) {
var findVersion = false;
for (var j = 0; j < modules.length; j++) {
var module = modules[i];
var module = modules[j];
if (module && dependencies[module.moduleId] && module.version === version) {
var minVersion = dependencies[module.moduleId].minVersion,
maxVersion = dependencies[module.moduleId].maxVersion;