From 3df025f57121d5a53056b55937b47179698b3d1c Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 21 Jan 2021 18:43:58 +0800 Subject: [PATCH] =?UTF-8?q?BI-72363=20=E8=A1=A5=E5=85=85=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/single/button/node/textnode.ts | 15 +++++++++++++++ typescript/index.ts | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 typescript/base/single/button/node/textnode.ts diff --git a/typescript/base/single/button/node/textnode.ts b/typescript/base/single/button/node/textnode.ts new file mode 100644 index 000000000..fcf65378d --- /dev/null +++ b/typescript/base/single/button/node/textnode.ts @@ -0,0 +1,15 @@ +import { NodeButton } from "../button.node"; + +export declare class TextNode extends NodeButton { + setText(b: string): void; + + getText(): string; + + setValue(): void; + + getValue(): string; + + doRedMark(...args: any[]): void; + + unRedMark(...args: any[]): void; +} diff --git a/typescript/index.ts b/typescript/index.ts index 6d968018e..aaf71bff0 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -149,6 +149,7 @@ import { Controller } from "./core/controller/controller"; import { LayerController } from "./core/controller/controller.layer"; import { DateCalendarPopup } from "./widget/date/calendar/popup.calendar.date"; import { Tree, Node } from "./core/utils/tree"; +import { TextNode } from "./base/single/button/node/textnode"; export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { @@ -303,6 +304,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { Msg: _msg; DynamicYearMonthPopup: typeof DynamicYearMonthPopup; DateCalendarPopup: typeof DateCalendarPopup; + TextNode: typeof TextNode; } export default { @@ -459,4 +461,5 @@ export { DateCalendarPopup, Tree, Node, + TextNode, };