|
@@ -1,21 +1,24 @@
|
|
|
import { Button, Drawer } from 'antd'
|
|
|
+import type { DrawerProps } from 'antd'
|
|
|
import { useState } from 'react'
|
|
|
import type { PropsWithChildren, FC } from 'react'
|
|
|
import styles from './index.less'
|
|
|
type AnimateContentProps = {
|
|
|
visible: boolean
|
|
|
onVisibleChange: (visible: boolean) => void
|
|
|
-}
|
|
|
+} & DrawerProps
|
|
|
|
|
|
const AnimateContent: FC<PropsWithChildren<AnimateContentProps>> = ({
|
|
|
visible,
|
|
|
onVisibleChange,
|
|
|
disableBreadcrumb = false,
|
|
|
- children
|
|
|
+ children,
|
|
|
+ ...others
|
|
|
}) => {
|
|
|
return (
|
|
|
<div className={styles.pageContainer}>
|
|
|
<Drawer
|
|
|
+ {...others}
|
|
|
getContainer={false}
|
|
|
visible={visible}
|
|
|
push={false}
|