init component
This commit is contained in:
11
node_modules/buetify/lib/utils/getSimpleFunctionalComponent.js
generated
vendored
Executable file
11
node_modules/buetify/lib/utils/getSimpleFunctionalComponent.js
generated
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user