UNPKG

@aplus-frontend/ui

Version:

15 lines (14 loc) 365 B
import { formatFileNameAndDownloadFile as e } from "@aplus-frontend/utils"; import { Modal as a } from "@aplus-frontend/antdv"; async function c(o) { const t = await o?.(); Object.prototype.toString.call(t?.data) === "[object Blob]" && e(t).catch((r) => { a.error({ title: r, centered: !0 }); }); } export { c as handleExportDownload };