Преглед на файлове

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

xiaoxian521 преди 4 години
родител
ревизия
0a332731a4
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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(() => {
     let scrollSwitch = computed(() => {
-      return data.length >= unref(options).limitMoveNum;
+      // 从 props 解构出来的 属性 不再具有相应性. 
+      return props.data.length >= unref(options).limitMoveNum;
     });
     });
 
 
     let hoverStopSwitch = computed(() => {
     let hoverStopSwitch = computed(() => {