@magicbe/antd-crud 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interface.d.ts +2 -2
- package/package.json +1 -1
package/dist/interface.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ export interface GetSourceFunctionParams extends Record<string, any> {
|
|
|
99
99
|
pageSize?: number;
|
|
100
100
|
}
|
|
101
101
|
/**获取数据的方法 */
|
|
102
|
-
export type getSourceFunction
|
|
102
|
+
export type getSourceFunction<RecordType = AnyObject> = (params?: GetSourceFunctionParams) => Promise<Source<RecordType>>;
|
|
103
103
|
export interface Selection<RecordType = AnyObject> {
|
|
104
104
|
keys?: React.Key[];
|
|
105
105
|
rows?: RecordType[];
|
|
@@ -157,7 +157,7 @@ export type Action = boolean | React.FC | React.FC[] | CustomAction;
|
|
|
157
157
|
/**主体参数 */
|
|
158
158
|
export interface ContentProps<RecordType = AnyObject> extends Omit<TableProps<RecordType>, "columns" | "pagination" | "dataSource" | "loading" | "rowSelection"> {
|
|
159
159
|
columns?: ColumnType<RecordType>[];
|
|
160
|
-
getSources?: getSourceFunction
|
|
160
|
+
getSources?: getSourceFunction<RecordType>;
|
|
161
161
|
add?: add;
|
|
162
162
|
del?: del;
|
|
163
163
|
edit?: edit;
|