AntDesign.ProLayout 0.19.6

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