Ant-design-pro: 远程加载菜单时,如何设置菜单组件的loading?

Created on 18 Jul 2019  ·  4Comments  ·  Source: ant-design/ant-design-pro

远程加载菜单时,如何设置菜单组件的loading?

Inactive 🏆 Feature Request

Most helpful comment

ProLayout 可能需要提供一个 menuLoading 属性,不然用户从外面很难改。

All 4 comments

你可以用 spin 包裹一下,这个东西很业务,也很简单。

ProLayout 可能需要提供一个 menuLoading 属性,不然用户从外面很难改。

另外,远程加载菜单后,单击二级菜单项后,菜单会自动折叠起来。ProLayout的固定侧边栏功能没有,官网例子:
style={{
overflow: 'auto',
height: '100vh',
position: 'fixed',
left: 0,
}}
>

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  ·  3Comments

renyi818 picture renyi818  ·  3Comments

RichardStark picture RichardStark  ·  3Comments

zhongjiewu picture zhongjiewu  ·  3Comments

Yoping picture Yoping  ·  3Comments