Skip to content

Drawer

抽屉组件,用于侧边弹出内容。

基础用法

Drawer 组件可以作为 FormDialog 的替代方案,适用于需要更大展示空间的场景。

Events

事件说明
drawerClose抽屉关闭时触发

监听关闭事件

vue
<template>
  <PageTemplate @drawerClose="handleDrawerClose">
    <template #table>
      <Table />
    </template>
  </PageTemplate>
</template>

<script setup>
function handleDrawerClose() {
  // 抽屉关闭后的处理
}
</script>

Released under the MIT License.