Browse Source

Pull request #2481: REPORT-60473 单选树加上showView 补全focus事件

Merge in VISUAL/fineui from ~FREDDY/fineui:master to master

* commit 'ec5f1ab263965062a5ca2f231906728da5e48f97':
  REPORT-60473 fix:补全focus事件
  REPORT-60473 fix:单选下拉树加上showView
es6
Freddy 3 years ago
parent
commit
82fd3e0503
  1. 4
      src/widget/multilayerselecttree/multilayerselecttree.combo.js
  2. 4
      src/widget/multilayersingletree/multilayersingletree.combo.js
  3. 11
      src/widget/multitree/trigger/searcher.list.multi.tree.js
  4. 2
      typescript/widget/multilayerselecttree/multilayerselecttree.combo.ts
  5. 2
      typescript/widget/multilayersingletree/multilayersingletree.combo.ts

4
src/widget/multilayerselecttree/multilayerselecttree.combo.js

@ -246,6 +246,10 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
blur: function () { blur: function () {
this.trigger.blur(); this.trigger.blur();
},
showView: function () {
this.combo.showView();
} }
}); });

4
src/widget/multilayersingletree/multilayersingletree.combo.js

@ -247,6 +247,10 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
blur: function () { blur: function () {
this.trigger.blur(); this.trigger.blur();
},
showView: function () {
this.combo.showView();
} }
}); });

11
src/widget/multitree/trigger/searcher.list.multi.tree.js

@ -31,7 +31,18 @@ BI.MultiListTreeSearcher = BI.inherit(BI.Widget, {
el: { el: {
type: "bi.simple_state_editor", type: "bi.simple_state_editor",
height: o.height height: o.height
},
listeners: [{
eventName: BI.MultiSelectEditor.EVENT_FOCUS,
action: function () {
self.fireEvent(BI.MultiSelectSearcher.EVENT_FOCUS);
}
}, {
eventName: BI.MultiSelectEditor.EVENT_BLUR,
action: function () {
self.fireEvent(BI.MultiSelectSearcher.EVENT_BLUR);
} }
}]
}); });
this.searcher = BI.createWidget({ this.searcher = BI.createWidget({

2
typescript/widget/multilayerselecttree/multilayerselecttree.combo.ts

@ -19,4 +19,6 @@ export declare class MultiLayerSelectTreeCombo extends Widget {
focus(): void; focus(): void;
blur(): void; blur(): void;
showView(): void;
} }

2
typescript/widget/multilayersingletree/multilayersingletree.combo.ts

@ -19,4 +19,6 @@ export declare class MultiLayerSingleTreeCombo extends Widget {
focus(): void; focus(): void;
blur(): void; blur(): void;
showView(): void;
} }

Loading…
Cancel
Save