Browse Source

KERNEL-7828 根据comment优化

es6
Kobi 4 years ago
parent
commit
8144788be4
  1. 11
      typescript/base/single/button/buttons/button.ts

11
typescript/base/single/button/buttons/button.ts

@ -1,4 +1,4 @@
import { IconLabel, Label } from "../../../.."; import { AbstractLabel, IconLabel, Label } from "../../../..";
import { BasicButton } from "../button.basic"; import { BasicButton } from "../button.basic";
export declare class Button extends BasicButton { export declare class Button extends BasicButton {
@ -7,7 +7,6 @@ export declare class Button extends BasicButton {
static EVENT_CHANGE: string; static EVENT_CHANGE: string;
props: { props: {
text?: string;
minWidth?: number; minWidth?: number;
readonly?: boolean; readonly?: boolean;
iconCls?: string; iconCls?: string;
@ -15,11 +14,9 @@ export declare class Button extends BasicButton {
block?: boolean; // 是否块状显示,即不显示边框,没有最小宽度的限制 block?: boolean; // 是否块状显示,即不显示边框,没有最小宽度的限制
clear?: boolean; // 是否去掉边框和背景 clear?: boolean; // 是否去掉边框和背景
ghost?: boolean; // 是否幽灵显示, 即正常状态无背景 ghost?: boolean; // 是否幽灵显示, 即正常状态无背景
textAlign?: 'center' | 'left' | 'right'; highLight: boolean,
whiteSpace?: 'nowrap' | 'normal', handler: Function | null,
textWidth?: number | null, } & AbstractLabel['props'] & IconLabel['props'] & BasicButton['props'];
textHeight?: number | null,
} & BasicButton['props'];
text: Label; text: Label;
icon?: IconLabel; icon?: IconLabel;

Loading…
Cancel
Save