refactor: move about into to about

This commit is contained in:
YunYouJun
2023-07-30 05:08:08 +08:00
parent a419c383a3
commit 2c7f3c94c6
13 changed files with 66 additions and 62 deletions

View File

@@ -13,6 +13,8 @@ const recipeBtn = ref<HTMLButtonElement>()
const { playAnimation } = useEmojiAnimation(recipeBtn)
const gtm = useGtm()
const recipePanel = ref()
const { isVisible, show } = useInvisibleElement(recipePanel)
function toggleStuff(item: StuffItem, category = '', _e?: Event) {
rStore.toggleStuff(item.name)
@@ -112,5 +114,8 @@ function toggleStuff(item: StuffItem, category = '', _e?: Event) {
</ToolTag>
</div>
<RecipePanel />
<Transition>
<BasketButton ref="recipeBtn" :is-visible="isVisible" @click="show" />
</Transition>
<RecipePanel ref="recipePanel" />
</template>