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