Skip to content

Commit 277117b

Browse files
committed
fix(view): npm run lint
1 parent e7e5f56 commit 277117b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

admin/src/views/home/float.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<template>
22
<div
3+
ref="div"
34
class="ys-float-btn"
45
:style="{'width':itemWidth+'px','height':itemHeight+'px','left':left+'px','top':top+'px'}"
5-
ref="div"
66
@click="onBtnClicked"
77
>
88
<slot name="icon"></slot>
9-
<p>{{text}}</p>
9+
<p>{{ text }}</p>
1010
</div>
1111
</template>
1212

@@ -86,7 +86,7 @@ export default {
8686
}
8787
},
8888
handleScrollEnd() {
89-
let scrollTop = document.documentElement.scrollTop || document.body.scrollTop
89+
const scrollTop = document.documentElement.scrollTop || document.body.scrollTop
9090
if (scrollTop === this.currentTop) {
9191
if (this.left > this.clientWidth / 2) {
9292
this.left = this.clientWidth - this.itemWidth - this.gapWidth

0 commit comments

Comments
 (0)