1 Star 0 Fork 43

weli/wuss-weapp

forked from phonycode/wuss-weapp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.d.ts 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
export interface IAlertOptions {
title?: string;
content?: string;
maskClose?: boolean;
buttonColor?: string;
confirm?: Function;
}
export interface IConfirmOptions {
title?: string;
content?: string;
cancelText?: string;
confirmText?: string;
cancelTextColor?: string;
confirmTextColor?: string;
showCancel?: boolean;
confirm?: Function;
cancel?: Function;
}
export interface IToastShowOptions {
type?: string;
duration?: number;
mask?: boolean;
message?: string;
size?: number;
color?: string;
position?: string;
}
export interface IToast {
show: (
options: IToastShowOptions
) => {
hide: (isHide: boolean) => void;
then: (fn: () => void) => Promise<any>;
};
}
export interface ILoadingShowOptions {
content?: string;
showText?: boolean;
timeout?: number | null;
hide?: <T>() => T;
}
export interface ILoading {
show: (options?: ILoadingShowOptions) => Promise<any>;
hide: <R>() => boolean | R;
}
export interface IActionSheetOptions {
visible?: boolean;
options?: Array<{
text: string;
type: string;
openType: string;
}>;
maskCancel?: boolean;
showCancel?: boolean;
cancelText?: string;
}
export interface IActionSheet<T> {
show: (options?: T) => void;
hide: (options?: T) => void;
}
export interface ICountUpOptions {
useEasing: boolean;
useGrouping: boolean;
separator: string;
decimal: string;
easingFn: (t: number, b: number, c: number, d: number) => number;
formattingFn: (num: number) => string;
prefix: string;
suffix: string;
numerals: Array<number>;
}
export function Alert(options: IAlertOptions): boolean | void;
export function Confirm(options: IConfirmOptions): boolean | void;
export function CountUp(
startVal: number,
endVal: number,
decimals: number,
duration: number,
callback?: number,
options?: ICountUpOptions
): boolean | void;
export const Toast: IToast;
export const Loading: ILoading;
export const ActionSheet: IActionSheet<IActionSheetOptions>;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
微信
1
https://gitee.com/abduweli205/wuss-weapp.git
git@gitee.com:abduweli205/wuss-weapp.git
abduweli205
wuss-weapp
wuss-weapp
master

搜索帮助