chenxuan0000 / vue-seamless-scroll

:beginner:A simple, seamless scrolling for Vue.js vue无缝滚动component
https://chenxuan0000.github.io/vue-seamless-scroll/
MIT License
1.83k stars 332 forks source link

容器内li的点击事件 #31

Closed gr510071555 closed 6 years ago

gr510071555 commented 6 years ago

需要给容器内的li绑定点击事件,但是复制的li没有办法绑定,怎么解决

chenxuan0000 commented 6 years ago

@gr510071555 https://github.com/chenxuan0000/vue-seamless-scroll/blob/master/issuses/problem1.md

frankfang7 commented 6 years ago

这个有没有demo可供参考的?

chenxuan0000 commented 6 years ago

@frankfang7 事件代理,给父元素绑定对应事件,在需要的子元素上进行事件补获。js原生事件代理。不清楚可以查下如何写。