AntDesign.ProLayout 1.1.2

@ant-design/pro-layout

ProLayout provides a standard, yet flexible, middle and backend layout, with one-click layout switching and automatic menu generation. It can be used with PageContainer to automatically generate breadcrumbs, page headers, and provide a low-cost solution to access the footer toolbar.

When to use

ProLayout can be used to reduce layout costs when content needs to be carried on a page.

Use with umi plugins

ProLayout works best with umi. umi automatically injects the routes from config.ts into the configured layout for us, so we don't have to write the menus by hand.

ProLayout extends umi's router configuration, adding name, icon, locale, hideInMenu, hideChildrenInMenu and other configurations, so that it is easier to generate menus in one place. The data format is as follows.

export interface MenuDataItem {
  /** @name submenu */
  children?: MenuDataItem[];
  /** @name Hide child nodes in the menu */
  hideChildrenInMenu?: boolean;
  /** @name hideSelf and children in menu */
  hideInMenu?: boolean;
  /** @name Icon of the menu */
  icon?: React.ReactNode;
  /** @name Internationalization key for custom menus */
  locale?: string | false;
  /** @name The name of the menu */
  name?: string;
  /** @name is used to calibrate the selected value, default is path */
  key?: string;
  /** @name disable menu option */
  disabled?: boolean;
  /** @name path */
  path?: string;
  /**
   * When this node is selected, the node of parentKeys is also selected
   *
   * @name custom parent node
   */
  parentKeys?: string[];
  /** @name hides itself and elevates child nodes to its level */
  flatMenu?: boolean;

  [key: string]: any;
}

ProLayout will automatically select the menu based on location.pathname and automatically generate the corresponding breadcrumbs. If you don't want to use it, you can configure selectedKeys and openKeys yourself for controlled configuration.

Install

Using npm:

$ npm install --save  @ant-design/pro-layout

or using yarn:

$ yarn add @ant-design/pro-layout

No packages depend on AntDesign.ProLayout.

.NET 5.0

.NET 6.0

.NET 7.0

.NET 8.0

.NET 9.0

.NET Standard 2.1

