Skip to content

Commit 5baaa41

Browse files
authored
QTabs & QTab contentClass (quasarframework#6995)
* QTabs.js contentClass * QTab contentClass
1 parent e7d8d58 commit 5baaa41

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

ui/src/components/tabs/QTab.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ export default Vue.extend({
4141
noCaps: Boolean,
4242

4343
tabindex: [String, Number],
44-
disable: Boolean
44+
disable: Boolean,
45+
46+
contentClass: String
4547
},
4648

4749
computed: {
@@ -151,7 +153,7 @@ export default Vue.extend({
151153

152154
h('div', {
153155
staticClass: 'q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable',
154-
class: this.tabs.inlineLabel === true ? 'row no-wrap q-tab__content--inline' : 'column'
156+
class: [this.tabs.inlineLabel === true ? 'row no-wrap q-tab__content--inline' : 'column', this.contentClass].join(' ')
155157
}, mergeSlot(content, this, 'default'))
156158
]
157159

ui/src/components/tabs/QTabs.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ export default Vue.extend({
8686
inlineLabel: Boolean,
8787
noCaps: Boolean,
8888

89-
dense: Boolean
89+
dense: Boolean,
90+
91+
contentClass: String
9092
},
9193

9294
data () {
@@ -397,7 +399,7 @@ export default Vue.extend({
397399
h('div', {
398400
ref: 'content',
399401
staticClass: 'q-tabs__content row no-wrap items-center self-stretch hide-scrollbar',
400-
class: this.alignClass
402+
class: [this.alignClass, this.contentClass].join(' ')
401403
}, slot(this, 'default'))
402404
]
403405

0 commit comments

Comments
 (0)