Skip to content

Pro Component Provider

ProComponentProvider 是一个提供全局组件配置的容器组件。通过该组件可以统一配置所有 Pro 组件的默认属性。

何时使用

  • 需要为整个应用中的 Pro 组件设置统一的默认属性
  • 希望减少重复配置,提高开发效率

API

Props

参数名说明类型默认值
component-vars需要provide的配置ComponentVars-

ComponentVars 配置项

ComponentVars 包含以下可配置组件:

  • pro-table: ProTable 组件默认配置
  • pro-form: ProForm 组件默认配置
  • pro-form-item: ProFormItem 组件默认配置
  • 各种表单字段组件如 input, select, date-picker

每种组件可以配置其对应的 Ant Design Vue 组件属性。