Scripts2026年7月4日·1 分钟阅读

Vue Vben Admin — Modern Vue 3 Admin Framework with Vite and TypeScript

A feature-rich Vue 3 admin template powered by Vite, TypeScript, and Ant Design Vue with enterprise-grade permissions and theming.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Vue Vben Admin Overview
直接安装命令
npx -y tokrepo@latest install f78b3d2f-7784-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Vue Vben Admin is a next-generation admin framework for Vue 3, built from the ground up with Vite, TypeScript, and the Composition API. It delivers the developer experience of modern tooling while maintaining the enterprise capabilities needed for complex management systems.

What Vue Vben Admin Does

  • Provides a complete admin shell with dynamic menus, tabs, and breadcrumbs
  • Implements fine-grained permission control at route, menu, and button levels
  • Ships with dozens of pre-built pages (dashboards, forms, tables, charts)
  • Supports multiple UI library integrations (Ant Design Vue, Element Plus, Naive UI)
  • Includes a mock server and API generation toolchain

Architecture Overview

The project uses a monorepo structure managed by pnpm workspaces. Core packages handle layout, state (Pinia), request (Axios), and utilities separately. Vite provides instant HMR, while TypeScript ensures type safety across the entire stack. Route-based code splitting keeps initial bundle sizes small.

Self-Hosting & Configuration

  • Requires Node.js 18+ and pnpm as the package manager
  • Environment files (.env.*) configure API base URLs and feature flags
  • Permission mode is configurable: front-end route filtering or backend-driven menus
  • Theme tokens (colors, border radius, spacing) can be overridden via CSS variables
  • Production builds output static files deployable to any web server or CDN

Key Features

  • Vite-powered builds with sub-second hot module replacement
  • Full TypeScript coverage with strict mode enabled
  • Dark mode with smooth transition and persistent preference
  • Configurable multi-tab navigation with context menus
  • Built-in watermark, lock screen, and session timeout handling

Comparison with Similar Tools

  • vue-element-admin — Vue 2 predecessor, larger community but older stack
  • Ant Design Pro — React-based, tighter UmiJS coupling
  • vue-pure-admin — Lighter alternative, fewer built-in features
  • Naive UI Admin — Simpler, uses Naive UI components exclusively
  • Arco Design Pro Vue — ByteDance ecosystem, Arco Design components

FAQ

Q: Which UI library does it use by default? A: The main branch uses Ant Design Vue, but official variants exist for Element Plus and Naive UI.

Q: Is it suitable for small projects? A: The full version is feature-heavy. A slim template is available for projects that need less out of the box.

Q: How do I add new pages? A: Add a route entry in the router config and create the corresponding Vue component. The menu updates automatically.

Q: Does it support SSR? A: No, it is designed as a client-side SPA. For SSR admin panels, consider Nuxt-based solutions.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产