guy 7 years ago
parent
commit
ef5e288f2e
  1. 7
      dist/bundle.js
  2. 2
      dist/bundle.min.js
  3. 7
      dist/core.js
  4. 7
      dist/fineui.js
  5. 2
      dist/fineui.min.js
  6. 7
      src/core/shortcut.js

7
dist/bundle.js vendored

@ -12939,6 +12939,7 @@ BI.Widget = BI.inherit(BI.OB, {
BI.createWidget = function (item, options) {
var el, w;
item || (item = {});
options || (options = {});
if (BI.isEmpty(item) && BI.isEmpty(options)) {
return BI.createWidget({
@ -12948,17 +12949,17 @@ BI.Widget = BI.inherit(BI.OB, {
if (BI.isWidget(item)) {
return item;
}
if (item && (item.type || options.type)) {
if (item.type || options.type) {
el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el);
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)) {
if (item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el);
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)) {
if (BI.isWidget(item.el)) {
return item.el;
}
throw new Error("无法根据item创建组件");

2
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

7
dist/core.js vendored

@ -12939,6 +12939,7 @@ BI.Widget = BI.inherit(BI.OB, {
BI.createWidget = function (item, options) {
var el, w;
item || (item = {});
options || (options = {});
if (BI.isEmpty(item) && BI.isEmpty(options)) {
return BI.createWidget({
@ -12948,17 +12949,17 @@ BI.Widget = BI.inherit(BI.OB, {
if (BI.isWidget(item)) {
return item;
}
if (item && (item.type || options.type)) {
if (item.type || options.type) {
el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el);
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)) {
if (item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el);
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)) {
if (BI.isWidget(item.el)) {
return item.el;
}
throw new Error("无法根据item创建组件");

7
dist/fineui.js vendored

@ -13112,6 +13112,7 @@ BI.Widget = BI.inherit(BI.OB, {
BI.createWidget = function (item, options) {
var el, w;
item || (item = {});
options || (options = {});
if (BI.isEmpty(item) && BI.isEmpty(options)) {
return BI.createWidget({
@ -13121,17 +13122,17 @@ BI.Widget = BI.inherit(BI.OB, {
if (BI.isWidget(item)) {
return item;
}
if (item && (item.type || options.type)) {
if (item.type || options.type) {
el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el);
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)) {
if (item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el);
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)) {
if (BI.isWidget(item.el)) {
return item.el;
}
throw new Error("无法根据item创建组件");

2
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

7
src/core/shortcut.js

@ -19,6 +19,7 @@
BI.createWidget = function (item, options) {
var el, w;
item || (item = {});
options || (options = {});
if (BI.isEmpty(item) && BI.isEmpty(options)) {
return BI.createWidget({
@ -28,17 +29,17 @@
if (BI.isWidget(item)) {
return item;
}
if (item && (item.type || options.type)) {
if (item.type || options.type) {
el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el);
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)) {
if (item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el);
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)) {
if (BI.isWidget(item.el)) {
return item.el;
}
throw new Error("无法根据item创建组件");

Loading…
Cancel
Save