CrudAPI
React Crud 组件的 API 参考文档。了解此导出模块的属性、CSS 和其他 API。
示例
导入
import { Crud } from '@toolpad/core/Crud';
// or
import { Crud } from '@toolpad/core';
阅读这篇关于最小化 bundle 大小的指南,了解它们之间的区别。
名称 | 类型 | 默认值 | 描述 |
---|---|---|---|
dataSource* | object | - | 服务器端数据源。 |
rootPath* | string | - | CRUD 页面的根路径。 |
dataSourceCache | { cache: object, clear: func, get: func, set: func, ttl: number } | - | 数据源的缓存。 |
defaultValues | object | {} | 新项目的默认表单值。 |
initialPageSize | number | 100 | 每页显示的初始行数。 |
该组件不能持有 ref。
源代码
如果您在此页面中没有找到所需信息,请考虑查看组件的实现以获取更多详细信息。