vue-admin-beautiful An excellent general-purpose, middle and back-end front-end framework based on vue+element-uiAn excellent general-purpose, middle and background front-end framework based on Vue + element UI
# Cloning project
git clone https://github.com/chuzhixin/vue-admin-beautiful.git
# Into the project directory
cd VUE-ADMIN-Beautiful
# install dependencies
above sea level and
# Local development projects started
npm run serve
# Clone project
git clone https://github.com/chuzhixin/vue-admin-beautiful.git
# Enter project directory
cd vue-admin-beautiful
# Installation dependency
above sea level and
# Start project
npm run serve
No matter you add it or not, you can enjoy the open source code. Thank you for your support and trust. The group provides the basic version of vue-admin-beautiful-template and detailed basic usage documents. It is suitable for the framework to get started quickly.
/**
* @copyright chuzhixin 1204505056@qq.com
* @description global variable configuration
*/
module . exports = {
// URL
during development and deployment publicPath : "" ,
// The directory name of the production environment build file
outputDir : " dist" ,
// The directory (relative to outputDir) where the generated static resources (js, css, img, fonts) are placed.
assetsDir : "static" ,
// Whether to output eslint compilation warning every time the development environment is saved
lintOnSave : true ,
// compile dependencies
transpileDependencies : [ "vue-echarts" , "resize-detector", "zx-layouts" ] ,
// If the default interface address is vab-mock-server for development environment and production environment, of course you can also choose to configure your own interface address
baseURL :
process . env . NODE_ENV === "development" || process . env . NODE_ENV === "preview"
? "vab-mock-server"
: "http://your.website.com" ,
//Title (including the title page of the first loaded
Snowscreen Title browser title) title : "vue-admin-beautiful" ,
//
abbreviation : "vab" ,
//development environment port number
devPort :"80",
// version number
Version : Process . Env . VUE_APP_VERSION ,
// please retain the package.json authors retain copyright information free of commercial
Copyright : Process . Env . VUE_APP_AUTHOR ,
// whether to show the bottom of the page copyright information, it is recommended that you show, of course, your You can also choose not to display, whether you are a paid user or an unpaid user, you have the right to choose to display or not to display
footerCopyright : process . Env . NODE_ENV !== "development" ? True : false ,
//Whether to display the upper right corner github Icon
githubCorner : process . Env . NODE_ENV!== "development" ? true : false ,
//Whether to display the top progress bar
progressBar : true ,
//Maximum number of cached routes
keepAliveMaxNum : 99 ,
// Route mode, optional value is history or hash
routerMode : "hash" ,
//
RoutesWhiteList without token verification : [ "/login" , "/register" , "/404" , "/401" ] ,
//Display text when loading
loadingText : "Loading..." ,
//token name
tokenName : "accessToken",
//The name of the key stored by the token in localStorage, sessionStorage, and cookie
tokenTableName : "vue-admin-beautiful" ,
//
Token storage location localStorage sessionStorage cookie storage : "localStorage" ,
//Whether the token is invalidated and returned to the login page Record this route
recordRoute : true ,
//Whether to display the logo, set false when it is not displayed, fill in the remixIcon icon name when displaying it, temporarily only support remixIcon
logo : "vuejs-fill" ,
//Whether the national header is fixed fixed NoFixed
header : "fixed" ,
//horizontal vertical
layout : "vertical" ,
//whether to enable the theme configuration button
themeBar : true,
//Whether to display the multi-tab page
tagsBar : true ,
//Whether to display the skeleton screen
skeleton : false ,
//With back-end data receiving method application/json;charset=UTF-8 or application/x-www-form-urlencoded ;charset=UTF-8
contentType : "application/json;charset=UTF-8" ,
//The disappearing time of the message box
messageDuration : 3000 ,
//The longest request time
requestTimeout : 5000 ,
//Operation is normal code
successCode : 200 ,
/ /Login invalid code
invalidCode : 402 ,
//No permission code
noPermissionCode : 401,
//Whether to display the highlight error on the page
errorLog : [ "development" , "test" , "production" ] ,
//Whether to enable login interception
loginInterception : true ,
//Whether to enable login RSA encryption
loginRSA : false ,
//
Yes Generate webstorm HTTP Request request file httpRequestFile : false ,
//intelligence and all
based on mock data . The former back-end permissions only control permissions and not the import of view files (front-end and back-end cooperation to reduce back-end workload), the all method is complete Handed over to the back-end front-end is only responsible for loading authentication : "intelligence" ,
//Whether to keep only one sub-menu expanded
during the vertical layout uniqueOpened : true ,
//The menu path that is expanded by default during vertical layout. It is recommended to expand only one
defaultOopeneds separated by a comma : [ "/vab" ] ,
//The request to add a loading layer is required to prevent repeated submission of
debounce : [ "doEdit" ] ,
// The module
providePlugin that needs to be automatically injected and loaded : { maptalks : "maptalks" , "window.maptalks" : "maptalks" } ,
//Whether the 7z compressed package is automatically generated when npm run build
build7z : false ,
//The code generator is generated in The name of the folder under view
templateFolder : "project" ,
} ;
/* *
* @copyright chuzhixin 1204505056@qq.com
* @description Global theme variable configuration, the VIP document provides a variety of beautiful color schemes (ant-design style, layui style, iview style), please check the VIP document theme configuration article
*/ /* stylelint-disable */ @charset " utf-8 " ;
// Frame default theme color $base-color-default : #1890ff ;
// Default level $base-z-index : 999 ;
// Horizontal layout Menu background color in vertical layout $base-menu-background : #001529 ;
// Menu text color $base-menu-color : hsla ( 0 , 0 %
, 100 % , 0.95 );
// Menu selected text color
$base-menu-color-active : hsla ( 0 , 0 % , 100 % , 0.95 );
// Menu selected background color
$base-menu-background-active : $base-color-default ;
// title color
$base-title-color : #fff ;
// font size configuration
$base-font-size-small : 12 px ;
$base-font-size-default : 14 px ;
$base-font-size-big: 16px;
$base-font-size-bigger: 18px;
$base-font-size-max: 22px;
$base-font-color: #606266;
$base-color-blue: $base-color-default;
$base-color-green: #13ce66;
$base-color-white: #fff;
$base-color-black: #000;
$base-color-yellow: #ffba00;
$base-color-orange: #ff6700;
$base-color-red : #ff4d4f ;
$base-color-gray : rgba ( 0 , 0 , 0 , 0.65 );
$base-main-width : 1279 px ;
$base-border-radius : 2 px ;
$base -border-color : #dcdfe6 ;
// input box height
$base-input-height : 32 px ;
// default paddiing
$base-padding : 20 px ;
// default shadow
$base-box-shadow :0 1 px 4 px rgba ( 0 , 21 , 41 , 0.08 );
// The height of top-bar, logo and first-level menu in horizontal layout
$base-top-bar-height : 65 px ;
// logo in vertical layout The height of
$base-logo-height : 75 px ;
// the height of the nav-bar at the top
$base-nav-bar-height : 60 px ;
// the height of the tags-bar of the top multi-tab page
$base-tags-bar- height : 55 px ;
// The height of each item in the tags-bar of the top multi-tab page
$base-tag-item-height: 34 px ;
// The height of the menu li label
$base-menu-item-height : 50 px ;
// The height of the app-main
$base-app-main-height : calc (
100vh - #{$base-nav-bar-height} - #{$base-tags-bar-height} -
#{$base-padding} - #{$base-padding} - 55px - 30px
);
// The width of the left navigation when the left navigation is not collapsed in the vertical layout
$base-left-menu-width : 230 px ;
// The width of the right content when the left navigation is not collapsed in the vertical layout
$base-right-content-width : calc ( 100 % - #{ $base-left-menu-width } );
//The
width when the left navigation is folded in vertical layout $base-left-menu-width-min : 65 px ;
//In vertical layout The width of the right content when the left navigation is collapsed
$base-right-content-width-min : calc ( 100 % - #{ $base-left-menu-width-min } );
// default animation
$base-transition: all 0.2 s ;
// default animation duration
$base-transition-time : 0.2 s ;
:export {
// Export the
menu text color variable menu-color : $base-menu-color ;
// Export the
menu selected text color variable menu-color-active : $base-menu-color-active ;
// Export the menu background color variable
menu- background : $base-menu-background ;
// Export the background color variable of the menu selected
menu-background-active : $base-menu-background-active ;
// Export the background color variable of the multi-tab page
tag-background-active : $base -color-blue ;
//The default button background color variable export
button-background : $base-color-blue ;
// Paging selected background color variable export
pagination-background-active: $base-color-blue;
}
import Vue from "vue";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/display.css";
import "@/styles/element-variables.scss";
Vue . Use ( ElementUI , {
size : "small" , // The size of element-ui components is divided into large, default, small, mini
} ) ;
The framework is free for commercial use on the premise that the authorโs copyright information is reserved. All the code of the framework includes the source code content in the npm package is free and open. If you are willing to support me or want to become your own copyright information, you need to pay 299 If you are willing to join the VIP group to study, you need to pay 100 yuan. This is all on your voluntary basis. If you feel that the framework is worthless, please skip it directly, raise your hands and let me go, donโt maliciously write bad reviews. I hope that everyone who uses vue-admin-beautiful will have a happy ending no matter what the process is. Contact QQ 1204505056
No matter you add it or not, you can enjoy the open source code. Thank you for your support and trust. The group provides the basic version of vue-admin-beautiful-template and detailed basic usage documents. It is suitable for the framework to get started quickly.
Author: chuzhixin
Live Demo: https://chu1204505056.gitee.io/vue-admin-beautiful/#/
GitHub: https://github.com/chuzhixin/vue-admin-beautiful
#vuejs #vue #vue-js #javascript