Browse Source

upd(list): remove emit scroll

suzigang 2 years ago
parent
commit
d224f40c3d
2 changed files with 0 additions and 2 deletions
  1. 0 1
      src/packages/__VUE/list/index.taro.vue
  2. 0 1
      src/packages/__VUE/list/index.vue

+ 0 - 1
src/packages/__VUE/list/index.taro.vue

@@ -87,7 +87,6 @@ export default create({
       const scrollTop = e.detail ? e.detail.scrollTop : e.target.scrollTop;
       const scrollTop = e.detail ? e.detail.scrollTop : e.target.scrollTop;
       state.start = Math.floor(scrollTop / props.height);
       state.start = Math.floor(scrollTop / props.height);
       if (end.value > state.list.length) {
       if (end.value > state.list.length) {
-        emit('scroll');
         emit('scroll-bottom');
         emit('scroll-bottom');
       }
       }
       state.startOffset = scrollTop - (scrollTop % props.height);
       state.startOffset = scrollTop - (scrollTop % props.height);

+ 0 - 1
src/packages/__VUE/list/index.vue

@@ -75,7 +75,6 @@ export default create({
       const scrollTop = list.value?.scrollTop as number;
       const scrollTop = list.value?.scrollTop as number;
       state.start = Math.floor(scrollTop / props.height);
       state.start = Math.floor(scrollTop / props.height);
       if (end.value > state.list.length) {
       if (end.value > state.list.length) {
-        emit('scroll');
         emit('scroll-bottom');
         emit('scroll-bottom');
       }
       }
       state.startOffset = scrollTop - (scrollTop % props.height);
       state.startOffset = scrollTop - (scrollTop % props.height);