パッと開いて、スーッと消えていくモーダル
つまりopenボタンしかない、closeは自動
「コピーしました」を表示してすぐ消えていくとかに使う
<template>
  <transition name="modal">
    <div v-if="isShow">
    </div>
  </transition>
</template>
<script>
export default {
  data() {
    return {
      isShow: false,
    }
  },
  methods: {
    open() {
      this.isShow = true
      setTimeout(() => {
        this.isShow = false
      }, 2000);
    }
  }
}
</script>
<style lang="scss" scoped>
.modal-leave-active{
  transition: opacity 0.3s;
}
.modal-enter,
.modal-leave-to{
  opacity: 0;
}
</style>