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