ideaz-element
Version:
<p align="center"> <a href="" target="_blank" rel="noopener noreferrer"> <img src="./docs/public/logo.svg" alt="Ideaz Element" width="180" style="width: 180px;" /> </a> </p>
22 lines (21 loc) • 654 B
JavaScript
import { h as t, getCurrentInstance as m } from "vue";
import "../utils/index.mjs";
import { isObject as a } from "../utils/is.mjs";
import { toCamelCase as c } from "../utils/string.mjs";
function C(e) {
const r = ["div", "span", "p", "h1", "h2", "h3", "h4", "h5", "h6"];
if (a(e.name)) return t(e.name, e.attrs || {}, e.content || {});
const n = r.includes(e.name) ? e.name : m().appContext.components[c(e.name)];
return n ? t(
// resolveComponent(options.name),
n,
{
...e.attrs || {}
},
e.content || {}
) : t("div");
}
export {
C as resolveDynamicComponent
};
//# sourceMappingURL=resolveDynamicComponent.mjs.map