README.md 7.7 KB
Newer Older
花裤衩 已提交
1
<p align="center">
花裤衩 已提交
2
  <img width="320" src="https://wpimg.wallstcn.com/ecc53a42-d79b-42e2-8852-5126b810a4c8.svg">
花裤衩 已提交
3 4
</p>

花裤衩 已提交
5
<p align="center">
6
  <a href="https://github.com/vuejs/vue">
P
docs  
Pan 已提交
7
    <img src="https://img.shields.io/badge/vue-2.5.17-brightgreen.svg" alt="vue">
8 9
  </a>
  <a href="https://github.com/ElemeFE/element">
P
Pan 已提交
10
    <img src="https://img.shields.io/badge/element--ui-2.4.11-brightgreen.svg" alt="element-ui">
11 12 13 14 15 16 17 18 19 20
  </a>
  <a href="https://travis-ci.org/PanJiaChen/vue-element-admin" rel="nofollow">
    <img src="https://travis-ci.org/PanJiaChen/vue-element-admin.svg?branch=master" alt="Build Status">
  </a>
  <a href="https://github.com/PanJiaChen/vue-element-admin/blob/master/LICENSE">
    <img src="https://img.shields.io/github/license/mashape/apistatus.svg" alt="license">
  </a>
  <a href="https://github.com/PanJiaChen/vue-element-admin/releases">
    <img src="https://img.shields.io/github/release/PanJiaChen/vue-element-admin.svg" alt="GitHub release">
  </a>
P
docs  
Pan 已提交
21 22 23 24 25 26
  <a href="https://gitter.im/vue-element-admin/discuss">
    <img src="https://badges.gitter.im/Join%20Chat.svg" alt="gitter">
  </a>
  <a href="https://panjiachen.github.io/vue-element-admin-site/donate">
    <img src="https://img.shields.io/badge/%24-donate-ff69b4.svg" alt="donate">
  </a>
花裤衩 已提交
27
</p>
花裤衩 已提交
28

花裤衩 已提交
29
English | [简体中文](./README.zh-CN.md)
花裤衩 已提交
30

花裤衩 已提交
31
## Introduction
花裤衩 已提交
32

