Browse Source

Merge branch 'main' of https://github.com.cnpmjs.org/xiaoxian521/vue-pure-admin into main

xiaoxian521 3 years ago
parent
commit
0a332731a4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/SeamlessScroll/src/SeamlessScroll.vue

+ 2 - 1
src/components/SeamlessScroll/src/SeamlessScroll.vue

@@ -188,7 +188,8 @@ export default defineComponent({
     });
 
     let scrollSwitch = computed(() => {
-      return data.length >= unref(options).limitMoveNum;
+      // 从 props 解构出来的 属性 不再具有相应性. 
+      return props.data.length >= unref(options).limitMoveNum;
     });
 
     let hoverStopSwitch = computed(() => {