• This project
    • Loading...
  • Sign in

Hooke / vben-admin

Itomix
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • vben-admin
  • docs
  • src
  • demos
  • vben-drawer
  • auto-height
  • index.vue
  • hookehuyr's avatar
    feat: 初始化项目基础结构和配置 · 68b2d1af ...
    68b2d1af
    添加项目基础文件结构、配置文件和核心功能模块
    包括Vite配置、样式、工具函数、组件库和文档等基础架构
    hookehuyr authored 2026-01-06 10:46:30 +0800
index.vue 393 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<script lang="ts" setup>
import { useVbenDrawer, VbenButton } from '@vben/common-ui';

import ExtraDrawer from './drawer.vue';

const [Drawer, drawerApi] = useVbenDrawer({
  // 连接抽离的组件
  connectedComponent: ExtraDrawer,
});

function open() {
  drawerApi.open();
}
</script>

<template>
  <div>
    <Drawer />
    <VbenButton @click="open">Open</VbenButton>
  </div>
</template>