File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 3434 "homepage" : " https://github.com/Akryum/vue-virtual-scroller#readme" ,
3535 "dependencies" : {
3636 "scrollparent" : " ^2.0.1" ,
37- "vue-observe-visibility" : " ^0.4.4"
37+ "vue-observe-visibility" : " ^0.4.4" ,
38+ "vue-resize" : " ^0.4.5"
3839 },
3940 "peerDependencies" : {
4041 "vue" : " ^2.6.11"
Original file line number Diff line number Diff line change 4747 name =" after"
4848 />
4949 </div >
50+
51+ <ResizeObserver @notify =" handleResize" />
5052 </div >
5153</template >
5254
@@ -56,14 +58,18 @@ import ScrollParent from 'scrollparent'
5658import config from ' ../config'
5759import { props , simpleArray } from ' ./common'
5860import { supportsPassive } from ' ../utils'
59-
61+ import { ResizeObserver } from ' vue-resize '
6062let uid = 0
6163
6264export default {
6365 name: ' RecycleScroller' ,
6466
67+ components: {
68+ ResizeObserver
69+ },
70+
6571 directives: {
66- ObserveVisibility,
72+ ObserveVisibility
6773 },
6874
6975 props: {
You can’t perform that action at this time.
0 commit comments