fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
;(function () { |
|
var models = {}; |
|
BI.models = function (xtype, cls) { |
|
if (models[xtype] != null) { |
|
throw ("models:[" + xtype + "] has been registed"); |
|
} |
|
models[xtype] = cls; |
|
}; |
|
|
|
BI.Models = { |
|
getModel: function (type, config) { |
|
return new models[type](config); |
|
} |
|
} |
|
})();
|
|
|