Skip to content

Commit 14a2e8c

Browse files
committed
feat(VContainer): add dimension support
1 parent aee83f0 commit 14a2e8c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/vuetify/src/components/VGrid/VContainer.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import './VGrid.sass'
33

44
// Composables
55
import { makeComponentProps } from '@/composables/component'
6+
import { makeDimensionProps, useDimension } from '@/composables/dimensions'
67
import { useRtl } from '@/composables/locale'
78
import { makeTagProps } from '@/composables/tag'
89

@@ -16,6 +17,7 @@ export const makeVContainerProps = propsFactory({
1617
},
1718

1819
...makeComponentProps(),
20+
...makeDimensionProps(),
1921
...makeTagProps(),
2022
}, 'VContainer')
2123

@@ -26,6 +28,7 @@ export const VContainer = genericComponent()({
2628

2729
setup (props, { slots }) {
2830
const { rtlClasses } = useRtl()
31+
const { dimensionStyles } = useDimension(props)
2932

3033
useRender(() => (
3134
<props.tag
@@ -35,7 +38,10 @@ export const VContainer = genericComponent()({
3538
rtlClasses.value,
3639
props.class,
3740
]}
38-
style={ props.style }
41+
style={[
42+
dimensionStyles.value,
43+
props.style,
44+
]}
3945
v-slots={ slots }
4046
/>
4147
))

0 commit comments

Comments
 (0)