瀏覽代碼

feat: 111

lanjianrong 3 年之前
父節點
當前提交
a58776c709
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/AnimateContent/index.tsx

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

@@ -5,6 +5,7 @@ import styles from './index.less'
 type AnimateContentProps = {
   visible: boolean
   onVisibleChange: (visible: boolean) => void
+  disableBreadcrumb?: boolean
 } & Omit<DrawerProps, 'visible' | 'onVisibleChange'>
 
 const AnimateContent: FC<PropsWithChildren<AnimateContentProps>> = ({
@@ -14,7 +15,6 @@ const AnimateContent: FC<PropsWithChildren<AnimateContentProps>> = ({
   children,
   ...others
 }) => {
-  if (!visible) return null
   return (
     <div className={styles.pageContainer}>
       <Drawer