├── .browserslistrc ├── vue.config.js ├── babel.config.js ├── public ├── favicon.ico └── index.html ├── src ├── assets │ ├── logo.png │ ├── login-bg.jpg │ └── common.pcss ├── views │ ├── About.vue │ ├── Login.vue │ └── Home.vue ├── main.js ├── App.vue ├── router.js └── components │ ├── Master.vue │ └── Layout.vue ├── postcss.config.js ├── .gitignore ├── README.md └── package.json /.browserslistrc: -------------------------------------------------------------------------------- 1 | > 1% 2 | last 2 versions 3 | not ie <= 8 4 | -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | baseUrl: 'iview-layoutui' 3 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/app' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangwei900808/iview-layoutui/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangwei900808/iview-layoutui/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /src/assets/login-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangwei900808/iview-layoutui/HEAD/src/assets/login-bg.jpg -------------------------------------------------------------------------------- /src/views/About.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | "postcss-import": {}, 4 | "postcss-cssnext": {} 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | 14 | # Editor directories and files 15 | .idea 16 | .vscode 17 | *.suo 18 | *.ntvs* 19 | *.njsproj 20 | *.sln 21 | *.sw* 22 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | import router from './router' 4 | 5 | Vue.config.productionTip = false 6 | 7 | import iView from 'iview'; 8 | import 'iview/dist/styles/iview.css'; 9 | 10 | Vue.use(iView); 11 | 12 | new Vue({ 13 | router, 14 | render: h => h(App) 15 | }).$mount('#app') 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # iview-layoutui 2 | 3 | ## Project setup 4 | ``` 5 | yarn install 6 | ``` 7 | 8 | ### Compiles and hot-reloads for development 9 | ``` 10 | yarn run serve 11 | ``` 12 | 13 | ## Layout.vue 14 | 该组件是整个项目的框架UI,详细请查看代码。 15 | 16 | ## Master.vue 17 | 该组件是内容区域通用页面,我已经使用Slot设计好样式已经统一,你们只要往里面放相应的标题、按钮、表格、分页就好。 18 | 19 | ### Customize configuration 20 | See [Configuration Reference](https://cli.vuejs.org/config/). 21 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 28 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | iview-layoutui 9 | 10 | 11 | 14 |
15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iview-layoutui", 3 | "version": "0.1.0", 4 | "private": true, 5 | "homepage": "http://awbeci.xyz/iview-layoutui/", 6 | "scripts": { 7 | "serve": "vue-cli-service serve", 8 | "build": "vue-cli-service build", 9 | "predeploy": "npm run build", 10 | "deploy": "gh-pages -d dist" 11 | }, 12 | "dependencies": { 13 | "iview": "^3.1.5", 14 | "vue": "^2.5.17", 15 | "vue-router": "^3.0.1" 16 | }, 17 | "devDependencies": { 18 | "@vue/cli-plugin-babel": "^3.2.0", 19 | "@vue/cli-service": "^3.2.0", 20 | "gh-pages": "^2.0.1", 21 | "postcss-calc": "^7.0.1", 22 | "postcss-cssnext": "^3.1.0", 23 | "postcss-import": "^12.0.1", 24 | "vue-template-compiler": "^2.5.17" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/router.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Router from 'vue-router' 3 | import Home from './views/Home.vue' 4 | 5 | Vue.use(Router) 6 | 7 | export default new Router({ 8 | // mode: 'history', 9 | routes: [ 10 | { 11 | path: '/', 12 | name: 'home', 13 | component: () => import('@/components/Layout'), 14 | children:[ 15 | { 16 | path: '', 17 | name: 'home', 18 | component: () => import('@/views/Home') 19 | }, 20 | { 21 | path: '/home', 22 | name: 'test', 23 | component: () => import('@/views/Home') 24 | } 25 | ] 26 | }, 27 | { 28 | path:'/login', 29 | name:'login', 30 | meta:{ 31 | title:'登录', 32 | }, 33 | component: () => import('@/views/Login') 34 | }, 35 | ] 36 | }) 37 | -------------------------------------------------------------------------------- /src/assets/common.pcss: -------------------------------------------------------------------------------- 1 | .content-wrapper { 2 | & >>>.ivu-table th{ 3 | background-color: #0062c6 !important; 4 | color: #fff !important; 5 | } 6 | 7 | /**状态前面小圆点样式*/ 8 | & >>> .red-cir { 9 | width: 11px; 10 | height: 11px; 11 | display: inline-block; 12 | background: #e74c3c; 13 | border-radius: 50% 50%; 14 | margin-right: 5px; 15 | } 16 | 17 | & >>> .green-cir { 18 | width: 11px; 19 | height: 11px; 20 | display: inline-block; 21 | background: #19be6b; 22 | border-radius: 50% 50%; 23 | margin-right: 5px; 24 | } 25 | 26 | & >>> .ivu-dropdown-item{ 27 | transition: unset !important; 28 | &:hover { 29 | background: #008CEE !important; 30 | color:#fff !important; 31 | } 32 | } 33 | & >>> .ivu-select-item{ 34 | transition: unset !important; 35 | &:hover { 36 | background: #008CEE !important; 37 | color:#fff !important; 38 | } 39 | } 40 | & >>> .ivu-select-item-focus{ 41 | background: #fff !important; 42 | color:#008CEE !important; 43 | font-weight:bold; 44 | } 45 | } 46 | 47 | .dd-menu{ 48 | & >>> .ivu-dropdown-item{ 49 | transition: unset !important; 50 | &:hover { 51 | background: #008CEE !important; 52 | color:#fff !important; 53 | } 54 | } 55 | } -------------------------------------------------------------------------------- /src/views/Login.vue: -------------------------------------------------------------------------------- 1 | 27 | 56 | 84 | 85 | -------------------------------------------------------------------------------- /src/components/Master.vue: -------------------------------------------------------------------------------- 1 | 68 | 106 | 126 | -------------------------------------------------------------------------------- /src/views/Home.vue: -------------------------------------------------------------------------------- 1 | 6 | 62 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /src/components/Layout.vue: -------------------------------------------------------------------------------- 1 | 279 | 433 | 1036 | --------------------------------------------------------------------------------