gukun00 / vue-element-admin-tpl

vue + element-ui 后台模板

Home Page:http://vadmin.lanyueos.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-element-admin-tpl

基于vue + element-ui开发的后端管理系统模板。

  • vue
  • vue-router
  • axios
  • element-ui
  • nprogress
  • 使用了 FontAwesome 4.7.0 的图标

src/m 目录下收藏了些本人工作时开发的一些组件,欢迎使用与提建议;使用方法请看对应的README.md说明文档。

注:布局采用了 display:flex 实现,在IE上可能会出现一些不愉快的事情。

实现组件

页面

截图

截图

截图

截图

关于打包

对于打包,如果你使用git管理,推荐使用 npm run publish 命令进行打包,这样的的话打包前会执行更新 package.json 中的version字段; 打包时会挂载 APP_INFO 对象到 window 对象上,在vue组件中可以直接 window.APP_INFO 访问版本信息。

window.APP_INFO

// window.APP_INFO对象大致内容

{
  projectName: pkg.name,
  version: pkg.version,
  description: pkg.description,
  author: pkg.author,
  appName: pkg.app && pkg.app.name || pkg.appName,
  dependencies: pkg.dependencies,
  engines: pkg.engines,
  license: pkg.license,

  // 如果是npm run publish打包会存在下面两个字段
  // 打包时间
  date: '',
  // 本次打包MD5
  md5: ''
}

为什这么做? 方便知道谁,什么时候打的包

案例

1、浙中牛牛(预览版) 账号:admin 密码:123456 (请不要乱改数据)

浙中牛牛 预览版

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

About

vue + element-ui 后台模板

http://vadmin.lanyueos.com


Languages

Language:Vue 53.7%Language:JavaScript 33.7%Language:CSS 11.5%Language:HTML 1.0%