@layui/layui-vue
Version:
a component library for Vue 3 base on layui-vue
9 lines (8 loc) • 388 B
JavaScript
import { defineComponent as s } from "vue";
const p = s({ name: "LayRender", inheritAttrs: !1, props: { render: { type: [String, Function] }, slots: { type: Object } }, setup: (e, r) => () => {
var t, n;
return typeof e.render == "string" ? (n = (t = e.slots) == null ? void 0 : t[e.render]) == null ? void 0 : n.call(t, r.attrs) : e.render(r.attrs);
} });
export {
p as default
};