diff --git a/packages/fineui/src/base/combination/loader.js b/packages/fineui/src/base/combination/loader.js index 95081f18b..4706d4c2a 100644 --- a/packages/fineui/src/base/combination/loader.js +++ b/packages/fineui/src/base/combination/loader.js @@ -181,7 +181,7 @@ export class Loader extends Widget { isEmpty(optionsItems) && nextTick( bind(() => { - isDefaultInit && isEmpty(optionsItems) && this._populate(); + isDefaultInit && isEmpty(this.options.items) && this._populate(); }, this) ); const items = isFunction(optionsItems) diff --git a/packages/fineui/src/widget/multitree/trigger/multi.tree.search.insert.pane.js b/packages/fineui/src/widget/multitree/trigger/multi.tree.search.insert.pane.js index feba439cf..454e1daf9 100644 --- a/packages/fineui/src/widget/multitree/trigger/multi.tree.search.insert.pane.js +++ b/packages/fineui/src/widget/multitree/trigger/multi.tree.search.insert.pane.js @@ -11,7 +11,7 @@ export class MultiTreeSearchInsertPane extends Widget { el: { type: PartTree.xtype }, }; - static constants = { + static CONSTANTS = { height: 24, }; @@ -36,7 +36,7 @@ export class MultiTreeSearchInsertPane extends Widget { self.addTip = _ref; }, text: i18nText("BI-Basic_Click_To_Add_Text", ""), - height: this.constants.height, + height: MultiTreeSearchInsertPane.CONSTANTS.height, cls: "bi-high-light", handler() { self.fireEvent(MultiTreeSearchInsertPane.EVENT_ADD_ITEM, opts.keywordGetter());