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, };