Browse Source

Pull request #1945: KERNEL-6917 refactor:类型补充

Merge in VISUAL/fineui from ~CLAIRE.TANG/fineui:master to master

* commit '4c22784e020e3f1e8aef5ed6f5f1c1af12ddc140':
  KERNEL-6917 refactor:类型补充
es6
Claire.Tang 4 years ago
parent
commit
8f748b267e
  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";
@ -211,6 +212,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;
@ -449,6 +451,7 @@ export {
SmallTextEditor,
MultifileEditor,
SignEditor,
StateEditor,
MultiSelectInsertCombo,
MultiSelectCombo,
SearchEditor,

Loading…
Cancel
Save