Skip to content

Commit 70050e0

Browse files
committed
fix(view): run lint
1 parent 3693f6d commit 70050e0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

admin/src/components/FloatButton/index.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:style="{'width':itemWidth+'px','height':itemHeight+'px','left':left+'px','top':top+'px'}"
66
@click="onBtnClicked"
77
>
8-
<slot name="icon"></slot>
8+
<slot name="icon" />
99
<p>{{ text }}</p>
1010
</div>
1111
</template>
@@ -35,6 +35,16 @@ export default {
3535
default: 0.8
3636
}
3737
},
38+
data() {
39+
return {
40+
timer: null,
41+
currentTop: 0,
42+
clientWidth: 0,
43+
clientHeight: 0,
44+
left: 0,
45+
top: 0
46+
}
47+
},
3848
created() {
3949
this.clientWidth = document.documentElement.clientWidth
4050
this.clientHeight = document.documentElement.clientHeight
@@ -95,16 +105,6 @@ export default {
95105
clearTimeout(this.timer)
96106
}
97107
}
98-
},
99-
data() {
100-
return {
101-
timer: null,
102-
currentTop: 0,
103-
clientWidth: 0,
104-
clientHeight: 0,
105-
left: 0,
106-
top: 0
107-
}
108108
}
109109
}
110110
</script>

0 commit comments

Comments
 (0)