refactor: add loading component and demo

This commit is contained in:
vben
2020-12-01 20:59:17 +08:00
parent c9e44ce9af
commit 5db3ce7737
38 changed files with 545 additions and 348 deletions

View File

@@ -26,6 +26,7 @@ export function useI18n(namespace?: string) {
return {
...methods,
t: (key: string, ...arg: Parameters<typeof t>) => {
if (!key) return '';
return t(getKey(key), ...arg);
},
};