`.
| Property | Description | Type | Default |
| --- | --- | --- | --- |
-| dVisible | Is the drawer visible | boolean | false |
+| dVisible | Is the drawer visible | [boolean, Updater\
?] | - |
| dContainer | The mounted node of the drawer, `false` means it is mounted on the current node | DElementSelector \| false | - |
| dPlacement | Drawer pop-up direction | 'top' \| 'right' \| 'bottom' \| 'left' | 'right' |
| dWidth | Drawer width | number \| string | 400 |
diff --git a/packages/ui/src/components/drawer/README.zh-Hant.md b/packages/ui/src/components/drawer/README.zh-Hant.md
index e9a400d8..5ea07f04 100644
--- a/packages/ui/src/components/drawer/README.zh-Hant.md
+++ b/packages/ui/src/components/drawer/README.zh-Hant.md
@@ -17,7 +17,7 @@ title: 抽屉
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
-| dVisible | 抽屉是否可见 | boolean | false |
+| dVisible | 抽屉是否可见 | [boolean, Updater\?] | - |
| dContainer | 抽屉的挂载节点, `false` 表示挂载在当前节点 | DElementSelector \| false | - |
| dPlacement | 抽屉弹出方向 | 'top' \| 'right' \| 'bottom' \| 'left' | 'right' |
| dWidth | 抽屉宽度 | number \| string | 400 |
diff --git a/packages/ui/src/components/drawer/demos/1.Basic.md b/packages/ui/src/components/drawer/demos/1.Basic.md
index 7665a41c..8491f05d 100644
--- a/packages/ui/src/components/drawer/demos/1.Basic.md
+++ b/packages/ui/src/components/drawer/demos/1.Basic.md
@@ -27,10 +27,6 @@ export default function Demo() {
setVisible(true);
}, [setVisible]);
- const handleClose = useCallback(() => {
- setVisible(false);
- }, [setVisible]);
-
const handleOk = useCallback(() => {
const [asyncGroup] = asyncCapture.createGroup('handleOk');
@@ -45,7 +41,7 @@ export default function Demo() {
<>
Show Drawer
}
dFooter={}
- onClose={handleClose}
>
Some contents...
diff --git a/packages/ui/src/components/drawer/demos/2.Placement.md b/packages/ui/src/components/drawer/demos/2.Placement.md
index d35a0545..71757956 100644
--- a/packages/ui/src/components/drawer/demos/2.Placement.md
+++ b/packages/ui/src/components/drawer/demos/2.Placement.md
@@ -30,10 +30,6 @@ export default function Demo() {
[setVisible, setPlacement]
);
- const handleClose = useCallback(() => {
- setVisible(false);
- }, [setVisible]);
-
return (
<>
@@ -52,7 +48,7 @@ export default function Demo() {
handleClick('bottom')}>B
-