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>
   )