Skip to content

Commit 735d4c1

Browse files
committed
更新初始版本
1 parent 5b50e10 commit 735d4c1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+23519
-1
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"plugins": ["@babel/plugin-syntax-dynamic-import"]
3+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,4 @@ typings/
5959

6060
# next.js build output
6161
.next
62+
dist/

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
1-
# visamt
1+
# visamt
2+
> visamt = vue-iview-self-adaption-manage-template
3+
4+
Vue+iView的一套自适应后台管理基础模板
5+
6+
# 演示
7+
8+
## PC端
9+
![visamt-1.png](./images/visamt-1.png)
10+
## 移动端
11+
![visamt-1.png](./images/visamt-2.png)
12+
13+
# 交流讨论
14+
QQ群:30261540
15+
16+
[点我快捷加入QQ群讨论](https://shang.qq.com/wpa/qunwpa?idkey=c3541f1d0dbe443456228e3aebf23f6795b614a94d5df6a32f0b2b1c759bb99b)
17+
18+

cypress.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"pluginsFile": "tests/e2e/plugins/index.js"
3+
}

images/visamt-1.png

297 KB
Loading

images/visamt-2.png

128 KB
Loading

package-lock.json

Lines changed: 12679 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"name": "visamt",
3+
"version": "0.0.1",
4+
"description": "Vue+iView的一套自适应后台管理基础模板",
5+
"author": "Licoy",
6+
"license": "MIT",
7+
"private": false,
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/Licoy/visamt"
11+
},
12+
"scripts": {
13+
"dev": "vue-cli-service serve --open --port=1002",
14+
"build": "vue-cli-service build",
15+
"lint": "vue-cli-service lint",
16+
"test:unit": "vue-cli-service test:unit",
17+
"test:e2e": "vue-cli-service test:e2e"
18+
},
19+
"dependencies": {
20+
"axios": "^0.18.0",
21+
"dayjs": "^1.7.5",
22+
"iview": "^3.4.2",
23+
"js-base64": "^2.5.1",
24+
"js-cookie": "^2.2.0",
25+
"js-md5": "^0.7.3",
26+
"qrcode": "^1.3.3",
27+
"string-format": "^2.0.0",
28+
"vue": "^2.5.10",
29+
"vue-i18n": "^7.8.0",
30+
"vue-router": "^3.0.1",
31+
"vuex": "^3.0.1"
32+
},
33+
"devDependencies": {
34+
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
35+
"@vue/cli-plugin-babel": "^3.0.1",
36+
"@vue/cli-plugin-eslint": "^3.0.1",
37+
"@vue/cli-plugin-unit-mocha": "^3.0.1",
38+
"@vue/cli-service": "^3.0.1",
39+
"@vue/eslint-config-standard": "^3.0.0-beta.10",
40+
"@vue/test-utils": "^1.0.0-beta.10",
41+
"chai": "^4.1.2",
42+
"eslint-plugin-cypress": "^2.0.1",
43+
"less": "^2.7.3",
44+
"less-loader": "^4.0.5",
45+
"lint-staged": "^6.0.0",
46+
"mockjs": "^1.0.1-beta3",
47+
"vue-template-compiler": "^2.5.13"
48+
},
49+
"browserslist": [
50+
"> 1%",
51+
"last 2 versions",
52+
"not ie <= 8"
53+
]
54+
}

public/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<title>vue-iview-self-adaption-manage-template</title>
7+
<meta name="keywords" content=""/>
8+
<meta name="description" content=""/>
9+
<meta content="yes" name="apple-mobile-web-app-capable">
10+
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
11+
</head>
12+
<body>
13+
<noscript>
14+
<strong>We're sorry but iview-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
15+
</noscript>
16+
<div id="app"></div>
17+
<!-- built files will be auto injected -->
18+
</body>
19+
</html>

src/App.vue

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<template>
2+
<div id="app">
3+
<router-view/>
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
name: 'App'
10+
}
11+
</script>
12+
13+
<style lang="less">
14+
.size{
15+
width: 100%;
16+
height: 100%;
17+
}
18+
html,body{
19+
.size;
20+
overflow: hidden;
21+
margin: 0;
22+
padding: 0;
23+
}
24+
#app {
25+
.size;
26+
}
27+
</style>

