import Vue from 'vue';
import Main from './Result.vue';
const WaitConstructor = Vue.extend(Main);

const Result = function(options: any) {
  options = options || {};
  
  const instance = new WaitConstructor({
    el: document.createElement('div'),
    data: options,
  });
  instance.$mount()
  document.body.append(instance.$el)
  return instance
}

export default Result
