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