src/assets/icons/iconfont.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
@font-face {font-family: "iconfont";
2+
src: url('iconfont.eot?t=1550653183289'); /* IE9 */
3+
src: url('iconfont.eot?t=1550653183289#iefix') format('embedded-opentype'), /* IE6-IE8 */
4+
url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAV8AAsAAAAACiwAAAUuAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDKgqHPIY0ATYCJAMUCwwABCAFhG0HXRvNCBFVpLuQ/Shw2wfOiU6fp9RR2XIZlZP853HTPze29KVqBhODIBM3Ohc6NYFsX1zxe+cssFEn1NBVmPqRwrz0JwW8XUcNEEBA9+CY6dIaLM+2dolMigjabICjAQ8ooq1Apq//wvjD2KVlngcCwBCJdFB9YzsDZAhQpxEAGj5kUB/IEQuEAjJB1ksZawXQSoiQuUXcYwArnL+nb5BLMsBB5KHO7TSwoT+qP+c+L+ZtLpvT3UJA2p0LAL0J4AGkAxAAGprp6Q/ei6eDBxOzBRQDkDUXB3QVT/u82OXCmFTZUsSFGob+4XEQwAMkQdW4Q101TgjA55zBBAI+T1UjqU2Dkm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dwApJoHgHg7BhxP14Dn7QlSwL4HokDfgcQ7Hxg1vz0VidVZHUMJSur7oyF6HIxul8wtPcAuneKw3KFcwK86RDmZ2fFUgQHcxYJxb7sbL4YG8thTI7gMXTfSaB4baFkNFpnyrKyBWR9a9Rt7J1OHgSKgRPr6IUNoo4GxOoss8fsHYC06Chc0FQUvgL3UvZMcmbIrIAvNUKnpVAaP82btjCcMnjQQG/VII3RBp8VHZHT2qAZoYmVwg+gkl4XaDayqWQ2v68+x9KdoqU4X44gngUSS4L/xKt7SQ9VgO+xLspUP6m89/KvaLMm4Kq22qZU/ZYHjAAAA') format('woff2'),
5+
url('iconfont.woff?t=1550653183289') format('woff'),
6+
url('iconfont.ttf?t=1550653183289') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
7+
url('iconfont.svg?t=1550653183289#iconfont') format('svg'); /* iOS 4.1- */
8+
}
9+
10+
.iconfont {
11+
font-family: "iconfont" !important;
12+
font-size: 16px;
13+
font-style: normal;
14+
-webkit-font-smoothing: antialiased;
15+
-moz-osx-font-smoothing: grayscale;
16+
}
17+
18+
.icon-iconfontrectangle390:before {
19+
content: "\e602";
20+
}
21+
22+
.icon-weixinzhifu:before {
23+
content: "\e62a";
24+
}
25+
26+
.icon-shangjia:before {
27+
content: "\e638";
28+
}
29+
30+
.icon-yue:before {
31+
content: "\e62b";
32+
}
33+

src/assets/icons/iconfont.eot

2.71 KB
Binary file not shown.

src/assets/icons/iconfont.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/icons/iconfont.svg

Lines changed: 38 additions & 0 deletions
Loading

src/assets/icons/iconfont.ttf

2.54 KB
Binary file not shown.

src/assets/icons/iconfont.woff

1.81 KB
Binary file not shown.

src/assets/icons/iconfont.woff2

1.37 KB
Binary file not shown.

src/assets/images/error-page/error-401.svg

Lines changed: 1 addition & 0 deletions
Loading

src/assets/images/error-page/error-404.svg

Lines changed: 1 addition & 0 deletions
Loading

src/assets/images/error-page/error-500.svg

Lines changed: 1 addition & 0 deletions
Loading

src/assets/images/logo.png

8.86 KB
Loading

