|
|
|
@ -91,15 +91,16 @@
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var iconInvisible = !o.loading && !o.iconCls; |
|
|
|
|
if (BI.isObject(o.icon) && BI.isString(o.icon.type)) { |
|
|
|
|
// FineUI 自定义 icon
|
|
|
|
|
if (BI.isPlainObject(o.icon)) { |
|
|
|
|
this.icon = BI.createWidget(o.icon); |
|
|
|
|
o.loading ? (this.icon.loading && this.icon.loading()) |
|
|
|
|
: (this.icon.loaded && this.icon.loaded()); |
|
|
|
|
} else { |
|
|
|
|
// ReactUI 自定义的 icon
|
|
|
|
|
if (!o.loading && BI.isObject(o.icon)) { |
|
|
|
|
this.icon = o.icon; |
|
|
|
|
if (!o.loading && BI.isFunction(o.icon)) { |
|
|
|
|
this.icon = BI.createWidget({ |
|
|
|
|
type: "bi.layout", |
|
|
|
|
}); |
|
|
|
|
o.icon(this.icon.element); |
|
|
|
|
} else { |
|
|
|
|
this.icon = BI.createWidget({ |
|
|
|
|
type: "bi.icon_label", |
|
|
|
|