Skip to content

Commit

Permalink
feat(VLayout): add dimension support
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Apr 28, 2024
1 parent bc32a67 commit 0114108
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vuetify/src/components/VLayout/VLayout.tsx
Expand Up @@ -3,6 +3,7 @@ import './VLayout.sass'

// Composables
import { makeComponentProps } from '@/composables/component'
import { makeDimensionProps, useDimension } from '@/composables/dimensions'
import { createLayout, makeLayoutProps } from '@/composables/layout'

// Utilities
Expand All @@ -11,6 +12,7 @@ import { genericComponent, propsFactory, useRender } from '@/util'

export const makeVLayoutProps = propsFactory({
...makeComponentProps(),
...makeDimensionProps(),
...makeLayoutProps(),
}, 'VLayout')

Expand All @@ -21,6 +23,7 @@ export const VLayout = genericComponent()({

setup (props, { slots }) {
const { layoutClasses, layoutStyles, getLayoutItem, items, layoutRef } = createLayout(props)
const { dimensionStyles } = useDimension(props)

useRender(() => (
<div
Expand All @@ -30,6 +33,7 @@ export const VLayout = genericComponent()({
props.class,
]}
style={[
dimensionStyles.value,
layoutStyles.value,
props.style,
]}
Expand Down

0 comments on commit 0114108

Please sign in to comment.