Browse Source

Pull request #2115: 无JIRA任务 补充类型

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

* commit 'b0f2130a09dd58d38a0b84e5aa6e36f6dfb25118':
  无JIRA任务 chore: 补充类型
es6
Youki 3 years ago
parent
commit
82ffad2990
  1. 6
      typescript/index.ts
  2. 21
      typescript/widget/multilayerselecttree/multilayerselecttree.leveltree.ts
  3. 13
      typescript/widget/selecttree/selecttree.expander.ts

6
typescript/index.ts

@ -175,6 +175,8 @@ import { MultiSelectTree } from './widget/multiselecttree/multiselecttree';
import { HtmlLabel } from "./base/single/label/html.label"; import { HtmlLabel } from "./base/single/label/html.label";
import { TreeValueChooserPane } from './component/treevaluechooser/pane.treevaluechooser'; import { TreeValueChooserPane } from './component/treevaluechooser/pane.treevaluechooser';
import { TdLayout } from './core/wrapper/layout/layout.td'; import { TdLayout } from './core/wrapper/layout/layout.td';
import { MultiLayerSelectLevelTree } from './widget/multilayerselecttree/multilayerselecttree.leveltree';
import { SelectTreeExpander } from './widget/selecttree/selecttree.expander';
export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
@ -357,6 +359,8 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
HtmlLabel: typeof HtmlLabel; HtmlLabel: typeof HtmlLabel;
TreeValueChooserPane: typeof TreeValueChooserPane; TreeValueChooserPane: typeof TreeValueChooserPane;
TdLayout: typeof TdLayout; TdLayout: typeof TdLayout;
MultiLayerSelectLevelTree: typeof MultiLayerSelectLevelTree;
SelectTreeExpander: typeof SelectTreeExpander;
} }
export default { export default {
@ -539,4 +543,6 @@ export {
HtmlLabel, HtmlLabel,
TreeValueChooserPane, TreeValueChooserPane,
TdLayout, TdLayout,
MultiLayerSelectLevelTree,
SelectTreeExpander,
}; };

21
typescript/widget/multilayerselecttree/multilayerselecttree.leveltree.ts

@ -0,0 +1,21 @@
import { Pane } from '../../base/pane';
export declare class MultiLayerSelectLevelTree extends Pane {
static xtype: string;
static EVENT_CHANGE: string;
initTree<T>(nodes: T): void;
populate<T>(nodes?: T[]): void;
setValue(v: string[] | string): void;
getValue(): string[];
getAllLeaves<T>(): T[];
getNodeById<T>(id: string): T;
getNodeByValue<T>(id: string): T;
}

13
typescript/widget/selecttree/selecttree.expander.ts

@ -0,0 +1,13 @@
import { Widget } from '../../core/widget';
export declare class SelectTreeExpander extends Widget {
static xtype: string;
getAllLeaves<T>(): T[];
setValue(v: any): void;
getValue<T>(): T;
populate<T>(items: T[]): void;
}
Loading…
Cancel
Save