|
@@ -173,6 +173,7 @@
|
|
|
class="ml-8 mt-8"
|
|
|
size="small"
|
|
|
v-model="item.autoPlay"
|
|
|
+ @change="changeAnimateAutoPlay($event,item)"
|
|
|
/>
|
|
|
</div>
|
|
|
<div
|
|
@@ -223,7 +224,14 @@ import AnimateFrames from './AnimateFrames.vue';
|
|
|
const props = defineProps<{
|
|
|
pen: any;
|
|
|
}>();
|
|
|
-
|
|
|
+function changeAnimateAutoPlay(value,item) {
|
|
|
+ props.pen.animations.forEach(i=>{
|
|
|
+ if(i.name !== item.name){
|
|
|
+ i.autoPlay = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ item.autoPlay = true
|
|
|
+}
|
|
|
const penTree: any = ref([]);
|
|
|
|
|
|
const openedCollapses = ref([0]);
|