Browse Source

Pull request #1665: KERNEL-6431 补充类型描述

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

* commit 'bbb785ed0470cef590daf9361eaaf2f40f3d7316':
  KERNEL-6431 补充类型描述
es6
alan 4 years ago
parent
commit
882530bc7b
  1. 18
      typescript/base/single/editor/editor.textarea.ts
  2. 10
      typescript/case/button/item.singleselect.ts
  3. 17
      typescript/component/allvaluechooser/abstract.allvaluechooser.ts
  4. 9
      typescript/component/allvaluechooser/combo.allvaluechooser.ts
  5. 18
      typescript/index.ts
  6. 24
      typescript/widget/dynamicdatetime/dynamicdatetime.combo.ts
  7. 15
      typescript/widget/multitree/multi.tree.combo.ts

18
typescript/base/single/editor/editor.textarea.ts

@ -0,0 +1,18 @@
import { Single } from "../single";
export declare class TextAreaEditor extends Single {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_FOCUS: string;
static EVENT_BLUR: string;
focus(): void;
blur(): void;
setStyle(style: any): void;
getStyle(): any;
setWatermark(v: string): void;
}

10
typescript/case/button/item.singleselect.ts

@ -0,0 +1,10 @@
import { BasicButton } from "../../base/single/button/button.basic";
export declare class SingleSelectItem extends BasicButton {
static xtype: string;
static EVENT_CHANGE: string;
doRedMark(): void;
unRedMark(): void;
}

17
typescript/component/allvaluechooser/abstract.allvaluechooser.ts

@ -0,0 +1,17 @@
import { Widget } from "../../core/widget";
export declare class AbstractAllValueChooser extends Widget {
static xtype: string;
_valueFormatter(v: string | number): string;
_itemsCreator(options: any, callback: Function): void;
_assertValue(v: {
type: string;
value: any[];
}): {
type: string;
value: any[];
}
}

9
typescript/component/allvaluechooser/combo.allvaluechooser.ts

@ -0,0 +1,9 @@
import { AbstractAllValueChooser } from "./abstract.allvaluechooser";
export declare class AllValueChooserCombo extends AbstractAllValueChooser {
static xtype: string;
getAllValue(): any;
populate(...args: any[]): void;
}

18
typescript/index.ts

@ -76,6 +76,12 @@ import { MultiSelectCombo } from "./widget/multiselect/multiselect.combo";
import { SearchEditor } from "./widget/editor/editor.search"; import { SearchEditor } from "./widget/editor/editor.search";
import { MultiLayerSingleLevelTree } from "./widget/multilayersingletree/multilayersingletree.leveltree"; import { MultiLayerSingleLevelTree } from "./widget/multilayersingletree/multilayersingletree.leveltree";
import { SimpleColorChooser } from "./case/colorchooser/colorchooser.simple"; import { SimpleColorChooser } from "./case/colorchooser/colorchooser.simple";
import { AbstractAllValueChooser } from "./component/allvaluechooser/abstract.allvaluechooser";
import { AllValueChooserCombo } from "./component/allvaluechooser/combo.allvaluechooser";
import { TextAreaEditor } from "./base/single/editor/editor.textarea";
import { SingleSelectItem } from "./case/button/item.singleselect";
import { DynamicDateTimeCombo } from "./widget/dynamicdatetime/dynamicdatetime.combo";
import { MultiTreeCombo } from "./widget/multitree/multi.tree.combo";
type ClassConstructor<T extends {}> = T & { type ClassConstructor<T extends {}> = T & {
@ -165,6 +171,12 @@ export interface BI extends _func, _i18n, _base, _inject {
SearchEditor: typeof SearchEditor; SearchEditor: typeof SearchEditor;
MultiLayerSingleLevelTree: typeof MultiLayerSingleLevelTree; MultiLayerSingleLevelTree: typeof MultiLayerSingleLevelTree;
SimpleColorChooser: typeof SimpleColorChooser; SimpleColorChooser: typeof SimpleColorChooser;
AbstractAllValueChooser: typeof AbstractAllValueChooser;
AllValueChooserCombo: typeof AllValueChooserCombo;
TextAreaEditor: typeof TextAreaEditor;
SingleSelectItem: typeof SingleSelectItem;
DynamicDateTimeCombo: typeof DynamicDateTimeCombo;
MultiTreeCombo: typeof MultiTreeCombo;
} }
export default { export default {
@ -227,4 +239,10 @@ export {
Pane, Pane,
MultiLayerSingleLevelTree, MultiLayerSingleLevelTree,
SimpleColorChooser, SimpleColorChooser,
AbstractAllValueChooser,
AllValueChooserCombo,
TextAreaEditor,
SingleSelectItem,
DynamicDateTimeCombo,
MultiTreeCombo,
}; };

24
typescript/widget/dynamicdatetime/dynamicdatetime.combo.ts

@ -0,0 +1,24 @@
import { Single } from "../../base/single/single";
export declare class DynamicDateTimeCombo extends Single {
static xtype: string;
static EVENT_KEY_DOWN: string;
static EVENT_CONFIRM: string;
static EVENT_FOCUS: string;
static EVENT_BLUR: string;
static EVENT_CHANGE: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_BEFORE_POPUPVIEW: string;
static Static: 1;
static Dynamic: 2;
setMinDate(minDate: string): void;
setMaxDate(minDate: string): void;
getKey(): string;
hidePopupView(): void;
}

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

@ -0,0 +1,15 @@
import { Single } from "../../base/single/single";
export declare class MultiTreeCombo extends Single {
static xytpe: string;
static EVENT_FOCUS: string;
static EVENT_BLUR: string;
static EVENT_STOP: string;
static EVENT_SEARCHING: string;
static EVENT_CLICK_ITEM: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
showView(): void;
hideView(): void;
}
Loading…
Cancel
Save