Browse Source

KERNEL-6465 补充类型

es6
youki 4 years ago
parent
commit
30fdf00b06
  1. 18
      typescript/base/single/label/abstract.label.ts
  2. 8
      typescript/base/single/label/label.ts

18
typescript/base/single/label/abstract.label.ts

@ -1,4 +1,4 @@
import { _Single } from "../single"; import { _Single, Single } from "../single";
export interface _AbstractLabel extends _Single { export interface _AbstractLabel extends _Single {
doRedMark(...args: any[]): void; doRedMark(...args: any[]): void;
@ -15,3 +15,19 @@ export interface _AbstractLabel extends _Single {
setStyle(css: any): void; setStyle(css: any): void;
} }
export declare class AbstractLabel extends Single {
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
setText(v: string): void;
getText(): string;
setStyle(css: any): void;
}

8
typescript/base/single/label/label.ts

@ -1,7 +1,13 @@
import { _AbstractLabel } from "./abstract.label"; import { _AbstractLabel, AbstractLabel } from "./abstract.label";
export interface _Label extends _AbstractLabel { export interface _Label extends _AbstractLabel {
doRedMark(...args: any[]): void; doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void unRedMark(...args: any[]): void
} }
export declare class Label extends AbstractLabel {
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void
}

Loading…
Cancel
Save