dm-vue3-ui
Version:
This Components Library will help get you started developing in Vue 3.
43 lines (42 loc) • 1.6 kB
TypeScript
export declare const CRON_TIMES_LIST: {
label: string;
value: string;
}[];
export declare const PICKER_TYPE_LIST: string[];
type ColumnsMap = {
[key: string]: string[];
};
export declare const COLUMNS_MAP: ColumnsMap;
type COLUMNS_HEADERMap = {
[key: string]: string;
};
export declare const COLUMNS_HEADER_MAP: COLUMNS_HEADERMap;
export declare const WEEK_NAMES: any;
export declare const MONTH_NAMES: any;
declare type Recordable<T = any> = Record<string, T>;
type COLUMNS_DATA_MAP = {
[key: string]: Recordable[];
};
export declare const COLUMNS_DATA_MAP: COLUMNS_DATA_MAP;
export declare function generatorColumnsHeader(type: any): string[];
export declare function generatorColumnsData(type: any): {
name: string;
data: Recordable<any>[];
}[];
declare global {
interface Window {
requestAnimationFrame: (callback: FrameRequestCallback) => number;
webkitRequestAnimationFrame: (callback: FrameRequestCallback) => number;
mozRequestAnimationFrame: (callback: FrameRequestCallback) => number;
msRequestAnimationFrame: (callback: FrameRequestCallback) => number;
}
}
export declare function scrollTop(el: any, from: number | undefined, to: any, duration?: number, endCallback?: any): void;
export declare const DEFAULT_PICKER_FORMAT: Record<string, string>;
export declare const TYPE_VALUE_RESOLVER_MAP: Record<string, Record<string, any>>;
export declare const genCronExprByType: (type: string, value: any) => string;
export declare const genRunStrByCron: (cronStr: string) => {
runType: string;
runTimes: any;
};
export {};