advint-user-admin
Version:
开箱即用的后台管理基础用户系统组件
34 lines (33 loc) • 1.4 kB
TypeScript
export declare function parseTime(time: any, pattern?: string): string | null;
/**
* 添加日期范围
* @param params
* @param dateRange
* @param propName
*/
export declare const addDateRange: (params: any, dateRange: any[], propName?: string) => any;
export declare const selectDictLabel: (datas: any, value: number | string) => string;
export declare const selectDictLabels: (datas: any, value: any, separator: any) => string;
export declare function sprintf(str: string): string | undefined;
export declare const parseStrEmpty: (str: any) => any;
export declare const mergeRecursive: (source: any, target: any) => any;
/**
* 构造树型结构数据
* @param {*} data 数据源
* @param {*} id id字段 默认 'id'
* @param {*} parentId 父节点字段 默认 'parentId'
* @param {*} children 孩子节点字段 默认 'children'
*/
export declare const handleTree: <T>(data: any[], id?: string, parentId?: string, children?: string) => T[];
/**
* 参数处理
* @param {*} params 参数
*/
export declare const tansParams: (params: any) => string;
export declare const getNormalPath: (p: string) => string;
export declare function convertToUpperCamelCase(str: string): string;
export declare const blobValidate: (data: any) => boolean;
declare const _default: {
handleTree: <T>(data: any[], id?: string, parentId?: string, children?: string) => T[];
};
export default _default;