Skip to content

Commit

Permalink
feat(VResponsive): add contentClass prop
Browse files Browse the repository at this point in the history
closes #10982
  • Loading branch information
KaelWD committed Dec 9, 2020
1 parent b5df1db commit 71b8854
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/api-generator/src/locale/en/v-responsive.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"props": {
"aspectRatio": "Sets a base aspect ratio, calculated as width/height. This will only set a **minimum** height, the component can still grow if it has a lot of content."
"aspectRatio": "Sets a base aspect ratio, calculated as width/height. This will only set a **minimum** height, the component can still grow if it has a lot of content.",
"contentClass": "Apply a custom class to the responsive content div."
}
}
2 changes: 2 additions & 0 deletions packages/vuetify/src/components/VResponsive/VResponsive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default mixins(Measurable).extend({

props: {
aspectRatio: [String, Number] as NumberOrNumberString,
contentClass: String,
},

computed: {
Expand All @@ -40,6 +41,7 @@ export default mixins(Measurable).extend({
genContent (): VNode {
return this.$createElement('div', {
staticClass: 'v-responsive__content',
class: this.contentClass,
}, this.$slots.default)
},
},
Expand Down

0 comments on commit 71b8854

Please sign in to comment.