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>
18 lines (17 loc) • 552 B
JavaScript
import { shallowRef as l, createVNode as u, watchEffect as c } from "vue";
import "../utils/index.mjs";
import { isFunction as a, isString as m } from "../utils/is.mjs";
function h(r, o, i) {
const t = l({}), e = (n, f = () => u("span", null, null)) => a(n) ? n : m(n) ? () => u("span", null, [n]) : f;
return c(() => {
t.value = {}, i.forEach((n) => {
(o[n] || r[n]) && (t.value[n] = e(o[n], e(r[n])));
});
}), {
scopedSlots: t
};
}
export {
h as useFormComponentSlots
};
//# sourceMappingURL=useFormComponentSlots.mjs.map