bill 4 месяцев назад
Родитель
Сommit
6754808c0a
2 измененных файлов с 4 добавлено и 2 удалено
  1. 0 1
      src/views/animation/bottom.vue
  2. 4 1
      src/views/animation/index.vue

+ 0 - 1
src/views/animation/bottom.vue

@@ -7,7 +7,6 @@
         @click="
           () => {
             play = !play;
-            $emit('update:follow', play);
           }
         "
       />

+ 4 - 1
src/views/animation/index.vue

@@ -31,7 +31,7 @@
     <BottomPano>
       <Bottom
         :am="focusAM"
-        v-model:follow="follow"
+        :follow="play || follow"
         v-model:current-time="currentTime"
         v-model:active="activeAttrib"
       />
@@ -96,6 +96,9 @@ const activeAttrib = ref<Active>();
 
 const follow = ref(false);
 const frameAction = ref<string>();
+watchEffect(() => {
+  console.error("floow", follow.value || play.value);
+});
 
 const amM = computed(() => focusAM.value && amMap[getAMKey(focusAM.value)]);