From e482cfbae67227d30f11ff691a7382f31c539830 Mon Sep 17 00:00:00 2001 From: iapyang Date: Tue, 7 Dec 2021 11:13:32 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/single/text.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/typescript/base/single/text.ts b/typescript/base/single/text.ts index 518eb13f7..0597021ee 100644 --- a/typescript/base/single/text.ts +++ b/typescript/base/single/text.ts @@ -3,6 +3,10 @@ import { Single } from "./single"; export declare class Text extends Single { static xtype: string; + static addTextFormatter: (fn: (str: string) => string) => void; + + static formatText: (str: string) => string; + props: { text?: string; textAlign?: "left" | "center" | "right",