<template>
  <BmapModal ref="modal" v-if="type==='bmap'"/>
  <VmapModal ref="modal" v-else-if="type==='vmap'"/>
</template>

<script>
import BmapModal from './BmapModal.vue';
import VmapModal from './VmapModal.vue';
export default {
  components: {
    BmapModal,
    VmapModal
  },
  props: {
    type: {
      type: String,
      default: 'bmap'
    }
  },
  methods: {
    show() {
      this.$refs.modal.show()
    }
  }
}
</script>