Browse Source

refactor: 补充说明

es6
iapyang 4 years ago
parent
commit
97a3f25c38
  1. 11
      typescript/base/tree/ztree/asynctree.ts
  2. 5
      typescript/base/tree/ztree/list/listasynctree.ts
  3. 5
      typescript/base/tree/ztree/list/listtreeview.ts
  4. 2
      typescript/base/tree/ztree/treeview.ts
  5. 9
      typescript/index.ts

11
typescript/base/tree/ztree/asynctree.ts

@ -0,0 +1,11 @@
import { TreeView, TreeValue } from "./treeview";
export declare class AsyncTree extends TreeView {
static xtype: string;
_beforeExpandNode<T>(treeId: string, treeNode: T): void;
_join(valueA: TreeValue, valueB: TreeValue): TreeValue;
_getJoinValue(): TreeValue;
}

5
typescript/base/tree/ztree/list/listasynctree.ts

@ -0,0 +1,5 @@
import { ListTreeView } from "./listtreeview";
export declare class ListAsyncTree extends ListTreeView {
static xtype: string;
}

5
typescript/base/tree/ztree/list/listtreeview.ts

@ -0,0 +1,5 @@
import { TreeView } from "../treeview";
export declare class ListTreeView extends TreeView {
static xtype: string;
}

2
typescript/base/tree/ztree/treeview.ts

@ -65,6 +65,6 @@ export declare class TreeView extends Pane {
populate(config: {[key: string]: any}): void; populate(config: {[key: string]: any}): void;
} }
interface TreeValue { export interface TreeValue {
[key: string]: TreeValue; [key: string]: TreeValue;
} }

9
typescript/index.ts

@ -105,6 +105,9 @@ import { MultiTreePopup } from "./widget/multitree/multi.tree.popup";
import { SingleSelectRadioItem } from "./case/button/item.singleselect.radio"; import { SingleSelectRadioItem } from "./case/button/item.singleselect.radio";
import { SingleSelectInsertCombo } from "./widget/singleselect/singleselect.insert.combo"; import { SingleSelectInsertCombo } from "./widget/singleselect/singleselect.insert.combo";
import { SingleSelectCombo } from "./widget/singleselect/singleselect.combo"; import { SingleSelectCombo } from "./widget/singleselect/singleselect.combo";
import { ListTreeView } from "./base/tree/ztree/list/listtreeview";
import { ListAsyncTree } from "./base/tree/ztree/list/listasynctree";
import { AsyncTree } from "./base/tree/ztree/asynctree";
type ClassConstructor<T extends {}> = T & { type ClassConstructor<T extends {}> = T & {
@ -159,6 +162,9 @@ export interface BI extends _func, _i18n, _base, _inject {
MultiLayerSelectTreePopup: typeof MultiLayerSelectTreePopup; MultiLayerSelectTreePopup: typeof MultiLayerSelectTreePopup;
MultiLayerSingleTreePopup: typeof MultiLayerSingleTreePopup; MultiLayerSingleTreePopup: typeof MultiLayerSingleTreePopup;
TreeView: typeof TreeView; TreeView: typeof TreeView;
ListTreeView: typeof ListTreeView;
ListAsyncTree: typeof ListAsyncTree;
AsyncTree: typeof AsyncTree;
Decorators: typeof decorator; Decorators: typeof decorator;
DownListCombo: ClassConstructor<_DownListCombo> & _DownListComboStatic; DownListCombo: ClassConstructor<_DownListCombo> & _DownListComboStatic;
Iframe: ClassConstructor<_Iframe>; Iframe: ClassConstructor<_Iframe>;
@ -282,6 +288,9 @@ export {
MultiLayerSelectTreePopup, MultiLayerSelectTreePopup,
MultiLayerSingleTreePopup, MultiLayerSingleTreePopup,
TreeView, TreeView,
ListTreeView,
ListAsyncTree,
AsyncTree,
Combo, Combo,
IconCombo, IconCombo,
DynamicDateCombo, DynamicDateCombo,

Loading…
Cancel
Save