index.vue 549 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <transition name="msgbox-fade">
  3. <div class="pub-wrapper" v-if="visible" @click.stop>
  4. <div class="pub-mask" @click="visible = false"></div>
  5. <invite :inviteType='inviteType' :ext='ext' @hidePopup="hidePopup"></invite>
  6. </div>
  7. </transition>
  8. </template>
  9. <script>
  10. import Vue from 'vue'
  11. Vue.component(
  12. 'invite', () => import('./invite')
  13. )
  14. export default {
  15. name: 'invitePopup',
  16. data () {
  17. return {
  18. visible: true
  19. }
  20. },
  21. methods: {
  22. hidePopup () {
  23. this.visible = false
  24. }
  25. }
  26. }
  27. </script>