Skip to content

Commit f0b90ed

Browse files
authored
Merge pull request bootstrap-vue#154 from mosinve/master
Navbar styles fix
2 parents 7928394 + e7e3536 commit f0b90ed

File tree

1 file changed

+32
-34
lines changed

1 file changed

+32
-34
lines changed

lib/components/navbar.vue

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,38 @@
66

77

88
<script>
9-
export default {
10-
replace: true,
11-
computed: {
12-
classObject() {
13-
return [
14-
'navbar',
15-
this.type ? `navbar-${this.type}` : '',
16-
this.variant ? `bg-${this.variant}` : '',
17-
this.fixed ? `navbar-fixed-${this.fixed}` : '',
18-
this.full ? 'navbar-full' : '',
19-
this.toggleable ? 'navbar-toggleable-md' : ''
20-
];
21-
}
22-
},
23-
props: {
24-
type: {
25-
type: String,
26-
default: 'light'
27-
},
28-
variant: {
29-
type: String
30-
},
31-
toggleable: {
32-
type: Boolean,
33-
default: false
9+
export default {
10+
replace: true,
11+
computed: {
12+
classObject() {
13+
return [
14+
'navbar',
15+
this.type ? `navbar-${this.type}` : '',
16+
this.variant ? `bg-${this.variant}` : '',
17+
this.fixed ? `fixed-${this.fixed}` : '',
18+
this.sticky ? 'sticky-top' : '',
19+
this.toggleable ? 'navbar-toggleable-md' : ''
20+
];
21+
}
3422
},
35-
fixed: {
36-
type: String
37-
},
38-
full: {
39-
type: Boolean,
40-
default: false
23+
props: {
24+
type: {
25+
type: String,
26+
default: 'light'
27+
},
28+
variant: {
29+
type: String
30+
},
31+
toggleable: {
32+
type: Boolean,
33+
default: false
34+
},
35+
fixed: {
36+
type: String
37+
},
38+
sticky: {
39+
type: String
40+
}
4141
}
42-
}
43-
};
44-
42+
};
4543
</script>

0 commit comments

Comments
 (0)