Browse Source

Pull request #1946: KERNEL-7828 补充一下类型定义

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

* commit 'ab689b393b6d00c8fa5feafe008903a1229404c6':
  KERNEL-7828 根据comment优化
  KERNEL-7828 根据comment优化
  KERNEL-7828 补充一下类型定义
  KERNEL-7828 补充一下类型定义
es6
Kobi 4 years ago
parent
commit
277a3c8349
  1. 8
      typescript/base/single/button/buttons/button.ts
  2. 9
      typescript/base/single/text.ts

8
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 {
@ -14,11 +14,7 @@ export declare class Button extends BasicButton {
block?: boolean; // 是否块状显示,即不显示边框,没有最小宽度的限制 block?: boolean; // 是否块状显示,即不显示边框,没有最小宽度的限制
clear?: boolean; // 是否去掉边框和背景 clear?: boolean; // 是否去掉边框和背景
ghost?: boolean; // 是否幽灵显示, 即正常状态无背景 ghost?: boolean; // 是否幽灵显示, 即正常状态无背景
textAlign?: 'center' | 'left' | 'right'; } & AbstractLabel['props'] & IconLabel['props'] & BasicButton['props'];
whiteSpace?: 'nowrap' | 'normal',
textWidth?: number | null,
textHeight?: number | null,
} & BasicButton['props'];
text: Label; text: Label;
icon?: IconLabel; icon?: IconLabel;

9
typescript/base/single/text.ts

@ -3,6 +3,15 @@ import { Single } from "./single";
export declare class Text extends Single { export declare class Text extends Single {
static xtype: string; static xtype: string;
props: {
text?: string;
textAlign?: "left" | "center" | "right",
whiteSpace?: "nowrap" | "normal",
lineHeight?: null | number;
py?: string;
highLight?: boolean;
} & Single['props'];
doRedMark(keyword: string): void; doRedMark(keyword: string): void;
unRedMark(): void; unRedMark(): void;

Loading…
Cancel
Save