🌐 AI搜索 & 代理 主页
Skip to content

Commit 0e318f4

Browse files
authored
feat(b-container): add support for bootstrap v4.4.x new responsive containers
1 parent 59d7019 commit 0e318f4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/layout/container.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ export const props = {
99
fluid: {
1010
type: Boolean,
1111
default: false
12+
},
13+
breakpoint: {
14+
// New in Bootstrap v4.4.x
15+
type: String,
16+
default: null
1217
}
1318
}
1419

@@ -22,8 +27,9 @@ export const BContainer = /*#__PURE__*/ Vue.extend({
2227
props.tag,
2328
mergeData(data, {
2429
class: {
25-
container: !props.fluid,
26-
'container-fluid': props.fluid
30+
container: !props.fluid && !props.breakpoint,
31+
'container-fluid': props.fluid && !props.breakpoint,
32+
[`container-${props.breakpoint}`]: !!props.breakpoint
2733
}
2834
}),
2935
children

0 commit comments

Comments
 (0)