AntDesign.ProLayout 0.1.0-nightly-240907045919

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