'use strict';

var vue = require('vue');
var elementPlus = require('element-plus');

"use strict";
const elContainer = document.createElement("div");
document.body.appendChild(elContainer);
const getProps = (data) => {
  if (typeof data === "string") {
    return {
      "url-list": [data]
    };
  } else if (Array.isArray(data)) {
    return {
      "url-list": data
    };
  } else {
    return data;
  }
};
const MeImageViewer = (props, args = {}) => {
  const vnode = vue.createVNode(elementPlus.ElImageViewer, {
    ...getProps(props),
    onClose: () => {
      vue.render(null, elContainer);
    },
    ...args
  });
  vue.render(vnode, elContainer);
};

exports.MeImageViewer = MeImageViewer;
//# sourceMappingURL=index.js.map
