diff --git a/typescript/base/single/button/button.basic.ts b/typescript/base/single/button/button.basic.ts index 00f0e70cf..9e43dbe53 100644 --- a/typescript/base/single/button/button.basic.ts +++ b/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; diff --git a/typescript/base/single/button/button.node.ts b/typescript/base/single/button/button.node.ts index 7414ddf4e..6dfe7929c 100644 --- a/typescript/base/single/button/button.node.ts +++ b/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; diff --git a/typescript/base/single/single.ts b/typescript/base/single/single.ts index 4d7ced56e..bdcdcf5ae 100644 --- a/typescript/base/single/single.ts +++ b/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;