Drawer / 抽屉

固定在屏幕边缘的可交互元素组。

基础的

基础示例。

定位

APIs / 接口文档

Drawer.Props

属性描述类型推荐值默认
visible打开或关闭boolean-false
onClose关闭事件() => void--
onContentClick抽屉内部元素点击事件(e: MouseEvent) => void--
wrapClassName抽屉弹出内容的类名string--
keyboard按下 Esc 键关闭元素boolean-true
disableBackdropClick点击背景层时不关闭抽屉boolean-false
placement抽屉相对于屏幕的位置DrawerPlacement-right
...原生属性HTMLAttributes'name', 'className', ...-

Drawer.Title.Props

属性描述类型推荐值默认
...原生属性HTMLAttributes'id', 'className', ...-

Drawer.Subtitle.Props

属性描述类型推荐值默认
...原生属性HTMLAttributes'id', 'className', ...-

Drawer.Content.Props

属性描述类型推荐值默认
...原生属性HTMLAttributes'id', 'className', ...-

DrawerPlacement

type DrawerPlacement = 'top' | 'bottom' | 'right' | 'left'