Browse Source

KERNEL-644 FineUI添加mixin支持

master
dailer 6 years ago
parent
commit
cc3dd20250
  1. 13
      src/core/shortcut.js

13
src/core/shortcut.js

@ -6,6 +6,19 @@
}
kv[xtype] = cls;
};
BI.mixin = function (xtype, mixins) {
var cls;
if (BI.isNull(mixins) && BI.isPlainObject(xtype)) {
cls = BI.OB;
mixins = xtype;
BI.extend(cls.prototype, mixins);
return;
}
cls = kv[xtype];
BI.extend(cls.prototype, mixins);
};
// 根据配置属性生成widget
var createWidget = function (config) {
if (config["classType"]) {

Loading…
Cancel
Save