UNPKG

@coderlt/form-designer

Version:

基于vue3的设计器,可视化开发页面表单

32 lines (31 loc) 794 B
import { inject as u, onBeforeMount as d } from "vue"; import { u as l } from "./index-e2a664aa.js"; import { h as c, i as a, j as f } from "./use-rtl-9463c170.js"; import { c9 as m } from "./index-74b7090f.js"; function y(i, n, o) { if (!n) { process.env.NODE_ENV !== "production" && m("use-style", "No style is specified."); return; } const r = l(), t = u(c, null), s = () => { const e = o == null ? void 0 : o.value; n.mount({ id: e === void 0 ? i : e + i, head: !0, anchorMetaName: a, props: { bPrefix: e ? `.${e}-` : void 0 }, ssr: r }), t != null && t.preflightStyleDisabled || f.mount({ id: "n-global", head: !0, anchorMetaName: a, ssr: r }); }; r ? s() : d(s); } export { y as u };