From 782cb520a0bda0b7ecb745de7a821be04b26bd12 Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Thu, 11 Nov 2021 11:06:59 +0800 Subject: [PATCH] docs: add childrenRender demo --- src/app.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app.tsx b/src/app.tsx index f037d946..27d41419 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -78,6 +78,11 @@ export const layout: RunTimeLayoutConfig = ({ initialState }) => { menuHeaderRender: undefined, // 自定义 403 页面 // unAccessible:
unAccessible
, + // 增加一个 loading 的状态 + // childrenRender: (children) => { + // if (initialState.loading) return ; + // return children; + // }, ...initialState?.settings, }; };