lanjianrong 4 năm trước cách đây
mục cha
commit
a4a8bf744b

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

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