Version Downloads Last updated
1.1.2 1 01/13/2025
1.1.0 5 01/01/2025
1.0.1 5 12/11/2024
1.0.0 7 11/06/2024
1.0.0-rc.2 9 10/12/2024
1.0.0-rc.1 11 09/25/2024
0.20.3 9 09/09/2024
0.20.2.1 9 08/24/2024
0.20.2 9 08/23/2024
0.20.1 8 08/24/2024
0.20.0 10 08/11/2024
0.19.7 11 08/07/2024
0.19.6 11 07/24/2024
0.19.4 9 07/07/2024
0.19.3 10 06/29/2024
0.19.2 13 07/05/2024
0.19.0 14 05/16/2024
0.18.2 16 04/13/2024
0.18.1 14 04/03/2024
0.18.0 17 03/12/2024
0.17.3 29 02/06/2024
0.17.1.3 16 02/09/2024
0.17.1.2 14 02/09/2024
0.16.2 16 01/26/2024
0.16.0 16 02/09/2024
0.15.5 15 02/14/2024
0.14.4.1 18 02/09/2024
0.14.4 12 02/08/2024
0.13.1 14 02/08/2024
0.13.0 12 02/08/2024
0.12.4 13 02/08/2024
0.12.0 16 02/08/2024
0.10.6 13 02/08/2024
0.1.10 15 02/09/2024
0.1.9 19 02/08/2024
0.1.8 16 02/08/2024
0.1.7 17 02/09/2024
0.1.6 17 02/08/2024
0.1.5 15 02/08/2024
0.1.4 16 02/08/2024
0.1.3 11 02/08/2024
0.1.2 17 02/08/2024
0.1.1 16 02/09/2024
0.1.0 16 02/09/2024
0.1.0-nightly-250108132825 1 01/13/2025
0.1.0-nightly-250101054356 5 01/01/2025
0.1.0-nightly-241125170040 6 12/09/2024
0.1.0-nightly-241102160646 8 11/06/2024
0.1.0-nightly-241011155809 8 10/12/2024
0.1.0-nightly-240919144402 8 09/25/2024
0.1.0-nightly-240907045919 8 09/09/2024
0.1.0-nightly-240822151143 10 08/23/2024
0.1.0-nightly-240821095451 12 08/24/2024
0.1.0-nightly-240818161909 12 08/23/2024
0.1.0-nightly-240808050924 11 08/11/2024
0.1.0-nightly-240801074353 10 08/06/2024
0.1.0-nightly-240722075516 11 07/25/2024
0.1.0-nightly-240704001043 10 07/07/2024
0.1.0-nightly-240626000317 11 06/29/2024
0.1.0-nightly-240623230856 9 06/28/2024
0.1.0-nightly-240509164714 12 05/16/2024
0.1.0-nightly-240403141539 14 04/13/2024
0.1.0-nightly-240327155440 12 04/03/2024
0.1.0-nightly-240323160825 14 04/13/2024
0.1.0-nightly-240307044713 14 03/12/2024
0.1.0-nightly-240121113701 16 02/09/2024
0.1.0-nightly-240108151356 17 02/09/2024
0.1.0-nightly-231231013837 16 02/08/2024
0.1.0-nightly-231229140852 16 02/08/2024
0.1.0-nightly-231229140814 16 02/08/2024
0.1.0-nightly-231228171200 16 02/08/2024
0.1.0-nightly-231228171136 13 02/08/2024
0.1.0-nightly-231227150814 15 02/08/2024
0.1.0-nightly-231117045313 17 02/08/2024
0.1.0-nightly-231117045015 17 02/08/2024
0.1.0-nightly-231025164949 18 02/09/2024
0.1.0-nightly-230927230635 16 02/08/2024
0.1.0-nightly-230923032500 16 02/08/2024
0.1.0-nightly-230518143345 15 02/09/2024
0.1.0-nightly-230327141737 15 02/09/2024
0.1.0-nightly-230323081216 15 02/08/2024
0.1.0-nightly-230323060142 15 02/09/2024
0.1.0-nightly-221129035649 16 02/09/2024
0.1.0-nightly-221129035545 15 02/09/2024
0.1.0-nightly-221123053849 15 02/08/2024
0.1.0-nightly-221123053826 13 02/08/2024
0.1.0-nightly-220919111113 18 02/08/2024
0.1.0-nightly-220919110025 18 02/09/2024
0.1.0-nightly-220901035929 17 02/09/2024
0.1.0-nightly-220701052920 13 02/09/2024
0.1.0-nightly-220510162051 15 02/09/2024
0.1.0-nightly-211224025455 17 02/09/2024
0.1.0-nightly-211222060756 16 02/08/2024
0.1.0-nightly-211214084601 15 02/08/2024
0.1.0-nightly-211106021800 14 02/09/2024
0.1.0-nightly-211017073243 16 02/08/2024
0.1.0-nightly-211016161003 16 02/08/2024
0.1.0-nightly-210924082739 18 02/09/2024
0.1.0-nightly-210913155325 20 02/08/2024
0.1.0-nightly-210829074522 22 02/09/2024
0.1.0-nightly-210813062316 17 02/08/2024
0.1.0-nightly-210813051716 14 02/08/2024
0.1.0-nightly-210812150205 21 02/08/2024
0.1.0-nightly-210811092519 15 02/09/2024
0.1.0-nightly-210803140146 16 02/08/2024
0.1.0-nightly-210729095901 17 02/08/2024
0.1.0-nightly-210728062112 18 02/08/2024
0.1.0-nightly-210728051320 17 02/09/2024
0.1.0-nightly-210728034012 13 02/09/2024
0.1.0-nightly-210727051342 17 02/08/2024
0.1.0-nightly-210727050909 17 02/09/2024
0.1.0-nightly-210721061958 19 02/08/2024
0.1.0-nightly-210714165658 18 02/08/2024
0.1.0-nightly-210618061658 15 02/08/2024
0.1.0-nightly-210618060254 20 02/09/2024
0.1.0-nightly-210527073803 17 02/08/2024
0.1.0-nightly-210513151937 15 02/09/2024
0.1.0-nightly-210513142421 15 02/08/2024