Browse Source

KERNEL-7826 refactor: 补充props声明

es6
Kira 4 years ago
parent
commit
5aa7676231
  1. 3
      typescript/base/single/button/buttons/button.text.ts
  2. 14
      typescript/case/button/item.singleselect.radio.ts
  3. 2
      typescript/shims-tsx.ts

3
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;

14
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;

2
typescript/shims-tsx.ts

@ -11,6 +11,8 @@ interface UIProps {
lgap: number;
tgap: number;
bgap: number;
vgap: number;
hgap: number;
}
interface ElementClassProps<T> extends UIProps {

Loading…
Cancel
Save