File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ keyword: intersectionObserver scroll-list Scroll animation,quick scroll resolv
33
33
34
34
## live demo1
35
35
36
- [ codeSandBox] ( https://codesandbox.io/s/goofy -easley-wywn69 )
36
+ [ codeSandBox] ( https://codesandbox.io/s/festive -easley-wr4cd2 )
37
37
38
38
> newest demo checked by git clone and yarn && yarn dev
39
39
@@ -99,7 +99,7 @@ yarn add vue-virtual-list-observer
99
99
100
100
## quickStart
101
101
102
- [ codeSandBox] ( https://codesandbox.io/s/goofy -easley-wywn69 )
102
+ [ codeSandBox] ( https://codesandbox.io/s/festive -easley-wr4cd2 )
103
103
104
104
105
105
## Attention
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const request = () => {
35
35
provide (' request' , request)
36
36
const list = ref (null )
37
37
const mylist = ref (null )
38
- const reset = () => {
38
+ const scrollToTop = () => {
39
39
console .log (mylist .value , ' mylist' )
40
40
// list.value.getScroll()
41
41
// list.value.scrollTop = 0
@@ -59,7 +59,7 @@ const scrollInstance = () => {
59
59
60
60
<template >
61
61
<div >
62
- <button @click =" reset " >reset </button >
62
+ <button @click =" scrollToTop " >scrollToTop </button >
63
63
<!-- <button @click="scrollToIndex">scrollToIndex</button> -->
64
64
<!-- <button @click="scrollInstance">{{ scrollInstance }}</button> -->
65
65
</div >
You can’t perform that action at this time.
0 commit comments