Browse Source

Pull request #1433: REPORT-37258 fix: 直接调用populate 清空了面板

Merge in VISUAL/fineui from ~WINDY/fui:master to master

* commit 'ab999a7ec589edeccc09a225a4debae2939fd6fa':
  update
  REPORT-37258 fix: 直接调用populate 清空了面板
master
guy 4 years ago
parent
commit
3abc80488b
  1. 4
      src/component/allvaluechooser/combo.allvaluechooser.js
  2. 4
      src/component/allvaluechooser/pane.allvaluechooser.js
  3. 4
      src/component/treevaluechooser/combo.listtreevaluechooser.js
  4. 4
      src/component/treevaluechooser/combo.treevaluechooser.insert.js
  5. 4
      src/component/treevaluechooser/combo.treevaluechooser.js
  6. 4
      src/component/treevaluechooser/pane.treevaluechooser.js
  7. 4
      src/component/valuechooser/combo.valuechooser.insert.js
  8. 4
      src/component/valuechooser/combo.valuechooser.js
  9. 4
      src/component/valuechooser/pane.valuechooser.js

4
src/component/allvaluechooser/combo.allvaluechooser.js

@ -61,7 +61,9 @@ BI.AllValueChooserCombo = BI.inherit(BI.AbstractAllValueChooser, {
populate: function (items) {
// 直接用combo的populate不会作用到AbstractValueChooser上
this.items = items;
if (BI.isNotNull(items)) {
this.items = items;
}
this.combo.populate();
}
});

4
src/component/allvaluechooser/pane.allvaluechooser.js

@ -58,7 +58,9 @@ BI.AllValueChooserPane = BI.inherit(BI.AbstractAllValueChooser, {
populate: function (items) {
// 直接用combo的populate不会作用到AbstractValueChooser上
this.items = items;
if (BI.isNotNull(items)) {
this.items = items;
}
this.list.populate();
}
});

4
src/component/treevaluechooser/combo.listtreevaluechooser.js

@ -93,7 +93,9 @@ BI.ListTreeValueChooserInsertCombo = BI.inherit(BI.AbstractListTreeValueChooser,
},
populate: function (items) {
this._initData(items);
if (BI.isNotNull(items)) {
this._initData(items);
}
this.combo.populate();
}
});

4
src/component/treevaluechooser/combo.treevaluechooser.insert.js

@ -92,7 +92,9 @@ BI.TreeValueChooserInsertCombo = BI.inherit(BI.AbstractTreeValueChooser, {
},
populate: function (items) {
this._initData(items);
if (BI.isNotNull(items)) {
this._initData(items);
}
this.combo.populate();
}
});

4
src/component/treevaluechooser/combo.treevaluechooser.js

@ -96,7 +96,9 @@ BI.TreeValueChooserCombo = BI.inherit(BI.AbstractTreeValueChooser, {
},
populate: function (items) {
this._initData(items);
if (BI.isNotNull(items)) {
this._initData(items);
}
this.combo.populate();
}
});

4
src/component/treevaluechooser/pane.treevaluechooser.js

@ -50,7 +50,9 @@ BI.TreeValueChooserPane = BI.inherit(BI.AbstractTreeValueChooser, {
},
populate: function (items) {
this._initData(items);
if (BI.isNotNull(items)) {
this._initData(items);
}
this.pane.populate();
}
});

4
src/component/valuechooser/combo.valuechooser.insert.js

@ -88,7 +88,9 @@ BI.ValueChooserInsertCombo = BI.inherit(BI.AbstractValueChooser, {
populate: function (items) {
// 直接用combo的populate不会作用到AbstractValueChooser上
this.items = items;
if (BI.isNotNull(items)) {
this.items = items;
}
this.combo.populate();
}
});

4
src/component/valuechooser/combo.valuechooser.js

@ -92,7 +92,9 @@ BI.ValueChooserCombo = BI.inherit(BI.AbstractValueChooser, {
populate: function (items) {
// 直接用combo的populate不会作用到AbstractValueChooser上
this.items = items;
if (BI.isNotNull(items)) {
this.items = items;
}
this.combo.populate();
}
});

4
src/component/valuechooser/pane.valuechooser.js

@ -60,7 +60,9 @@ BI.ValueChooserPane = BI.inherit(BI.AbstractValueChooser, {
populate: function (items) {
// 直接用combo的populate不会作用到AbstractValueChooser上
items && (this.items = items);
if (BI.isNotNull(items)) {
this.items = items;
}
this.list.populate();
}
});

Loading…
Cancel
Save