Skip to content

Commit 7075004

Browse files
committed
Merge branch 'dev'
2 parents 550a714 + baf7649 commit 7075004

Some content is hidden

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

95 files changed

+1306
-1014
lines changed

β€Žpackage.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,29 @@
7474
"vue/no-use-v-if-with-v-for": 0,
7575
"vue/html-closing-bracket-newline": 0,
7676
"vue/no-parsing-error": 0,
77-
"no-console": 0
77+
"no-console": 0,
78+
"quotes": [
79+
2,
80+
"single",
81+
{
82+
"avoidEscape": true,
83+
"allowTemplateLiterals": true
84+
}
85+
],
86+
"semi": [
87+
2,
88+
"never",
89+
{
90+
"beforeStatementContinuationChars": "never"
91+
}
92+
],
93+
"no-delete-var": 2,
94+
"prefer-const": [
95+
2,
96+
{
97+
"ignoreReadBeforeAssign": false
98+
}
99+
]
78100
}
79101
},
80102
"postcss": {

β€Žsrc/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
},
1818
created () {
19-
let that = this
19+
const that = this
2020
enquireScreen(deviceType => {
2121
// tablet
2222
if (deviceType === 0) {

β€Žsrc/components/AvatarList/Item.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import Tooltip from 'ant-design-vue/es/tooltip'
1212
1313
export default {
14-
name: "AvatarItem",
14+
name: 'AvatarItem',
1515
components: {
1616
Avatar,
1717
Tooltip

β€Žsrc/components/AvatarList/List.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
2424
export default {
2525
AvatarItem,
26-
name: "AvatarList",
26+
name: 'AvatarList',
2727
components: {
2828
Avatar,
2929
AvatarItem

β€Žsrc/components/AvatarList/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import AvatarList from './List'
2-
import "./index.less"
2+
import './index.less'
33

44
export default AvatarList

β€Žsrc/components/ChartCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
<script>
2626
export default {
27-
name: "ChartCard",
27+
name: 'ChartCard',
2828
props: {
2929
title: {
3030
type: String,

β€Žsrc/components/CountDown/CountDown.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<script>
88
99
function fixedZero(val) {
10-
return val * 1 < 10 ? `0${val}` : val;
10+
return val * 1 < 10 ? `0${val}` : val
1111
}
1212
1313
export default {
14-
name: "CountDown",
14+
name: 'CountDown',
1515
props: {
1616
format: {
1717
type: Function,
@@ -38,12 +38,12 @@
3838
},
3939
filters: {
4040
format(time) {
41-
const hours = 60 * 60 * 1000;
42-
const minutes = 60 * 1000;
41+
const hours = 60 * 60 * 1000
42+
const minutes = 60 * 1000
4343
44-
const h = Math.floor(time / hours);
45-
const m = Math.floor((time - h * hours) / minutes);
46-
const s = Math.floor((time - h * hours - m * minutes) / 1000);
44+
const h = Math.floor(time / hours)
45+
const m = Math.floor((time - h * hours) / minutes)
46+
const s = Math.floor((time - h * hours - m * minutes) / 1000)
4747
return `${fixedZero(h)}:${fixedZero(m)}:${fixedZero(s)}`
4848
}
4949
},
@@ -53,8 +53,8 @@
5353
},
5454
methods: {
5555
initTime() {
56-
let lastTime = 0;
57-
let targetTime = 0;
56+
let lastTime = 0
57+
let targetTime = 0
5858
this.originTargetTime = this.target
5959
try {
6060
if (Object.prototype.toString.call(this.target) === '[object Date]') {
@@ -66,7 +66,7 @@
6666
throw new Error('invalid target prop')
6767
}
6868
69-
lastTime = targetTime - new Date().getTime();
69+
lastTime = targetTime - new Date().getTime()
7070
7171
this.lastTime = lastTime < 0 ? 0 : lastTime
7272
},
@@ -78,7 +78,7 @@
7878
clearTimeout(this.timer)
7979
this.lastTime = 0
8080
if (typeof onEnd === 'function') {
81-
onEnd();
81+
onEnd()
8282
}
8383
} else {
8484
this.lastTime -= this.interval

β€Žsrc/components/Ellipsis/Ellipsis.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
},
5454
render () {
5555
const { tooltip, length } = this.$props
56-
let str = this.$slots.default.map(vNode => vNode.text).join("")
57-
const strDom = tooltip && getStrFullLength(str) > length ? this.getTooltip(str) : this.getStrDom(str);
56+
const str = this.$slots.default.map(vNode => vNode.text).join('')
57+
const strDom = tooltip && getStrFullLength(str) > length ? this.getTooltip(str) : this.getStrDom(str)
5858
return (
5959
strDom
6060
)

β€Žsrc/components/Trend/Trend.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<script>
1414
export default {
15-
name: "Trend",
15+
name: 'Trend',
1616
props: {
1717
prefixCls: {
1818
type: String,

β€Žsrc/components/chart/Bar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
}]
4040
4141
export default {
42-
name: "Bar",
42+
name: 'Bar',
4343
props: {
4444
title: {
4545
type: String,

0 commit comments

Comments
Β (0)