import Modal from './Modal'
import BaseModal from './BaseModal'
import CardModal from './CardModal'
import ImageModal from './ImageModal'

export {
  Modal,
  BaseModal,
  CardModal,
  ImageModal
}

import Modal from './Modal.vue'
import BaseModal from './BaseModal'
import CardModal from './CardModal.vue'
import ImageModal from './ImageModal.vue'

export {
  Modal,
  BaseModal,
  CardModal,
  ImageModal
}

Update index.js