Skip to content

Commit 0f284ff

Browse files
author
liaofeiyin
committed
rewite base structure
1 parent fab2573 commit 0f284ff

File tree

15 files changed

+102
-37
lines changed

15 files changed

+102
-37
lines changed

src/app/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Vue.use(OptionGroup)
1919
Vue.use(Input)
2020

2121

22-
import './scss/index.scss'
22+
import '@/scss/index.scss'
2323

2424

2525
Vue.config.productionTip = false;

src/app/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import NotFoundComponent from '@/components/notFoundComponent.vue'
55
Vue.use(Router);
66

77
export default new Router({
8-
mode: "history",
8+
//mode: "history",
99
base: process.env.BASE_URL,
1010
scrollBehavior,
1111
routes: [{
File renamed without changes.
File renamed without changes.

src/scss/_layout.scss

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#app {
2+
width: 1180px;
3+
margin: 0 auto;
4+
5+
// 主体区域 Main container
6+
.main-container {
7+
min-height: 100%;
8+
transition: margin-left .28s;
9+
margin-left: $sideBarWidth;
10+
position: relative;
11+
}
12+
13+
// 侧边栏 Sidebar container
14+
.sidebar-container {
15+
transition: width 0.28s;
16+
width: $sideBarWidth !important;
17+
height: 100%;
18+
position: fixed;
19+
font-size: 0px;
20+
top: 0;
21+
bottom: 0;
22+
left: 0;
23+
z-index: 1001;
24+
overflow: hidden;
25+
.el-menu {
26+
border: none;
27+
height: 100%;
28+
width: 100% !important;
29+
}
30+
}
31+
}
32+

src/app/scss/index.scss renamed to src/scss/_reset-element-ui.scss

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,3 @@
1-
@import 'text';
2-
@import 'flex';
3-
@import 'colors';
4-
5-
html {
6-
line-height: 1.4;
7-
-webkit-tap-highlight-color: transparent;
8-
-webkit-font-smoothing: antialiased;
9-
-moz-osx-font-smoothing: grayscale;
10-
}
11-
12-
body {
13-
margin: 0;
14-
background-color: #ffffff;
15-
}
16-
17-
p {
18-
margin-top: 0;
19-
margin-bottom: 0;
20-
}
21-
22-
input {
23-
outline: 0;
24-
border: 0;
25-
background: transparent;
26-
}
27-
28-
#app {
29-
width: 1180px;
30-
margin: 0 auto;
31-
}
32-
331
$inputWidth: 220px;
342
$marginRight: 20px;
353
.a-input-block {
@@ -72,5 +40,4 @@ $marginRight: 20px;
7240
padding-left: 80px;
7341
}
7442
}
75-
}
76-
43+
}
File renamed without changes.

src/app/scss/_vars.scss renamed to src/scss/_vars.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
// !!!不需要再单独引入!!!通过 webpack sass-resources-loader 全局注入
2+
13
//$_: 1rem/20;
24
$_: 1px;
35
$px: $_;
6+
$sideBarWidth: 180px;
47

58
$weight-map: (
69
ultralight: 100,

src/scss/index.scss

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
@import 'colors';
2+
@import 'flex';
3+
@import 'layout';
4+
@import 'reset-element-ui';
5+
@import 'text';
6+
7+
html {
8+
line-height: 1.4;
9+
-webkit-tap-highlight-color: transparent;
10+
-webkit-font-smoothing: antialiased;
11+
-moz-osx-font-smoothing: grayscale;
12+
}
13+
14+
body {
15+
margin: 0;
16+
background-color: #ffffff;
17+
}
18+
19+
p {
20+
margin-top: 0;
21+
margin-bottom: 0;
22+
}
23+
24+
input {
25+
outline: 0;
26+
border: 0;
27+
background: transparent;
28+
}
29+
30+
31+
32+
33+

src/views/layout/components/body.vue

Whitespace-only changes.

0 commit comments

Comments
 (0)