Files
zacfrontadmin_v2/docs/src/demos/vben-drawer/basic/index.vue

12 lines
325 B
Vue
Raw Normal View History

2026-01-15 18:04:52 +08:00
<script lang="ts" setup>
import { useVbenDrawer, VbenButton } from '@vben/common-ui';
const [Drawer, drawerApi] = useVbenDrawer();
</script>
<template>
<div>
<VbenButton @click="() => drawerApi.open()">Open</VbenButton>
<Drawer class="w-[600px]" title="基础示例"> drawer content </Drawer>
</div>
</template>