feat: 增加Notificatio方法

This commit is contained in:
rd
2025-07-17 17:23:40 +08:00
parent 62d27268c4
commit a7f745d98b
6 changed files with 26 additions and 26 deletions

17
src/utils/arcoD.tsx Normal file
View File

@ -0,0 +1,17 @@
import { Notification } from '@arco-design/web-vue';
import { IconLoading } from '@arco-design/web-vue/es/icon';
export function showExportNotification(name: string) {
Notification.warning({
showIcon: false,
closable: true,
content: () => (
<div class="flex items-center">
<IconLoading size={16} class="color-#6D4CFE mr-8px" />
<p class="text-14px lh-22px font-400 color-#211F24">{`正在下载“${name}”,请稍后...`}</p>
</div>
),
duration: 3000,
class: 'px-16px py-9px w-400px rounded-2px bg-#F0EDFF',
});
}

View File

@ -106,3 +106,4 @@ export function downloadByUrl(url: string, filename?: string) {
a.click();
document.body.removeChild(a);
}