P
Pan 已提交
33
[vue-element-admin](http://panjiachen.github.io/vue-element-admin) is a front-end management background integration solution. It based on [vue](https://github.com/vuejs/vue) and use the UI Toolkit [element](https://github.com/ElemeFE/element).
P
Pan 已提交
34

P
Pan 已提交
35
It is a magical vue admin based on the newest development stack of vue, built-in i18n solution, typical templates for enterprise applications, lots of awesome features. It helps you build a large complex Single-Page Applications. I believe whatever your needs are, this project will help you.
P
refine  
Pan 已提交
36

P
docs  
Pan 已提交
37
**[v4.0](https://github.com/PanJiaChen/vue-element-admin/tree/v4.0) has in beta. It built on vue-cli@3, optimized a lot of code and added a lot of new features. Welcome to use and make suggestions.**
P
docs  
Pan 已提交
38

花裤衩 已提交
39
- [Preview](http://panjiachen.github.io/vue-element-admin)
P
Pan 已提交
40

P
Pan 已提交
41
- [Documentation](https://panjiachen.github.io/vue-element-admin-site/)
P
refine  
Pan 已提交
42

P
Pan 已提交
43 44
- [Gitter](https://gitter.im/vue-element-admin/discuss)

P
Pan 已提交
45
- [Wiki](https://github.com/PanJiaChen/vue-element-admin/wiki)
P
Pan 已提交
46

P
Pan 已提交
47
- [Donate](https://panjiachen.github.io/vue-element-admin-site/donate/)
花裤衩 已提交
48

P
Pan 已提交
49 50
- [Gitee](https://panjiachen.gitee.io/vue-element-admin/) 国内用户可访问该地址在线预览

P
Pan 已提交
51
**This project is positioned as a background integration solution and is not suitable for secondary development as a basic template.**
T
ttop5 已提交
52

53
- Base template recommends using: [vue-admin-template](https://github.com/PanJiaChen/vue-admin-template)
P
Pan 已提交
54
- Desktop: [electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin)
55
- Typescript: [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (Credits: [@Armour](https://github.com/Armour))
P
Pan 已提交
56 57 58 59 60 61

**This project does not support low version browsers (e.g. IE). Please add polyfill yourself if you need them.**

**Note: This project uses element-ui@2.3.0+ version, so the minimum compatible vue@2.5.0+**

**Start using `webpack4` from `v3.8.0`. If you still want to continue using `webpack3`, please use this branch [webpack3](https://github.com/PanJiaChen/vue-element-admin/tree/webpack3)**
P
Pan 已提交
62

花裤衩 已提交
63
## Preparation
P
Pan 已提交
64

P
Pan 已提交
65
You need to install [node](http://nodejs.org/) and [git](https://git-scm.com/) locally. The project is based on [ES2015+](http://es6.ruanyifeng.com/), [vue](https://cn.vuejs.org/index.html), [vuex](https://vuex.vuejs.org/zh-cn/), [vue-router](https://router.vuejs.org/zh-cn/), [axios](https://github.com/axios/axios) and [element-ui](https://github.com/ElemeFE/element), all request data is simulated using [Mock.js](https://github.com/nuysoft/Mock).
P
Pan 已提交
66
Understanding and learning this knowledge in advance will greatly help the use of this project.
P
Pan 已提交
67

P
Pan 已提交
68
---
P
Pan 已提交
69

70 71 72
 <p align="center">
  <img width="900" src="https://wpimg.wallstcn.com/a5894c1b-f6af-456e-82df-1151da0839bf.png">
</p>
P
refine  
Pan 已提交
73

P
Pan 已提交
74 75 76 77 78
## Sponsors
Become a sponsor and get your logo on our README on GitHub with a link to your site. [[Become a sponsor]](https://www.patreon.com/panjiachen)

<a href="https://flatlogic.com/admin-dashboards?from=vue-element-admin"><img width="150px" src="https://wpimg.wallstcn.com/9c0b719b-5551-4c1e-b776-63994632d94a.png" /></a><p>Admin Dashboard Templates made with Vue, React and Angular.</p>

花裤衩 已提交
79
## Features
P
Pan 已提交
80

花裤衩 已提交
81 82
```
- Login / Logout
P
Pan 已提交
83 84 85 86 87 88

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

花裤衩 已提交
89
- Multi-environment build
P
Pan 已提交
90 91 92 93 94 95 96
  - dev sit stage prod

- Global Features
  - I18n
  - Multiple dynamic themes
  - Dynamic sidebar (supports multi-level routing)
  - Dynamic breadcrumb
N
Nikita Sobolev 已提交
97
  - Tags-view (Tab page Support right-click operation)
P
Pan 已提交
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
  - Svg Sprite
  - Mock data
  - Screenfull
  - Responsive Sidebar

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

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

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

- Error Page
  - 401
  - 404

- Components
  - Avatar Upload
  - Back To Top
  - Drag Dialog
128
  - Drag Select
P
Pan 已提交
129 130 131 132 133 134 135 136 137
  - Drag Kanban
  - Drag List
  - SplitPane
  - Dropzone
  - Sticky
  - CountTo

- Advanced Example
- Error Log
P
Pan 已提交
138
- Dashboard
花裤衩 已提交
139
- Guide Page
P
Pan 已提交
140
- ECharts
花裤衩 已提交
141
- Clipboard
142
- Markdown to html
花裤衩 已提交
143 144 145
```

## Getting started
P
refine  
Pan 已提交
146

P
refine  
Pan 已提交
147
```bash
P
Pan 已提交
148
# clone the project
花裤衩 已提交
149
git clone https://github.com/PanJiaChen/vue-element-admin.git
P
refine  
Pan 已提交
150

花裤衩 已提交
151 152
# install dependency
npm install
P
refine  
Pan 已提交
153

花裤衩 已提交
154 155
# develop
npm run dev
P
refine  
Pan 已提交
156
```
P
refine  
Pan 已提交
157

花裤衩 已提交
158 159 160
This will automatically open http://localhost:9527.

## Build
P
Pan 已提交
161

P
Pan 已提交
162
```bash
花裤衩 已提交
163 164
# build for test environment
npm run build:sit
165

花裤衩 已提交
166 167
# build for production environment
npm run build:prod
168 169
```

花裤衩 已提交
170
## Advanced
P
Pan 已提交
171

172
```bash
花裤衩 已提交
173 174
# --report to build with bundle size analytics
npm run build:prod --report
P
refine  
Pan 已提交
175

花裤衩 已提交
176 177 178
# --generate a bundle size analytics. default: bundle-report.html
npm run build:prod --generate_report

花裤衩 已提交
179 180
# --preview to start a server in local to preview
npm run build:prod --preview
P
Pan 已提交
181

花裤衩 已提交
182 183
# lint code
npm run lint
P
refine  
Pan 已提交
184

花裤衩 已提交
185 186
# auto fix
npm run lint -- --fix
P
refine  
Pan 已提交
187 188
```

P
Pan 已提交
189
Refer to [Documentation](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) for more information
花裤衩 已提交
190

P
Pan 已提交
191
## Changelog
P
Pan 已提交
192

P
Pan 已提交
193 194
Detailed changes for each release are documented in the [release notes](https://github.com/PanJiaChen/vue-element-admin/releases).

195
## Online Demo
P
Pan 已提交
196

花裤衩 已提交
197
[Preview](http://panjiachen.github.io/vue-element-admin)
P
Pan 已提交
198 199

## Donate
P
Pan 已提交
200

花裤衩 已提交
201 202 203 204 205
If you find this project useful, you can buy author a glass of juice :tropical_drink:

![donate](https://wpimg.wallstcn.com/bd273f0d-83a0-4ef2-92e1-9ac8ed3746b9.png)

[Paypal Me](https://www.paypal.me/panfree23)
花裤衩 已提交
206

花裤衩 已提交
207 208
[Buy me a coffee](https://www.buymeacoffee.com/Pan)

P
Pan 已提交
209 210 211 212 213 214 215 216
## Browsers support

Modern browsers and Internet Explorer 10+.

| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari |
| --------- | --------- | --------- | --------- |
| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions

花裤衩 已提交
217 218
## License

花裤衩 已提交
219 220
[MIT](https://github.com/PanJiaChen/vue-element-admin/blob/master/LICENSE)

P
Pan 已提交
221
Copyright (c) 2017-present PanJiaChen