Browse Source

KERNEL-6431 补充类型描述

master
alan 4 years ago
parent
commit
e34e51b5a1
  1. 6
      typescript/index.ts
  2. 20
      typescript/widget/editor/editor.multifile.ts
  3. 5
      typescript/widget/editor/editor.text.small.ts

6
typescript/index.ts

@ -64,6 +64,8 @@ import { IconArrowNode } from "./case/button/node/node.icon.arrow";
import { MidTreeLeafItem } from "./case/button/treeitem/item.mid.treeleaf";
import { FirstTreeLeafItem } from "./case/button/treeitem/item.first.treeleaf";
import { LastTreeLeafItem } from "./case/button/treeitem/item.last.treeleaf";
import { SmallTextEditor } from "./widget/editor/editor.text.small";
import { MultifileEditor } from "./widget/editor/editor.multifile";
type ClassConstructor<T extends {}> = T & {
@ -141,6 +143,8 @@ export interface BI extends _func, _i18n, _base, _inject {
MidTreeLeafItem: typeof MidTreeLeafItem;
FirstTreeLeafItem: typeof FirstTreeLeafItem;
LastTreeLeafItem: typeof LastTreeLeafItem;
SmallTextEditor: typeof SmallTextEditor;
MultifileEditor: typeof MultifileEditor;
}
export default {
@ -182,4 +186,6 @@ export {
MidTreeLeafItem,
FirstTreeLeafItem,
LastTreeLeafItem,
SmallTextEditor,
MultifileEditor,
};

20
typescript/widget/editor/editor.multifile.ts

@ -0,0 +1,20 @@
import { Widget } from "../../core/widget";
export declare class MultifileEditor extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_UPLOADSTART: string;
static EVENT_ERROR: string;
static EVENT_PROGRESS: string;
static EVENT_UPLOADED: string;
_reset(): void;
select(): void;
getValue(): {
attach_id: string;
attach_type: string;
filename: string;
}[];
upload(): void;
reset(): void;
}

5
typescript/widget/editor/editor.text.small.ts

@ -0,0 +1,5 @@
import { TextEditor } from "./editor.text";
export declare class SmallTextEditor extends TextEditor {
static xtype: string;
}
Loading…
Cancel
Save