fix #79
This commit is contained in:
parent
9b5a61e57d
commit
9d496efd03
3 changed files with 21 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ import { usePageStore } from "./page";
|
|||
export const useVirtualSampleStore = defineStore("virtual-sample", () => {
|
||||
const { page } = usePageStore();
|
||||
const step = page.steps.find((step) => step.id === "virtualSample");
|
||||
const isCompareModeEnabled = ref(false);
|
||||
|
||||
const activeTab = ref(step.files.dynamic ? "dynamic" : "static");
|
||||
const currentFile = ref(null);
|
||||
|
|
@ -12,5 +13,11 @@ export const useVirtualSampleStore = defineStore("virtual-sample", () => {
|
|||
|
||||
watch(activeTab, () => (currentFile.value = null));
|
||||
|
||||
return { activeTab, currentFile, step, isLoopAnimationEnabled };
|
||||
return {
|
||||
activeTab,
|
||||
currentFile,
|
||||
step,
|
||||
isLoopAnimationEnabled,
|
||||
isCompareModeEnabled,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue