Skip to content

Commit

Permalink
fix(VResponsive): contentClass accepts array and object
Browse files Browse the repository at this point in the history
fixes #19729
  • Loading branch information
KaelWD committed May 7, 2024
1 parent 94a05d1 commit 8f0322d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function useAspectStyles (props: { aspectRatio?: string | number }) {

export const makeVResponsiveProps = propsFactory({
aspectRatio: [String, Number],
contentClass: String,
contentClass: null,
inline: Boolean,

...makeComponentProps(),
Expand Down
4 changes: 2 additions & 2 deletions packages/vuetify/src/composables/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import type { PropType, StyleValue } from 'vue'
export type ClassValue = any

export interface ComponentProps {
class?: ClassValue
class: ClassValue
style: StyleValue | undefined
}

// Composables
export const makeComponentProps = propsFactory({
class: [String, Array] as PropType<ClassValue>,
class: [String, Array, Object] as PropType<ClassValue>,
style: {
type: [String, Array, Object] as PropType<StyleValue>,
default: null,
Expand Down

0 comments on commit 8f0322d

Please sign in to comment.