UNPKG

@zhsz/cool-design-dv

Version:

40 lines (39 loc) 967 B
/** * 日志打印模块 * @module $ui/utils/log */ /** * 打印信息日志 */ export declare function log(...args: any[]): void; /** * 打印警告日志 * @param {...string} 日志内容 */ export declare function warn(...args: any[]): void; /** * 打印错误日志 * @param {...string} 日志内容 */ export declare function error(...args: any[]): void; /** * 打印信息 */ export declare function info(...args: any[]): void; /** * 枚举对象属性 * @param {...string} 对象 */ export declare function dir(...args: any[]): void; /** * 输出提示信息 * @param {string} title 标题 * @param {string} info 内容 * @param {string} [type=primary] 颜色类型,支持:primary/success/warn/error */ export declare function tip(title: any, info: any, type?: string): void; /** * 创建log日志实例,返回一个包含全部输入日志方法集合的对象 * @return {log} */ export declare function create(): typeof log;