Skip to content

Commit

Permalink
feat(VMain): add dimension support
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Mar 25, 2024
1 parent e6653ee commit 8ba749b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vuetify/src/components/VMain/VMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import './VMain.sass'

// Composables
import { makeComponentProps } from '@/composables/component'
import { makeDimensionProps, useDimension } from '@/composables/dimensions'
import { useLayout } from '@/composables/layout'
import { useSsrBoot } from '@/composables/ssrBoot'
import { makeTagProps } from '@/composables/tag'
Expand All @@ -14,6 +15,7 @@ export const makeVMainProps = propsFactory({
scrollable: Boolean,

...makeComponentProps(),
...makeDimensionProps(),
...makeTagProps({ tag: 'main' }),
}, 'VMain')

Expand All @@ -23,6 +25,7 @@ export const VMain = genericComponent()({
props: makeVMainProps(),

setup (props, { slots }) {
const { dimensionStyles } = useDimension(props)
const { mainStyles, layoutIsReady } = useLayout()
const { ssrBootStyles } = useSsrBoot()

Expand All @@ -36,6 +39,7 @@ export const VMain = genericComponent()({
style={[
mainStyles.value,
ssrBootStyles.value,
dimensionStyles.value,
props.style,
]}
>
Expand Down

0 comments on commit 8ba749b

Please sign in to comment.