Skip to content

Commit

Permalink
feat(b-container): add support for bootstrap v4.4.x new responsive co…
Browse files Browse the repository at this point in the history
…ntainers
  • Loading branch information
tmorehouse committed Jul 22, 2019
1 parent 59d7019 commit 0e318f4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/layout/container.js
Expand Up @@ -9,6 +9,11 @@ export const props = {
fluid: { fluid: {
type: Boolean, type: Boolean,
default: false default: false
},
breakpoint: {
// New in Bootstrap v4.4.x
type: String,
default: null
} }
} }


Expand All @@ -22,8 +27,9 @@ export const BContainer = /*#__PURE__*/ Vue.extend({
props.tag, props.tag,
mergeData(data, { mergeData(data, {
class: { class: {
container: !props.fluid, container: !props.fluid && !props.breakpoint,
'container-fluid': props.fluid 'container-fluid': props.fluid && !props.breakpoint,
[`container-${props.breakpoint}`]: !!props.breakpoint
} }
}), }),
children children
Expand Down

0 comments on commit 0e318f4

Please sign in to comment.