+ {action.label}
+
+ {renderCheckbox(columnAggregate, () => {
+ handleCycleColumn(action)
+ })}
+
+
+ ),
+ key: action.name,
+ width: 48,
+ align: 'center',
+ render: (_, record) => {
+ if (!modelHasPermissionAction(record.model, action.name)) {
+ return null
+ }
+ const state = getPermissionState(
+ permissions,
+ record.model.name,
+ action.name
+ )
+
+ return renderCheckbox(state, () => {
+ handleCycle(record.model.name, action.name)
+ })
+ }
+ }
+ })
return [modelColumn, ...actionColumns]
- }, [actions, disabled, handleCycle, inherit, isMobile, permissions])
+ }, [
+ actions,
+ handleCycle,
+ handleCycleColumn,
+ handleCycleRow,
+ inherit,
+ isMobile,
+ models,
+ permissions,
+ renderCheckbox
+ ])
const dataSource = useMemo(
() =>