lanjianrong 3 лет назад
Родитель
Сommit
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>
   )