25 lines
903 B
JavaScript
25 lines
903 B
JavaScript
import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createVNode as _createVNode } from "vue";
|
|
// Components
|
|
import { VLabel } from "../VLabel/index.js"; // Composables
|
|
import { makeComponentProps } from "../../composables/component.js"; // Utilities
|
|
import { genericComponent, propsFactory, useRender } from "../../util/index.js";
|
|
export const makeVFieldLabelProps = propsFactory({
|
|
floating: Boolean,
|
|
...makeComponentProps()
|
|
}, 'VFieldLabel');
|
|
export const VFieldLabel = genericComponent()({
|
|
name: 'VFieldLabel',
|
|
props: makeVFieldLabelProps(),
|
|
setup(props, {
|
|
slots
|
|
}) {
|
|
useRender(() => _createVNode(VLabel, {
|
|
"class": _normalizeClass(['v-field-label', {
|
|
'v-field-label--floating': props.floating
|
|
}, props.class]),
|
|
"style": _normalizeStyle(props.style)
|
|
}, slots));
|
|
return {};
|
|
}
|
|
});
|
|
//# sourceMappingURL=VFieldLabel.js.map
|