lanjianrong преди 3 години
родител
ревизия
d85a0e8711
променени са 1 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 5 2
      src/components/AnimateContent/index.tsx

+ 5 - 2
src/components/AnimateContent/index.tsx

@@ -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}