mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-09 22:43:16 +08:00
feat(导出): 重构导出功能并添加国际化支持
- 新增通用的 `useBlobExport` 组合式函数,封装导出逻辑,支持加载状态和取消操作 - 在用户管理页面使用新的导出函数替换原有的 `commonDownloadExcel` 调用 - 添加中英文国际化文案,包括导出标题、加载提示和取消提示 - 为通用页面文案补充“取消”按钮的翻译
This commit is contained in:
7
apps/web-antd/src/locales/langs/en-US/common.json
Normal file
7
apps/web-antd/src/locales/langs/en-US/common.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"export": {
|
||||
"title": "Export",
|
||||
"loading": "Exporting...",
|
||||
"canceled": "Export has been cancelled."
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@
|
||||
"tip": "Tip",
|
||||
"enable": "On",
|
||||
"disable": "Off",
|
||||
"beforeCloseTip": "You have unsaved changes. Are you sure you want to exit?"
|
||||
"beforeCloseTip": "You have unsaved changes. Are you sure you want to exit?",
|
||||
"cancel": "Cancel"
|
||||
}
|
||||
}
|
||||
|
||||
7
apps/web-antd/src/locales/langs/zh-CN/common.json
Normal file
7
apps/web-antd/src/locales/langs/zh-CN/common.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"export": {
|
||||
"title": "导出",
|
||||
"loading": "导出中...",
|
||||
"canceled": "导出已取消"
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@
|
||||
"tip": "提示",
|
||||
"enable": "启用",
|
||||
"disable": "禁用",
|
||||
"beforeCloseTip": "您有未保存的更改,确认要退出吗?"
|
||||
"beforeCloseTip": "您有未保存的更改,确认要退出吗?",
|
||||
"cancel": "取消"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user