File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
admin/src/components/FloatButton Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments