AntDesign.ProLayout 0.1.0-nightly-240704001043

@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 Standard 2.1

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