skills/jobsys/newbie-next/pro-components-guide

pro-components-guide

SKILL.md

ProComponents Guide & Documentation

当用户询问 Ant Design Pro 组件、构建后台页面或需要查找具体组件参数时,请参考以下目录。 关键指令:如果需要编写详细代码且不确定某个 Props(如 request 的返回值格式、columns 的具体配置),请使用浏览工具(Browsing Tool)读取对应的 URL。

1. Layout 布局组件

核心组件: ProLayout

  • 文档链接: https://pro-components.antdigital.dev/components/layout
  • 包含:
    • ProLayout: 解决侧边栏、顶部导航、面包屑等全局布局。
    • PageContainer: 页面的标准容器,自动生成面包屑和标题。
    • FooterToolbar: 底部固定工具栏。
    • WaterMark: 水印组件。

2. Table 表格与列表

核心组件: ProTable

3. Form 表单组件

核心组件: ProForm

4. Data Display 数据展示

5. Other 其他

最佳实践提醒

  1. Request 模式: ProTable 和 ProForm 推荐使用 request 属性配合 async 函数来接管数据加载,而不是手动管理 loading 和 data state。详情请查阅 ProTable 文档中的 request 部分。
  2. ValueType: 善用 valueType ('money', 'date', 'select' 等) 来自动格式化显示和表单项,减少手写 render 代码。
Weekly Installs
14
First Seen
Jan 23, 2026
Installed on
claude-code10
opencode9
gemini-cli8
codex7
cursor6
windsurf5