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

+ 1 - 1
src/components/AnimateContent/index.tsx

@@ -31,7 +31,7 @@ const AnimateContent: FC<PropsWithChildren<AnimateContentProps>> = ({
         }}
         // closeIcon={<Button onClick={() => onVisibleChange(false)}>返回</Button>}>
       >
-        {children}
+        {visible ? children : null}
       </Drawer>
     </div>
   )