Browse Source

KERNEL-6917 refactor:类型补充

es6
Tangjinxia 3 years ago
parent
commit
3c825b7eb5
  1. 48
      typescript/case/editor/editor.state.ts
  2. 3
      typescript/index.ts

48
typescript/case/editor/editor.state.ts

@ -0,0 +1,48 @@
import { Widget } from "../../core/widget";
export declare class StateEditor extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_FOCUS: string;
static EVENT_BLUR: string;
static EVENT_CLICK: string;
static EVENT_KEY_DOWN: string;
static EVENT_CLICK_LABEL: string;
static EVENT_START: string;
static EVENT_PAUSE: string;
static EVENT_STOP: string;
static EVENT_CONFIRM: string;
static EVENT_CHANGE_CONFIRM: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_ENTER: string;
static EVENT_RESTRICT: string;
static EVENT_SPACE: string;
static EVENT_EMPTY: string;
setWaterMark(v: string): void;
focus(): void;
blur(): void;
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
setErrorText(v: string): void;
getErrorText(): string;
isEditing(): boolean;
getLastChangedValue(): string;
getState(): any;
setState(...args: any[]): void;
}

3
typescript/index.ts

@ -23,6 +23,7 @@ import { TextValueCombo } from "./case/combo/combo.textvalue";
import { SmallTextValueCombo } from './case/combo/combo.textvaluesmall';
import { SearchTextValueCombo } from "./case/combo/searchtextvaluecombo/combo.searchtextvalue";
import { SignEditor } from "./case/editor/editor.sign";
import { StateEditor } from './case/editor/editor.state';
import { LoadingPane } from "./case/loading/loading_pane";
import { AllValueMultiTextValueCombo } from "./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo";
import { AbstractTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser";
@ -210,6 +211,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils {
Text: typeof Text;
Editor: typeof Editor;
SignEditor: typeof SignEditor;
StateEditor: typeof StateEditor;
Layout: typeof Layout;
HTapeLayout: typeof HTapeLayout;
VTapeLayout: typeof VTapeLayout;
@ -447,6 +449,7 @@ export {
SmallTextEditor,
MultifileEditor,
SignEditor,
StateEditor,
MultiSelectInsertCombo,
MultiSelectCombo,
SearchEditor,

Loading…
Cancel
Save