misc: 유니크 경매장에서 아이템 효과 툴팁

This commit is contained in:
2022-07-27 22:21:25 +09:00
parent ff92b0149a
commit e40aa88253
2 changed files with 45 additions and 9 deletions
+14 -2
View File
@@ -1,5 +1,5 @@
<template>
<BContainer id="container" :toast="{ root: true }" class="bg0">
<BContainer v-if="asyncReady" id="container" :toast="{ root: true }" class="bg0">
<TopBackBar type="close" :title="isResAuction ? '경매장' : '유니크 경매장'" :reloadable="true" @reload="tryReload">
<BButton @click="isResAuction = true">/</BButton>
<BButton @click="isResAuction = false">유니크</BButton>
@@ -22,7 +22,8 @@ import TopBackBar from "@/components/TopBackBar.vue";
import BottomBar from "./components/BottomBar.vue";
import AuctionResource from "@/components/AuctionResource.vue";
import AuctionUniqueItem from "@/components/AuctionUniqueItem.vue";
import { ref } from "vue";
import { provide, ref } from "vue";
import { getGameConstStore, type GameConstStore } from "./GameConstStore";
const props = defineProps({
isResAuction: {
@@ -31,6 +32,17 @@ const props = defineProps({
},
});
const asyncReady = ref(false);
const gameConstStore = ref<GameConstStore>();
provide("gameConstStore", gameConstStore);
const storeP = getGameConstStore().then((store) => {
gameConstStore.value = store;
});
void Promise.all([storeP]).then(() => {
asyncReady.value = true;
});
const auctionResource = ref<InstanceType<typeof AuctionResource> | null>(null);
const auctionUniqueItem = ref<InstanceType<typeof AuctionUniqueItem> | null>(null);