|
|
@ -87,12 +87,18 @@ const CrudList = < |
|
|
|
|
|
|
|
|
|
|
|
const formTools = useMemo<CrudListFormTools>( |
|
|
|
const formTools = useMemo<CrudListFormTools>( |
|
|
|
() => ({ |
|
|
|
() => ({ |
|
|
|
|
|
|
|
add: { |
|
|
|
|
|
|
|
open: (v = true) => addDialogRef?.current?.setOpen(v), |
|
|
|
|
|
|
|
}, |
|
|
|
confirm: { |
|
|
|
confirm: { |
|
|
|
finish: finishConfirm, |
|
|
|
finish: finishConfirm, |
|
|
|
loading: setConfirmDialogLoading, |
|
|
|
loading: setConfirmDialogLoading, |
|
|
|
open: setConfirmDialogOpen, |
|
|
|
open: (v = true) => setConfirmDialogOpen(v), |
|
|
|
prepare: setConfirmDialogProps, |
|
|
|
prepare: setConfirmDialogProps, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
edit: { |
|
|
|
|
|
|
|
open: (v = true) => editDialogRef?.current?.setOpen(v), |
|
|
|
|
|
|
|
}, |
|
|
|
}), |
|
|
|
}), |
|
|
|
[ |
|
|
|
[ |
|
|
|
finishConfirm, |
|
|
|
finishConfirm, |
|
|
|