Browse Source

KERNEL-7826 refactor: props声明

es6
Kira 3 years ago
parent
commit
a8d8d6c666
  1. 36
      typescript/base/single/button/button.basic.ts
  2. 12
      typescript/base/single/single.ts

36
typescript/base/single/button/button.basic.ts

@ -5,6 +5,42 @@ export declare class BasicButton extends Single {
static xtype: string;
props: {
value?: string;
stopEvent?: boolean;
stopPropagation?: boolean;
selected?: boolean;
/**
* ,
*/
once?: boolean;
/**
* , ,once的区别是forceSelected不影响事件的触发
*/
forceSelected?: boolean;
/**
*
*/
forceNotSelected?: boolean;
/**
* 使
*/
disableSelected?: boolean;
shadow?: boolean;
/**
*
*/
isShadowShowingOnSelected?: boolean;
trigger?: string | null;
handler?: Function;
bubble?: Function | null;
} & Single['props'];
_createShadow(): void;
bindEvent(): void;

12
typescript/base/single/single.ts

@ -6,17 +6,17 @@ interface SingleOpt {
export declare class Single extends Widget {
props: {
readonly: boolean,
title: string | (() => string) | null,
warningTitle: string | (() => string) | null,
tipType: "success" | "warning",
value: string | null,
readonly?: boolean,
title?: string | (() => string) | null,
warningTitle?: string | (() => string) | null,
tipType?: "success" | "warning",
value?: string | null,
/**
* title是否跟随鼠标
* @default false
*/
belowMouse: boolean,
belowMouse?: boolean,
}
_showToolTip(e: Event, opt?: SingleOpt): void;

Loading…
Cancel
Save