From 30fdf00b06225c1893874d155e51390a14fdde51 Mon Sep 17 00:00:00 2001 From: youki Date: Fri, 11 Dec 2020 16:05:33 +0800 Subject: [PATCH 1/2] =?UTF-8?q?KERNEL-6465=20=E8=A1=A5=E5=85=85=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/single/label/abstract.label.ts | 18 +++++++++++++++++- typescript/base/single/label/label.ts | 8 +++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/typescript/base/single/label/abstract.label.ts b/typescript/base/single/label/abstract.label.ts index d0a39476c9..5f1972b911 100644 --- a/typescript/base/single/label/abstract.label.ts +++ b/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 { doRedMark(...args: any[]): void; @@ -15,3 +15,19 @@ export interface _AbstractLabel extends _Single { 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; +} diff --git a/typescript/base/single/label/label.ts b/typescript/base/single/label/label.ts index 03f5f2e38d..a6fc4decfe 100644 --- a/typescript/base/single/label/label.ts +++ b/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 { doRedMark(...args: any[]): void; unRedMark(...args: any[]): void } + +export declare class Label extends AbstractLabel { + doRedMark(...args: any[]): void; + + unRedMark(...args: any[]): void +} From 63c487eeb1ca20f415dbac17dbfbd639e0460299 Mon Sep 17 00:00:00 2001 From: youki Date: Fri, 11 Dec 2020 16:14:48 +0800 Subject: [PATCH 2/2] =?UTF-8?q?KERNEL-6465=20=E8=A1=A5=E5=85=85=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/single/label/label.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/typescript/base/single/label/label.ts b/typescript/base/single/label/label.ts index a6fc4decfe..17212a5c63 100644 --- a/typescript/base/single/label/label.ts +++ b/typescript/base/single/label/label.ts @@ -6,8 +6,4 @@ export interface _Label extends _AbstractLabel { unRedMark(...args: any[]): void } -export declare class Label extends AbstractLabel { - doRedMark(...args: any[]): void; - - unRedMark(...args: any[]): void -} +export declare class Label extends AbstractLabel {}