quick-admin-vue3-core
Version:
以快(计算机执行效率、开发效率)为核心的后台管理系统开发模板
18 lines (16 loc) • 616 B
TypeScript
import { CommonObj } from '../../_types';
/**
* 获取支持上传的文件后缀类型
*/
export declare function getAcceptTypeStr(accept: string): string;
/**
* 获取支持上传的文件大小限制(自带单位)
*/
export declare function getLimitSizeStr(limitSize: number, num?: number): string;
export declare function getFileTips(props: CommonObj): string;
/**
* 获取文件不合规范的提示文案
* @param {object} props 上传组件的props属性
* @param {object} file 上传的文件信息
*/
export declare function getErrorTips(props: CommonObj, file: CommonObj): string;