vue-element-admin

一个神奇的 vue 管理员。(A magical vue admin http://panjiachen.github.io/vue-element-admin)

Github stars Tracking Chart

简体中文 | English | 日本語 | Spanish

简介

vue-element-admin 是一个后台前端解决方案,它基于 vueelement-ui实现。它使用了最新的前端技术栈,内置了 i18n 国际化解决方案,动态路由,权限验证,提炼了典型的业务模型,提供了丰富的功能组件,它可以帮助你快速搭建企业级中后台产品原型。相信不管你的需求是什么,本项目都能帮助到你。

v4.1.0+版本之后默认 master 分支将不支持国际化,有需要的请使用i18n分支,它会和 master 保持同步更新

该项目不支持低版本浏览器(如 ie),有需求请自行添加 polyfill 详情

目前版本为 v4.0+ 基于 vue-cli 进行构建,若发现问题,欢迎提issue。若你想使用旧版本,可以切换分支到tag/3.11.0,它不依赖 vue-cli

功能

- 登录 / 注销
- 权限验证
  - 页面权限
  - 指令权限
  - 权限配置
  - 二步登录
- 多环境发布
  - dev sit stage prod
- 全局功能
  - 国际化多语言
  - 多种动态换肤
  - 动态侧边栏(支持多级路由嵌套)
  - 动态面包屑
  - 快捷导航(标签页)
  - Svg Sprite 图标
  - 本地/后端 mock 数据
  - Screenfull全屏
  - 自适应收缩侧边栏
- 编辑器
  - 富文本
  - Markdown
  - JSON 等多格式
- Excel
  - 导出excel
  - 导入excel
  - 前端可视化excel
  - 导出zip
- 表格
  - 动态表格
  - 拖拽表格
  - 内联编辑
- 错误页面
  - 401
  - 404
- 組件
  - 头像上传
  - 返回顶部
  - 拖拽Dialog
  - 拖拽Select
  - 拖拽看板
  - 列表拖拽
  - SplitPane
  - Dropzone
  - Sticky
  - CountTo
- 综合实例
- 错误日志
- Dashboard
- 引导页
- ECharts 图表
- Clipboard(剪贴复制)
- Markdown2html

开发

# 克隆项目
git clone https://github.com/PanJiaChen/vue-element-admin.git
# 进入项目目录
cd vue-element-admin
# 安装依赖
npm install
# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npm.taobao.org
# 启动服务
npm run dev

这会自动打开 http://localhost:9527

发布

# 构建测试环境
npm run build:stage
# 构建生产环境
npm run build:prod

其它

# 预览发布环境效果
npm run preview
# 预览发布环境效果 + 静态资源分析
npm run preview -- --report
# 代码格式检查
npm run lint
# 代码格式检查并自动修复
npm run lint -- --fix

请参阅使用文档了解更多信息。

更新日志

每个版本的详细变更记录在发行说明中。

在线演示

预览

浏览器支持

现代浏览器和Internet Explorer 10+。

捐赠

如果你觉得这个项目很有用,你可以买一杯果汁:tropical_drink:

Paypal Me

Buy me a coffee

许可证

MIT

版权所有(c)2017-至今 PanJiaChen

Overview

Name With OwnerPanJiaChen/vue-element-admin
Primary LanguageVue
Program languageJavaScript (Language Count: 6)
PlatformLinux, Mac, Windows
License:MIT License
Release Count49
Last Release Name4.4.0 (Posted on )
First Release Namev1.0.0 (Posted on )
Created At2017-04-17 03:35:49
Pushed At2024-04-27 08:35:38
Last Commit At2022-04-11 11:32:06
Stargazers Count86.4k
Watchers Count2.2k
Fork Count30.3k
Commits Count1k
Has Issues Enabled
Issues Count3576
Issue Open Count1230
Pull Requests Count312
Pull Requests Open Count111
Pull Requests Close Count163
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

English, 简体中文, 日本語, Spanish

Introduction

vue-element-admin is a production-ready front-end solution for admin interfaces. It is based on vue and uses the UI Toolkit element-ui.

vue-element-admin is based on the newest development stack of vue and it has a built-in i18n solution, typical templates for enterprise applications, and lots of awesome features. It helps you build large and complex Single-Page Applications. I believe whatever your needs are, this project will help you.

After the v4.1.0+ version, the default master branch will not support i18n. Please use i18n Branch, it will keep up with the master update

The current version is v4.0+ build on vue-cli. If you find a problem, please put issue. If you want to use the old version , you can switch branch to tag/3.11.0, it does not rely on vue-cli

This project does not support low version browsers (e.g. IE). Please add polyfill by yourself.

Preparation

You need to install node and git locally. The project is based on ES2015+, vue, vuex, vue-router, vue-cli , axios and element-ui, all request data is simulated using Mock.js.
Understanding and learning this knowledge in advance will greatly help the use of this project.

Sponsors

Become a sponsor and get your logo on our README on GitHub with a link to your site. (https://www.patreon.com/panjiachen)

Admin Dashboard Templates made with Vue, React and Angular.

Features

- Login / Logout

- Permission Authentication
  - Page permission
  - Directive permission
  - Permission configuration page
  - Two-step login

- Multi-environment build
  - dev sit stage prod

- Global Features
  - I18n
  - Multiple dynamic themes
  - Dynamic sidebar (supports multi-level routing)
  - Dynamic breadcrumb
  - Tags-view (Tab page Support right-click operation)
  - Svg Sprite
  - Mock data
  - Screenfull
  - Responsive Sidebar

- Editor
  - Rich Text Editor
  - Markdown Editor
  - JSON Editor

- Excel
  - Export Excel
  - Upload Excel
  - Visualization Excel
  - Export zip

- Table
  - Dynamic Table
  - Drag And Drop Table
  - Inline Edit Table

- Error Page
  - 401
  - 404

- Components
  - Avatar Upload
  - Back To Top
  - Drag Dialog
  - Drag Select
  - Drag Kanban
  - Drag List
  - SplitPane
  - Dropzone
  - Sticky
  - CountTo

- Advanced Example
- Error Log
- Dashboard
- Guide Page
- ECharts
- Clipboard
- Markdown to html

Getting started

# clone the project
git clone https://github.com/PanJiaChen/vue-element-admin.git

# enter the project directory
cd vue-element-admin

# install dependency
npm install

# develop
npm run dev

This will automatically open http://localhost:9527

Build

# build for test environment
npm run build:stage

# build for production environment
npm run build:prod

Advanced

# preview the release environment effect
npm run preview

# preview the release environment effect + static resource analysis
npm run preview -- --report

# code format check
npm run lint

# code format check and auto fix
npm run lint -- --fix

Refer to Documentation for more information

Changelog

Detailed changes for each release are documented in the release notes.

Online Demo

Preview

If you find this project useful, you can buy author a glass of juice :tropical_drink:

donate

Paypal Me

Buy me a coffee

Browsers support

Modern browsers and Internet Explorer 10+., IE / Edge, Firefox, Chrome, Safari, ---------, ---------, ---------, ---------, IE10, IE11, Edge, last 2 versions, last 2 versions, last 2 versions

License

MIT

Copyright (c) 2017-present PanJiaChen

To the top