UNPKG

@wufengteam/wform

Version:

@wufengteam/wform

29 lines (28 loc) 982 B
import type { UploadFile } from 'antd/lib/upload/interface'; export { getTodoActionListByKey } from '@lingxiteam/assets/es/rootConfig/todoActionList'; export declare const prefix = "wufeng-wform"; export declare const typeDic: any; /** * 下载附件方法 * @param file 文件流 * @param fileName 文件名 */ export declare const downloadFile: (file: any, fileName: string) => void; /** * 文件流转化成 base64 * @param file * @returns */ export declare const getBase64: (file: any) => Promise<string | ArrayBuffer | null>; /** * 遍历文件修改上传错误文件的展示信息 */ export declare const checkFileList: (files: UploadFile[]) => UploadFile<any>[]; export declare const transformFileToDataUrl: (file: any) => Promise<unknown>; export declare function plusXing(data: string, frontLen: number, endLen: number, cha: string): string; /** * 获取第一个字 * @param name * @returns */ export declare const getFirstChar: (name?: string) => string;