/** * title: Drawer 被打开的时候 visible 就为 true 的场景 * debug: true */ import React, { useState } from 'react' import { Button, Drawer } from 'react-icecream' export default function Demo() { const [visible1, setVisible1] = useState(false) const [visible2, setVisible2] = useState(false) return ( <> { visible1 && ( setVisible1(false)}> { visible2 && ( setVisible2(false)}>

Some contents...

Some contents...

Some contents...

Some contents...

Some contents...

Some contents...

Some contents...

Some contents...

Some contents...

Some contents...

Some contents...

Some contents...

Some contents...

Some contents...

Some contents...

Some contents...

Some contents...

Some contents...

) }
) } ) }