mine-h5-ui
Version:
一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍
67 lines (66 loc) • 1.16 kB
TypeScript
/**
* 防抖节流回调函数
*/
export type DTCallback = (e?: Event) => void;
/**
* 加锁回调函数
*/
export type LockedCallback = (e?: Event, fn?: (value: boolean) => void) => void;
/**
* 节流返回值
*/
export type ThrottleBack = (e?: Event) => void;
/**
* 防抖返回值
*/
export type DebounceBack = (e?: Event) => void;
/**
* 加锁返回值
*/
export type LockedBack = (e?: Event) => void;
/**
* 日期格式化
*/
export interface FormatData {
DD: string;
hh: string;
mm: string;
ss: string;
ms: number;
}
/**
* 加锁
*/
export interface IsLocked extends Record<string, boolean | undefined> {
value?: boolean;
}
/**
* FormatTime return
*/
export interface FormatTimeBack {
Y: string;
M: string;
D: string;
w: string;
h: string;
m: string;
s: string;
date: string;
time: string;
datetime: string;
}
/**
* Calculation return
*/
export interface CalculationBack {
add: () => number;
subtract: () => number;
multiply: () => number;
divide: () => number;
}
/**
* 添加 install 属性
*/
export type AddInstall<T> = T & {
install: undefined;
};