forked from fanruan/fineui
iapyang
5 years ago
5 changed files with 79 additions and 14 deletions
@ -0,0 +1,33 @@
|
||||
import { _Single } from "../single"; |
||||
|
||||
export interface _BasicButton extends _Single { |
||||
_createShadow(): void; |
||||
|
||||
bindEvent(): void; |
||||
|
||||
_trigger(e: Event): void; |
||||
|
||||
_doClick(e: Event): void; |
||||
|
||||
beforeClick(): void; |
||||
|
||||
doClick(): void; |
||||
|
||||
handle(): _BasicButton; |
||||
|
||||
hover(): void; |
||||
|
||||
dishover(): void; |
||||
|
||||
setSelected(b: any): void; |
||||
|
||||
isSelected(): boolean; |
||||
|
||||
isOnce(): boolean; |
||||
|
||||
isForceSelected(): boolean; |
||||
|
||||
isForceNotSelected(): boolean; |
||||
|
||||
isDisableSelected(): boolean; |
||||
} |
@ -0,0 +1,31 @@
|
||||
import { _Widget } from "../../core/widget"; |
||||
|
||||
export interface _Single extends _Widget { |
||||
_showToolTip(e: Event, opt?: SingleOpt): void; |
||||
|
||||
_hideTooltip(): void; |
||||
|
||||
_clearTimeOut(): void; |
||||
|
||||
enableHover(opt?: SingleOpt): void; |
||||
|
||||
disabledHover(): void; |
||||
|
||||
setTitle(title: string, opt?: SingleOpt): void; |
||||
|
||||
setWarningTitle(title: string, opt?: SingleOpt): void; |
||||
|
||||
getTipType(): string; |
||||
|
||||
isReadOnly(): boolean; |
||||
|
||||
getTitle(): string; |
||||
|
||||
getWarningTitle(): string; |
||||
|
||||
popluate(..._args: any[]): void; |
||||
} |
||||
|
||||
interface SingleOpt { |
||||
container?: any, belowMouse?: boolean |
||||
} |
@ -1,9 +1,19 @@
|
||||
import { _i18n } from "./core/i18n"; |
||||
import { OBConstructor } from "./core/ob"; |
||||
import { _OB } from "./core/ob"; |
||||
import { _func } from "./core/func"; |
||||
import { WidgetConstructor } from "./core/widget"; |
||||
import { _Widget, _WidgetStatic } from "./core/widget"; |
||||
import { _Single } from "./base/single/single"; |
||||
import { _BasicButton } from "./base/single/button/button.basic"; |
||||
|
||||
type Constructor<T extends {}> = T & { |
||||
new(config: any): T; |
||||
(config: any): T; |
||||
readonly prototype: T; |
||||
} |
||||
|
||||
export interface _BI extends _func, _i18n { |
||||
OB: OBConstructor; |
||||
Widget: WidgetConstructor; |
||||
OB: Constructor<_OB>; |
||||
Widget: Constructor<_Widget> & _WidgetStatic; |
||||
Single: Constructor<_Single>; |
||||
BasicButton: Constructor<_BasicButton>; |
||||
} |
||||
|
Loading…
Reference in new issue