Overview of ProLayout
masterPageContainer, it can automatically generate breadcrumbs and page headers, providing an efficient way to implement page layouts and footer toolbars.repository·master·Indexed 26 days ago
https://github.com/ant-design/pro-componentsA collection of high-level React components for building enterprise-grade applications, extending Ant Design with advanced data handling and complex UI patterns. It includes specialized components like ProTable and ProForm, and supports both imperative and schema-driven form definitions via BetaSchemaForm. The library provides sophisticated business logic capabilities, including a structured data lifecycle for forms and a flexible valueType system for consistent data handling.
PageContainer, it can automatically generate breadcrumbs and page headers, providing an efficient way to implement page layouts and footer toolbars.ProComponents is a suite of template components built on top of Ant Design that provides high-level abstractions to accelerate CRUD (Create, Read, Update, Delete) page development. Key components include:
ProComponents is a suite of high-level components designed for enterprise-level applications. Key features include:
ProComponents is a React UI component library designed for enterprise-level applications, specifically targeting middle and back-end development needs. It provides out-of-the-box components with built-in complex data processing logic.
ProTable).ProComponents is a suite of components designed to reduce the complexity of implementing CRUD (Create, Read, Update, Delete) operations by minimizing manual state maintenance.
Key packages include:
QueryFilter or LightFilter) and behave like a standard form when used in type="form" scenarios.ProForm is a high-level wrapper around Ant Design's Form component designed to accelerate form development. It provides syntactic sugar, advanced layout settings, and preset behaviors for common scenarios like step-by-step forms, modal forms, drawer forms, and query filters.
initialValues to set default values. Avoid using a component's direct value and onChange props as they may cause value binding failures.ProFormDependency or Ant Design's Form.Item with shouldUpdate (render props mode).ProForm's onFinish is a Promise. If you return normally from the function, the submit button will automatically enter a loading state.onValuesChange to listen to value changes to maintain a unidirectional data flow.Form.Item and custom controls.valueType definitions to various form items. This is useful for data-driven form generation where the structure is defined by a JSON object or array.ProCard is a versatile container component that combines Col, Row, Card, and Tabs to provide standard card styles, segmentation, and grid layouts. It is ideal for:
Note for developers: If you encapsulate ProCard in your own component, you must expose the static property isProCard=true so it can be recognized as a ProCard element.
The ProComponents ecosystem includes related projects designed for enterprise-level applications and specialized UI needs:
ProTable designed to present data in a list format. Because its API design is similar to ProTable, you can easily switch between Table and List views by sharing the same columns configuration. Use ProList when you need a standard list presentation or the ability to toggle between list and table forms.The StepsForm component manages a sequence of nested forms using a context Provider. Each inner form maintains its own snapshot of values, which StepsForm merges into a single payload upon final submission.
Key Behaviors:
onFinish at the end.StepsForm extends Ant Design's Form.Provider. Note that serialization (e.g., converting dayjs objects) follows the ProForm pipeline. Consequently, the values received in onFormFinish or onFormChange are the raw field values managed by the Provider.onFinish returns a truthy value, the flow resets back to the first step.