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

    <menu>
      <button @click="isShowShare = true">
        <img
          class=""
          src="@/assets/images/icon_share.png"
          alt=""
          draggable="false"
        >
      </button>
    </menu>
  </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;
  position: relative;
  >menu {
    position: absolute;
    right: 44px;
    bottom: 170px;
    > button {
      width: 44px;
      height: 44px;
      > img {
        width: 100%;
        height: 100%;
      }
    }
  }
}
</style>