Browse Source

KERNEL-7826 refactor: props声明

master
Kira 4 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; 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; _createShadow(): void;
bindEvent(): void; bindEvent(): void;

12
typescript/base/single/single.ts

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

Loading…
Cancel
Save