|
@@ -225,12 +225,15 @@ const props = defineProps<{
|
|
pen: any;
|
|
pen: any;
|
|
}>();
|
|
}>();
|
|
function changeAnimateAutoPlay(value,item) {
|
|
function changeAnimateAutoPlay(value,item) {
|
|
- props.pen.animations.forEach(i=>{
|
|
|
|
- if(i.name !== item.name){
|
|
|
|
- i.autoPlay = false
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- item.autoPlay = true
|
|
|
|
|
|
+ if(value){
|
|
|
|
+ if(props.pen.animations.length === 1)return
|
|
|
|
+ props.pen.animations.forEach(i=>{
|
|
|
|
+ if(i.name !== item.name){
|
|
|
|
+ i.autoPlay = false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ item.autoPlay = true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
const penTree: any = ref([]);
|
|
const penTree: any = ref([]);
|
|
|
|
|