Skip to content
Permalink
Browse files

feat(b-container): add support for bootstrap v4.4.x new responsive co…

…ntainers
  • Loading branch information
tmorehouse committed Jul 22, 2019
1 parent 59d7019 commit 0e318f4755e65eb569dcc579938d0d72c02abd62
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/components/layout/container.js
@@ -9,6 +9,11 @@ export const props = {
fluid: {
type: Boolean,
default: false
},
breakpoint: {
// New in Bootstrap v4.4.x
type: String,
default: null
}
}

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

0 comments on commit 0e318f4

Please sign in to comment.
You can’t perform that action at this time.