wm-util
v0.2.0
Published
wm前端工具集
Readme
wm-util
wm前端工具集
安装
pnpm add wm-utilAPI
downloadFile
下载文件
downloadFile: (content: string, filename?: string, options?: {
mimeType?: string;
isBase64?: boolean;
}) => void;getLableByValue
通过 value 找到对应 options 的label
getLableByValue<T>(value: T, options?: {
label: string;
value: T;
}[]): string;openUrl
打开链接
openUrl: (url?: string) => void;