|
@@ -66,15 +66,25 @@ import {
|
|
|
|
|
|
enterEdit(() => router.back());
|
|
|
useViewStack(autoSaveAnimationModel);
|
|
|
-useViewStack(() =>
|
|
|
- mergeFuns(
|
|
|
+useViewStack(() => {
|
|
|
+ return mergeFuns(
|
|
|
showBottomBarStack.push(ref(true)),
|
|
|
- showRightPanoStack.push(computed(() => !!focusAM.value && !play.value)),
|
|
|
- showLeftPanoStack.push(computed(() => !play.value)),
|
|
|
+ showRightPanoStack.push(ref(true)),
|
|
|
+ showLeftPanoStack.push(ref(true)),
|
|
|
showLeftCtrlPanoStack.push(computed(() => !play.value)),
|
|
|
- showSearchStack.push(computed(() => !play.value))
|
|
|
- )
|
|
|
-);
|
|
|
+ showSearchStack.push(computed(() => !play.value)),
|
|
|
+ watchEffect((onCleanup) => {
|
|
|
+ const cleanups: any[] = [];
|
|
|
+ if (play.value || activeAttrib.value?.key === "frames") {
|
|
|
+ cleanups.push(showRightPanoStack.push(ref(false)));
|
|
|
+ }
|
|
|
+ if (play.value) {
|
|
|
+ cleanups.push(showLeftPanoStack.push(ref(false)));
|
|
|
+ }
|
|
|
+ onCleanup(mergeFuns(cleanups));
|
|
|
+ })
|
|
|
+ );
|
|
|
+});
|
|
|
|
|
|
const focusAM = ref<AnimationModel>();
|
|
|
const activeAttrib = ref<Active>();
|
|
@@ -86,7 +96,6 @@ const amM = computed(() => focusAM.value && amMap[getAMKey(focusAM.value)]);
|
|
|
|
|
|
onUnmounted(() => (currentTime.value = 0));
|
|
|
|
|
|
-
|
|
|
const asyncOper = (item: AnimationModel, oper: (obj: AnimationModel3D) => void) => {
|
|
|
let onCleanup = () => {};
|
|
|
if (amMap[getAMKey(item)]?.am) {
|