Browse Source

fix(infiniteloading): repeat function

richard1015 3 years ago
parent
commit
b807c27735
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/packages/__VUE/infiniteloading/index.vue

+ 1 - 3
src/packages/__VUE/infiniteloading/index.vue

@@ -117,9 +117,7 @@ export default create({
           : `height 0.2s cubic-bezier(0.25,0.1,0.25,1)`
           : `height 0.2s cubic-bezier(0.25,0.1,0.25,1)`
       };
       };
     });
     });
-    const getParentElement = (el: HTMLElement) => {
-      return !!props.containerId ? document.querySelector(`#${props.containerId}`) : el && el.parentNode;
-    };
+
     const requestAniFrame = () => {
     const requestAniFrame = () => {
       return (
       return (
         window.requestAnimationFrame ||
         window.requestAnimationFrame ||