<template>
  <div class="treasure-detail">
    <Teleport to="body">
      <TreasureShare
        v-if="isShowShare"
        @close="isShowShare = false"
      />
    </Teleport>

    <button @click="isShowShare = true">
      show share
    </button>
  </div>
</template>

<script>
import {
  reactive,
  ref,
  toRefs,
} from 'vue'
import TreasureShare from "@/components/TreasureShare.vue"

export default {
  components: {
    TreasureShare
  },
  setup () {
    const isShowShare = ref(false)


    return {
      isShowShare,
    }
  },
}
</script>

<style lang="less" scoped>
.treasure-detail {
  width: 100%;
  height: 100%;
  overflow: auto;
}
</style>