Browse Source

Pull request #1918: KERNEL-7826 refactor: props声明

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

* commit '2b38b3cc7c592c08dec56a1b3eb46973c3e65bb4':
  KERNEL-7826 refactor: props声明
  KERNEL-7826 refactor: props声明
  KERNEL-7826 refactor: props声明
  KERNEL-7826 refactor: props声明
es6
Kira 4 years ago
parent
commit
779b1775bf
  1. 35
      typescript/base/single/button/button.basic.ts
  2. 4
      typescript/base/single/button/button.node.ts
  3. 12
      typescript/base/single/single.ts

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

@ -5,6 +5,41 @@ export declare class BasicButton extends Single {
static xtype: string;
props: {
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;

4
typescript/base/single/button/button.node.ts

@ -1,6 +1,10 @@
import { BasicButton } from "./button.basic";
export declare class NodeButton extends BasicButton {
props: {
open?: boolean;
} & BasicButton['props'];
isOpened(): boolean;
setOpened(b: boolean): 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?: any,
/**
* title是否跟随鼠标
* @default false
*/
belowMouse: boolean,
belowMouse?: boolean,
}
_showToolTip(e: Event, opt?: SingleOpt): void;

Loading…
Cancel
Save