Skip to content

Commit edf2e56

Browse files
committed
添加eslint 完成柱状图绘制
1 parent 5783ba1 commit edf2e56

38 files changed

+1009
-398
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/build/
22
/config/
33
/dist/
4-
/src/
54
/*.js
65
/test/unit/coverage/

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
</head>
88
<body>
99
<div id="app"></div>
10+
<div class="auto-tooltip"></div>
1011
<!-- built files will be auto injected -->
1112
</body>
1213
</html>

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
},
1616
"dependencies": {
1717
"vue": "^2.5.2",
18-
"vue-router": "^3.0.1",
19-
"d3": "^3.5.17"
18+
"vue-router": "^3.0.1"
2019
},
2120
"devDependencies": {
2221
"autoprefixer": "^7.1.2",
@@ -39,6 +38,7 @@
3938
"cross-env": "^5.0.1",
4039
"cross-spawn": "^5.0.1",
4140
"css-loader": "^0.28.0",
41+
"d3": "^4.12.2",
4242
"eslint": "^3.19.0",
4343
"eslint-config-standard": "^10.2.1",
4444
"eslint-friendly-formatter": "^3.0.0",
@@ -53,6 +53,7 @@
5353
"friendly-errors-webpack-plugin": "^1.6.1",
5454
"html-webpack-plugin": "^2.30.1",
5555
"inject-loader": "^3.0.0",
56+
"jquery": "^3.2.1",
5657
"karma": "^1.4.1",
5758
"karma-coverage": "^1.1.1",
5859
"karma-mocha": "^1.3.0",

src/App.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,14 @@
33
<router-view/>
44
</div>
55
</template>
6-
76
<script>
87
export default {
98
name: 'app'
109
}
1110
</script>
12-
1311
<style>
1412
#app {
1513
width: 100%;
1614
height: 100%;
17-
1815
}
1916
</style>

src/assets/css/common.css

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,30 @@ body {
2020
position: absolute;
2121
top: 4px;
2222
left: 50px;
23-
}
23+
}
24+
25+
.auto-tooltip {
26+
box-sizing: border-box;
27+
position: absolute;
28+
padding: 10px 15px;
29+
background: rgba(59, 57, 54, 0.8);
30+
border-radius: 5px;
31+
border: 1px solid #928a82;
32+
color: #fff;
33+
font-size: 30px;
34+
z-index: 9999;
35+
white-space: nowrap;
36+
}
37+
38+
.axis path,
39+
.axis line {
40+
fill: none;
41+
stroke: none;
42+
shape-rendering: optimizeSpeed;
43+
}
44+
45+
.axis text {
46+
font-size: 28px;
47+
font-family: sans-serif;
48+
fill: #a4d5ff;
49+
}
239 Bytes
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)