28 lines
838 B
JavaScript
28 lines
838 B
JavaScript
import { ir as capitalize, pt as h, rr as camelize } from "./vue.runtime.esm-bundler-BvoXUmaf.js";
|
|
import { n as genericComponent } from "./defineComponent-DB6xIcDy.js";
|
|
import { t as makeComponentProps } from "./component-DdiwBe6i.js";
|
|
//#region node_modules/vuetify/lib/util/createSimpleFunctional.js
|
|
function createSimpleFunctional(klass, tag = "div", name) {
|
|
return genericComponent()({
|
|
name: name ?? capitalize(camelize(klass.replace(/__/g, "-"))),
|
|
props: {
|
|
tag: {
|
|
type: String,
|
|
default: tag
|
|
},
|
|
...makeComponentProps()
|
|
},
|
|
setup(props, { slots }) {
|
|
return () => {
|
|
return h(props.tag, {
|
|
class: [klass, props.class],
|
|
style: props.style
|
|
}, slots.default?.());
|
|
};
|
|
}
|
|
});
|
|
}
|
|
//#endregion
|
|
export { createSimpleFunctional as t };
|
|
|
|
//# sourceMappingURL=createSimpleFunctional-Cqw8cOWQ.js.map
|