浏览代码

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,