feat: parent child retrieval (#12106)

Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
Wu Tianwei 2024-12-26 12:01:51 +08:00 • committed by GitHub
commit 49feff082f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
196 changed files with 9035 additions and 3115 deletions

View file

@ -19,6 +19,7 @@ export type IDrawerProps = {
onClose: () => void
onCancel?: () => void
onOk?: () => void
unmount?: boolean
}
export default function Drawer({
@ -35,11 +36,12 @@ export default function Drawer({
onClose,
onCancel,
onOk,
unmount = false,
}: IDrawerProps) {
const { t } = useTranslation()
return (
<Dialog
unmount={false}
unmount={unmount}
open={isOpen}
onClose={() => !clickOutsideNotOpen && onClose()}
className="fixed z-30 inset-0 overflow-y-auto"