• 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-modal
  • draggable
  • index.vue
  • hookehuyr's avatar
    feat: 初始化项目基础结构和配置 · 68b2d1af ...
    68b2d1af
    添加项目基础文件结构、配置文件和核心功能模块
    包括Vite配置、样式、工具函数、组件库和文档等基础架构
    hookehuyr authored 2026-01-06 10:46:30 +0800
index.vue 394 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 { useVbenModal, VbenButton } from '@vben/common-ui';

import ExtraModal from './modal.vue';

const [Modal, modalApi] = useVbenModal({
  // 连接抽离的组件
  connectedComponent: ExtraModal,
});

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

<template>
  <div>
    <Modal />
    <VbenButton @click="openModal">Open</VbenButton>
  </div>
</template>