Browse Source

Pull request #1929: KERNEL-7826 refactor: 补充props声明

Merge in VISUAL/fineui from ~KIRA/fineui:master to master

* commit 'd4af3f47345472fb2f858df49b2712fbbc41c211':
  KERNEL-7826 refactor: 补充props声明
es6
Kira 4 years ago
parent
commit
cd7d422226
  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"; import { BasicButton } from "../button.basic";
export declare class TextButton extends BasicButton { export declare class TextButton extends BasicButton {
static xtype: string; static xtype: string;
static EVENT_CHANGE: string; static EVENT_CHANGE: string;
props: Label['props'] & BasicButton['props'];
setStyle(style: any): void; setStyle(style: any): void;
doRedMark(...args: 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 xtype: string;
static EVENT_CHANGE: 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; doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void; unRedMark(...args: any[]): void;

2
typescript/shims-tsx.ts

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

Loading…
Cancel
Save