Browse Source

update命名

es6
guy 7 years ago
parent
commit
1d3954266e
  1. 12
      bi/core.js
  2. 12
      dist/bundle.js
  3. 2
      dist/bundle.min.js
  4. 12
      dist/core.js
  5. 12
      src/core/shortcut.js

12
bi/core.js

@ -12913,8 +12913,8 @@ BI.Widget = BI.inherit(BI.OB, {
// 根据配置属性生成widget
var createWidget = function (config) {
if (config['classType']) {
return new (new Function('return ' + config['classType'] + ';')())(config);
if (config["classType"]) {
return new (new Function("return " + config["classType"] + ";")())(config);
}
var cls = kv[config.type];
@ -12935,18 +12935,18 @@ BI.Widget = BI.inherit(BI.OB, {
if (item && (item.type || options.type)) {
el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options));
}
if (item && item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options));
}
if (item && BI.isWidget(item.el)) {
return item.el;
}
throw new Error('无法根据item创建组件');
}
throw new Error("无法根据item创建组件");
};
})();(function (window, undefined) {
function aspect(type) {

12
dist/bundle.js vendored

@ -12913,8 +12913,8 @@ BI.Widget = BI.inherit(BI.OB, {
// 根据配置属性生成widget
var createWidget = function (config) {
if (config['classType']) {
return new (new Function('return ' + config['classType'] + ';')())(config);
if (config["classType"]) {
return new (new Function("return " + config["classType"] + ";")())(config);
}
var cls = kv[config.type];
@ -12935,18 +12935,18 @@ BI.Widget = BI.inherit(BI.OB, {
if (item && (item.type || options.type)) {
el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options));
}
if (item && item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options));
}
if (item && BI.isWidget(item.el)) {
return item.el;
}
throw new Error('无法根据item创建组件');
}
throw new Error("无法根据item创建组件");
};
})();(function (window, undefined) {
function aspect(type) {

2
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/core.js vendored

@ -12913,8 +12913,8 @@ BI.Widget = BI.inherit(BI.OB, {
// 根据配置属性生成widget
var createWidget = function (config) {
if (config['classType']) {
return new (new Function('return ' + config['classType'] + ';')())(config);
if (config["classType"]) {
return new (new Function("return " + config["classType"] + ";")())(config);
}
var cls = kv[config.type];
@ -12935,18 +12935,18 @@ BI.Widget = BI.inherit(BI.OB, {
if (item && (item.type || options.type)) {
el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options));
}
if (item && item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options));
}
if (item && BI.isWidget(item.el)) {
return item.el;
}
throw new Error('无法根据item创建组件');
}
throw new Error("无法根据item创建组件");
};
})();(function (window, undefined) {
function aspect(type) {

12
src/core/shortcut.js

@ -9,8 +9,8 @@
// 根据配置属性生成widget
var createWidget = function (config) {
if (config['classType']) {
return new (new Function('return ' + config['classType'] + ';')())(config);
if (config["classType"]) {
return new (new Function("return " + config["classType"] + ";")())(config);
}
var cls = kv[config.type];
@ -31,17 +31,17 @@
if (item && (item.type || options.type)) {
el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options));
}
if (item && item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el);
return BI.Plugin.getObject(el.type, w.type === el.type ? createWidget(w) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)));
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options));
}
if (item && BI.isWidget(item.el)) {
return item.el;
}
throw new Error('无法根据item创建组件');
}
throw new Error("无法根据item创建组件");
};
})();
Loading…
Cancel
Save