@magicbe/antd-crud 0.0.63 → 0.0.65
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/components/Table.js +1 -1
- package/dist/interface.d.ts +6 -6
- package/package.json +1 -1
package/dist/components/Table.js
CHANGED
|
@@ -180,7 +180,7 @@ var Table = React.forwardRef(function (_a, ref) {
|
|
|
180
180
|
onChange: onRowSelectionChange,
|
|
181
181
|
type: selectionType,
|
|
182
182
|
});
|
|
183
|
-
}, [selectionType]);
|
|
183
|
+
}, [selectionType, selected_keys]);
|
|
184
184
|
var loadRecords = function (params, filter, sorter, extra) {
|
|
185
185
|
var _a;
|
|
186
186
|
if (params === void 0) { params = {}; }
|
package/dist/interface.d.ts
CHANGED
|
@@ -146,20 +146,20 @@ export interface CustomFilterProps {
|
|
|
146
146
|
initialValues?: Record<string, any>;
|
|
147
147
|
}
|
|
148
148
|
export interface CustomActionGroup {
|
|
149
|
-
add?: boolean | React.FC
|
|
150
|
-
del?: boolean | React.FC
|
|
151
|
-
edit?: boolean | React.FC
|
|
149
|
+
add?: boolean | React.FC<any>;
|
|
150
|
+
del?: boolean | React.FC<any>;
|
|
151
|
+
edit?: boolean | React.FC<any>;
|
|
152
152
|
}
|
|
153
153
|
export interface RecordCustomActionGroup extends CustomActionGroup {
|
|
154
154
|
}
|
|
155
155
|
export interface MasterCustomActionGroup extends CustomActionGroup {
|
|
156
156
|
}
|
|
157
157
|
export interface CustomAction {
|
|
158
|
-
master?: boolean | React.FC | (React.FC)[] | MasterCustomActionGroup;
|
|
159
|
-
record?: boolean | React.FC | (React.FC)[] | RecordCustomActionGroup;
|
|
158
|
+
master?: boolean | React.FC<any> | (React.FC<any>)[] | MasterCustomActionGroup;
|
|
159
|
+
record?: boolean | React.FC<any> | (React.FC<any>)[] | RecordCustomActionGroup;
|
|
160
160
|
}
|
|
161
161
|
/**操作 */
|
|
162
|
-
export type Action = boolean | React.FC | React.FC[] | CustomAction;
|
|
162
|
+
export type Action = boolean | React.FC<any> | React.FC<any>[] | CustomAction;
|
|
163
163
|
export interface DrawerProps {
|
|
164
164
|
add?: number;
|
|
165
165
|
edit?: number;
|