Browse Source

BI-95335 fix:为空时显示提示

es6
Jimmy.Chai 3 years ago
parent
commit
e2b466acc5
  1. 3
      src/case/layer/pane.list.js

3
src/case/layer/pane.list.js

@ -126,11 +126,12 @@ BI.ListPane = BI.inherit(BI.Pane, {
var tipText = context.tipText || ''; var tipText = context.tipText || '';
if (BI.isNotEmptyString(tipText)) { if (BI.isNotEmptyString(tipText)) {
BI.ListPane.superclass.populate.apply(this, []); BI.ListPane.superclass.populate.apply(this, []);
this.setTipText(tipText);
} else { } else {
BI.ListPane.superclass.populate.apply(this, arguments); BI.ListPane.superclass.populate.apply(this, arguments);
this.button_group.populate.apply(this.button_group, arguments); this.button_group.populate.apply(this.button_group, arguments);
BI.isEmptyArray(BI.get(arguments, [0], [])) && this.setTipText(o.tipText);
} }
this.setTipText(tipText || o.tipText);
}, },
empty: function () { empty: function () {

Loading…
Cancel
Save