From 5aa76762310f3178c17e8b23511c00629210d4b3 Mon Sep 17 00:00:00 2001 From: Kira Date: Wed, 26 May 2021 11:11:17 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-7826=20refactor:=20=E8=A1=A5=E5=85=85pro?= =?UTF-8?q?ps=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/single/button/buttons/button.text.ts | 3 +++ typescript/case/button/item.singleselect.radio.ts | 14 ++++++++++++++ typescript/shims-tsx.ts | 2 ++ 3 files changed, 19 insertions(+) diff --git a/typescript/base/single/button/buttons/button.text.ts b/typescript/base/single/button/buttons/button.text.ts index f85def105..9cc434902 100644 --- a/typescript/base/single/button/buttons/button.text.ts +++ b/typescript/base/single/button/buttons/button.text.ts @@ -1,9 +1,12 @@ +import { Label } from "typescript"; import { BasicButton } from "../button.basic"; export declare class TextButton extends BasicButton { static xtype: string; static EVENT_CHANGE: string; + props: Label['props'] & BasicButton['props']; + setStyle(style: any): void; doRedMark(...args: any[]): void; diff --git a/typescript/case/button/item.singleselect.radio.ts b/typescript/case/button/item.singleselect.radio.ts index de0ae3f85..725d2339d 100644 --- a/typescript/case/button/item.singleselect.radio.ts +++ b/typescript/case/button/item.singleselect.radio.ts @@ -4,6 +4,20 @@ export declare class SingleSelectRadioItem extends BasicButton { static xtype: string; static EVENT_CHANGE: string; + props: { + iconWrapperWidth: number; + logic: { + dynamic: boolean; + }; + textHgap: number; + textLgap: number; + textRgap: number; + text: string; + keyword: string; + py: string; + value: any; + } & BasicButton['props'] + doRedMark(...args: any[]): void; unRedMark(...args: any[]): void; diff --git a/typescript/shims-tsx.ts b/typescript/shims-tsx.ts index 57f43e870..1d55fd430 100644 --- a/typescript/shims-tsx.ts +++ b/typescript/shims-tsx.ts @@ -11,6 +11,8 @@ interface UIProps { lgap: number; tgap: number; bgap: number; + vgap: number; + hgap: number; } interface ElementClassProps extends UIProps {