Skip to content

Drawer 抽屉

TIP

Drawer 组件对应 GvDrawer。下方示例可直接交互,点击「显示代码」查看源码。

基本用法

API

Attributes

属性名说明类型默认值
visible设置是否可见booleantrue
title设置抽屉标题string标题
direction设置抽屉展开方向stringrtl

Events

事件名说明类型
open打开窗口响应方法() => void

类型定义

typescript
// direction 类型定义
type DrawerDirection = 'rtl' | 'ltr' | 'ttb' | 'btt';