src/assets/styles/common.less

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
body{
2+
overflow: auto !important;
3+
}
4+
.margin-top-8{
5+
margin-top: 8px;
6+
}
7+
.margin-top-5{
8+
margin-top: 5px;
9+
}
10+
.mt10{
11+
margin-top: 10px;
12+
}
13+
.mt20{
14+
margin-top: 20px;
15+
}
16+
.margin-left-10{
17+
margin-left: 10px !important;
18+
}
19+
.mb10{
20+
margin-bottom: 10px;
21+
}
22+
.margin-bottom-100{
23+
margin-bottom: 100px;
24+
}
25+
.margin-right-10{
26+
margin-right: 10px;
27+
}
28+
.mtb10{
29+
margin:10px 0 !important;
30+
}
31+
.padding-left-6{
32+
padding-left: 6px;
33+
}
34+
.padding-left-8{
35+
padding-left: 5px;
36+
}
37+
.padding-left-10{
38+
padding-left: 10px;
39+
}
40+
.padding-left-20{
41+
padding-left: 20px;
42+
}
43+
.height-100{
44+
height: 100%;
45+
}
46+
.height-120px{
47+
height: 100px;
48+
}
49+
.height-200px{
50+
height: 200px;
51+
}
52+
.height-492px{
53+
height: 492px;
54+
}
55+
.height-460px{
56+
height: 460px;
57+
}
58+
.line-gray{
59+
height: 0;
60+
border-bottom: 2px solid #dcdcdc;
61+
}
62+
.notwrap{
63+
word-break:keep-all;
64+
white-space:nowrap;
65+
overflow: hidden;
66+
text-overflow: ellipsis;
67+
}
68+
.padding-left-5{
69+
padding-left: 10px;
70+
}
71+
[v-cloak]{
72+
display: none;
73+
}
74+
.tl{text-align:left}
75+
.tc{text-align:center}
76+
.tr{text-align:right}
77+
.ivu-btn{margin-right: 5px !important}
78+
.c-sub{
79+
color:#808695
80+
}
81+
.c-error{
82+
color: #ed4014
83+
}
84+
.c-success{
85+
color: #19be6b
86+
}
87+
.c-warning{
88+
color: #ff9900
89+
}
90+
.font-bold{
91+
font-weight: bold
92+
}
93+
.required{
94+
&:before{
95+
content: "*";
96+
display: inline-block;
97+
margin-right: 4px;
98+
line-height: 1;
99+
font-family: SimSun;
100+
font-size: 12px;
101+
color: #ed4014;
102+
}
103+
}
104+
.fs12{
105+
font-size: 12px;
106+
}
107+
.w100{
108+
width: 100% !important;
109+
}
110+
.url{
111+
cursor: pointer;
112+
}
113+
.cover-200{
114+
width: 200px;
115+
}
116+
.cover-100{
117+
width: 100px;
118+
}
119+
.wh100{
120+
width: 100%;
121+
height: 100%;
122+
}
123+
//覆盖iview配置
124+
.ivu-menu-submenu .ivu-menu-submenu-title{
125+
&>span{
126+
margin-left:5px;
127+
}
128+
}
129+
.spin-icon-load{
130+
animation: ani-demo-spin 1s linear infinite;
131+
}
132+
@keyframes ani-demo-spin {
133+
from { transform: rotate(0deg);}
134+
50% { transform: rotate(180deg);}
135+
to { transform: rotate(360deg);}
136+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<template>
2+
<component :is="iconType" :type="iconName" :color="iconColor" :size="iconSize"/>
3+
</template>
4+
5+
<script>
6+
import Icons from '_c/icons'
7+
export default {
8+
name: 'CommonIcon',
9+
components: {Icons},
10+
props: {
11+
type: {
12+
type: String,
13+
required: true
14+
},
15+
color: String,
16+
size: Number
17+
},
18+
computed: {
19+
iconType () {
20+
return this.type.indexOf('_') === 0 ? 'Icons' : 'Icon'
21+
},
22+
iconName () {
23+
return this.iconType === 'Icons' ? this.getCustomIconName(this.type) : this.type
24+
},
25+
iconSize () {
26+
return this.size || (this.iconType === 'Icons' ? 12 : undefined)
27+
},
28+
iconColor () {
29+
return this.color || ''
30+
}
31+
},
32+
methods: {
33+
getCustomIconName (iconName) {
34+
return iconName.slice(1)
35+
}
36+
}
37+
}
38+
</script>
39+
40+
<style>
41+
42+
</style>

src/components/common-icon/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import CommonIcon from './common-icon.vue'
2+
export default CommonIcon

0 commit comments

Comments
 (0)