11 lines
299 B
JavaScript
Executable File
11 lines
299 B
JavaScript
Executable File
import { h } from 'vue';
|
|
export function getSimpleFunctionalComponent(cls, el = 'div') {
|
|
return function (props, {
|
|
slots
|
|
}) {
|
|
return h(props.tag ?? el, {
|
|
class: cls
|
|
}, slots.default ? slots.default() : undefined);
|
|
};
|
|
}
|
|
//# sourceMappingURL=getSimpleFunctionalComponent.js.map
|