@ -8,6 +8,29 @@
</head>
<body>
<div id="wrapper"></div>
<script>
BI.config("demo.parent", function (config){
console.log("123");
return config;
}, {
version: "1.0"
});
BI.module("my.module", {
components: {
"demo.parent": "1.0"
}
})
BI.config("bi.provider.system", function (provider) {
provider.addDependencies({
"my.module": {
min: "2.0",
max: "4.0"
</script>
var Model = BI.inherit(Fix.Model, {
state: function () {
@ -71,7 +71,8 @@
var configFunctions = {};
BI.config = BI.config || function (type, configFn, opt) {
opt = opt || {};
if (BI.initialized) {
// 初始化过或者系统配置需要立刻执行
if (BI.initialized || "bi.provider.system" === type) {
if (constantInjection[type]) {
return (constantInjection[type] = configFn(constantInjection[type]));