Browse Source

feat: 增加getSearcher接口

es6
iapyang 3 years ago
parent
commit
996bbee769
  1. 4
      src/widget/multitree/multi.tree.combo.js
  2. 4
      src/widget/multitree/multi.tree.insert.combo.js
  3. 4
      src/widget/multitree/multi.tree.list.combo.js
  4. 4
      src/widget/singletree/singletree.trigger.js
  5. 3
      typescript/widget/multitree/multi.tree.combo.ts
  6. 3
      typescript/widget/multitree/multi.tree.insert.combo.ts
  7. 3
      typescript/widget/multitree/multi.tree.list.combo.ts

4
src/widget/multitree/multi.tree.combo.js

@ -334,6 +334,10 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
});
},
getSearcher: function () {
return this.trigger.getSearcher();
},
getValue: function () {
return BI.deepClone(this.storeValue.value);
},

4
src/widget/multitree/multi.tree.insert.combo.js

@ -331,6 +331,10 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, {
this.combo.hideView();
},
getSearcher: function () {
return this.trigger.getSearcher();
},
showView: function () {
this.combo.showView();
},

4
src/widget/multitree/multi.tree.list.combo.js

@ -363,6 +363,10 @@ BI.MultiTreeListCombo = BI.inherit(BI.Single, {
this.combo.hideView();
},
getSearcher: function () {
return this.trigger.getSearcher();
},
setValue: function (v) {
this.storeValue.value = v || [];
this.combo.setValue({

4
src/widget/singletree/singletree.trigger.js

@ -51,6 +51,10 @@ BI.SingleTreeTrigger = BI.inherit(BI.Trigger, {
return this.options.value || [];
},
getLabel: function () {
return this.trigger.getLabel();
},
populate: function (items) {
this.trigger.populate(items);
}

3
typescript/widget/multitree/multi.tree.combo.ts

@ -1,4 +1,5 @@
import { Single } from "../../base/single/single";
import { Trigger } from "../../base/single/trigger/trigger";
export declare class MultiTreeCombo extends Single {
static xtype: string;
@ -12,4 +13,6 @@ export declare class MultiTreeCombo extends Single {
showView(): void;
hideView(): void;
getSearcher(): Trigger;
}

3
typescript/widget/multitree/multi.tree.insert.combo.ts

@ -1,4 +1,5 @@
import { Single } from "../../base/single/single";
import { Trigger } from "../../base/single/trigger/trigger";
import { TreeValue } from "../../base/tree/ztree/treeview";
export declare class MultiTreeInsertCombo extends Single {
@ -20,4 +21,6 @@ export declare class MultiTreeInsertCombo extends Single {
getValue(): TreeValue;
populate(): void;
getSearcher(): Trigger;
}

3
typescript/widget/multitree/multi.tree.list.combo.ts

@ -1,4 +1,5 @@
import { Single } from "../../base/single/single";
import { Trigger } from "../../base/single/trigger/trigger";
export declare class MultiTreeListCombo extends Single {
static xtype: string;
@ -19,4 +20,6 @@ export declare class MultiTreeListCombo extends Single {
getValue(): string[];
populate(): void;
getSearcher(): Trigger;
}

Loading…
Cancel
Save