|
|
@ -12935,18 +12935,18 @@ BI.Widget = BI.inherit(BI.OB, { |
|
|
|
if (item && (item.type || options.type)) { |
|
|
|
if (item && (item.type || options.type)) { |
|
|
|
el = BI.extend({}, options, item); |
|
|
|
el = BI.extend({}, options, item); |
|
|
|
w = BI.Plugin.getWidget(el.type, 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 && item.el && (item.el.type || options.type)) { |
|
|
|
if (item && item.el && (item.el.type || options.type)) { |
|
|
|
el = BI.extend({}, options, item.el); |
|
|
|
el = BI.extend({}, options, item.el); |
|
|
|
w = BI.Plugin.getWidget(el.type, 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)) { |
|
|
|
if (item && BI.isWidget(item.el)) { |
|
|
|
return item.el; |
|
|
|
return item.el; |
|
|
|
} |
|
|
|
} |
|
|
|
throw new Error('无法根据item创建组件'); |
|
|
|
throw new Error("无法根据item创建组件"); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
})();(function (window, undefined) { |
|
|
|
})();(function (window, undefined) { |
|
|
|
function aspect(type) { |
|
|
|
function aspect(type) { |
|
|
|