Skip to content

Commit

Permalink
feat(VContainer): add dimension support
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed May 28, 2024
1 parent aee83f0 commit 14a2e8c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/vuetify/src/components/VGrid/VContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import './VGrid.sass'

// Composables
import { makeComponentProps } from '@/composables/component'
import { makeDimensionProps, useDimension } from '@/composables/dimensions'
import { useRtl } from '@/composables/locale'
import { makeTagProps } from '@/composables/tag'

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

...makeComponentProps(),
...makeDimensionProps(),
...makeTagProps(),
}, 'VContainer')

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

setup (props, { slots }) {
const { rtlClasses } = useRtl()
const { dimensionStyles } = useDimension(props)

useRender(() => (
<props.tag
Expand All @@ -35,7 +38,10 @@ export const VContainer = genericComponent()({
rtlClasses.value,
props.class,
]}
style={ props.style }
style={[
dimensionStyles.value,
props.style,
]}
v-slots={ slots }
/>
))
Expand Down

0 comments on commit 14a2e8c

Please sign in to comment.