From ad3abccca178002ad75d761122afc151ec2ec68c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E8=8F=9C=20Cai?= <1064425721@qq.com> Date: Wed, 17 Jul 2024 12:33:28 +0800 Subject: [PATCH] chore(example): add global 'Loading' to ant design pro (#12570) --- examples/ant-design-pro/src/app.tsx | 6 ------ examples/ant-design-pro/src/loading.tsx | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 examples/ant-design-pro/src/loading.tsx diff --git a/examples/ant-design-pro/src/app.tsx b/examples/ant-design-pro/src/app.tsx index 0848c9e0d5f7..b92889440561 100644 --- a/examples/ant-design-pro/src/app.tsx +++ b/examples/ant-design-pro/src/app.tsx @@ -10,12 +10,6 @@ import { currentUser as queryCurrentUser } from './services/ant-design-pro/api'; const isDev = process.env.NODE_ENV === 'development'; const loginPath = '/user/login'; -// TODO: 不知道这是啥? -/** 获取用户信息比较慢的时候会展示一个 loading */ -// export const initialStateConfig = { -// loading: , -// }; - /** * @see https://umijs.org/zh-CN/plugins/plugin-initial-state * */ diff --git a/examples/ant-design-pro/src/loading.tsx b/examples/ant-design-pro/src/loading.tsx new file mode 100644 index 000000000000..abea1a7ef8a9 --- /dev/null +++ b/examples/ant-design-pro/src/loading.tsx @@ -0,0 +1,5 @@ +import { PageLoading } from '@ant-design/pro-components'; +const Loading = () => { + return ; +}; +export default Loading;