mine-h5-ui
Version:
一款轻量级、模块化基于 Vue3.x 的 H5 前端 UI 组件库 👍
20 lines (19 loc) • 592 B
JavaScript
import { createVNode as s, render as c } from "vue";
import { IsType as r } from "../MeAPI/function.js";
import i from "./index.vue.js";
const e = [], a = (o) => {
const d = r("string", o) ? { message: o, visible: !0 } : { visible: !0 }, m = s(i, d), n = document.createElement("div");
c(m, n);
const t = n.firstElementChild;
e.push(t), document.body.appendChild(t);
}, p = () => {
e.forEach((o) => {
o && document.body.removeChild(o);
}), e.length = 0;
}, l = a;
l.componentName = i.name;
p.componentName = "MeHideLoading";
export {
p as hideLoading,
l as showLoading
};