diff --git a/typescript/base/single/label/abstract.label.ts b/typescript/base/single/label/abstract.label.ts index 5f1972b911..86ae315814 100644 --- a/typescript/base/single/label/abstract.label.ts +++ b/typescript/base/single/label/abstract.label.ts @@ -17,6 +17,8 @@ export interface _AbstractLabel extends _Single { } export declare class AbstractLabel extends Single { + static xtype: string; + doRedMark(...args: any[]): void; unRedMark(...args: any[]): void; @@ -25,9 +27,5 @@ export declare class AbstractLabel extends Single { unHighLight(...args: any[]): void; - setText(v: string): void; - - getText(): string; - setStyle(css: any): void; } diff --git a/typescript/base/single/label/label.ts b/typescript/base/single/label/label.ts index 17212a5c63..89b6f588e8 100644 --- a/typescript/base/single/label/label.ts +++ b/typescript/base/single/label/label.ts @@ -6,4 +6,6 @@ export interface _Label extends _AbstractLabel { unRedMark(...args: any[]): void } -export declare class Label extends AbstractLabel {} +export declare class Label extends AbstractLabel { + static xtype: string; +} diff --git a/typescript/index.ts b/typescript/index.ts index 7a89678b3b..182e256c84 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -11,8 +11,8 @@ import { _Editor, _EditorStatic } from "./base/single/editor/editor"; import { _Iframe } from "./base/single/iframe/iframe"; import { _Checkbox, _CheckboxStatic } from "./base/single/input/checkbox"; import { _Input, _InputStatic } from "./base/single/input/input"; -import { _AbstractLabel } from "./base/single/label/abstract.label"; -import { _Label } from "./base/single/label/label"; +import { _AbstractLabel, AbstractLabel } from "./base/single/label/abstract.label"; +import { _Label, Label } from "./base/single/label/label"; import { _Single, Single } from "./base/single/single"; import { _Text } from "./base/single/text"; import { _Trigger } from "./base/single/trigger/trigger"; @@ -124,4 +124,6 @@ export { LeftRightVerticalAdaptLayout, IconTextIconItem, IconButton, + AbstractLabel, + Label, };