crud-page-react 0.2.1 → 0.2.2
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/index.esm.js +3 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -292,7 +292,9 @@ function DynamicTable({ schema, data, loading, pagination, onView, onEdit, onDel
|
|
|
292
292
|
return shouldShowAction(action.condition, record);
|
|
293
293
|
});
|
|
294
294
|
const customActions = actions.filter(action => {
|
|
295
|
-
|
|
295
|
+
// 检查是否是自定义操作类型(非基础操作)
|
|
296
|
+
const isBasicAction = action.type === 'view' || action.type === 'edit' || action.type === 'delete';
|
|
297
|
+
if (isBasicAction)
|
|
296
298
|
return false;
|
|
297
299
|
// 检查 condition 条件
|
|
298
300
|
return shouldShowAction(action.condition, record);
|