소스 검색

feat: 111

lanjianrong 3 년 전
부모
커밋
56b797731e
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      src/components/AnimateContent/index.tsx

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

@@ -1,12 +1,11 @@
-import { Button, Drawer } from 'antd'
+import { 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
+} & Omit<DrawerProps, 'visible' | 'onVisibleChange'>
 
 const AnimateContent: FC<PropsWithChildren<AnimateContentProps>> = ({
   visible,