Skip to content

Commit 7d82ba8

Browse files
author
Pooya Parsa
committed
Explicit components dependency bootstrap-vue#201
1 parent 752dd3a commit 7d82ba8

11 files changed

+17
-19
lines changed

lib/components/breadcrumb.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
</template>
1010

1111
<script>
12+
import bLink from './link.vue';
13+
1214
export default {
15+
components: {bLink},
1316
computed: {
1417
componentType() {
1518
return this.to ? 'router-link' : 'a';

lib/components/button.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
import bLink from './link.vue';
99
1010
export default {
11-
components: {
12-
bLink
13-
},
11+
components: {bLink},
1412
computed: {
1513
classObject() {
1614
return [
@@ -23,7 +21,7 @@
2321
];
2422
},
2523
componentType() {
26-
return (this.href || this.to) ? bLink : 'button';
24+
return (this.href || this.to) ? 'b-link' : 'button';
2725
},
2826
btnBlock() {
2927
return this.block ? `btn-block` : '';

lib/components/dropdown-item.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
</template>
66

77
<script>
8-
import Link from './link.vue';
8+
import bLink from './link.vue';
99
1010
export default {
11-
extends: Link,
11+
extends: bLink,
1212
computed: {
1313
itemType() {
1414
return (this.href || this.to) ? this.componentType : 'button';

lib/components/dropdown-select.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
<script>
2323
export default {
24-
replace: true,
2524
data() {
2625
return {
2726
show: false,

lib/components/list-group-item.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
</template>
66

77
<script>
8+
import bLink from './link.vue';
9+
810
const actionTags = ['a', 'router-link', 'button', 'b-link'];
911
1012
export default {
13+
components: {bLink},
1114
computed: {
1215
classObject() {
1316
return [

lib/components/list-group.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
<script>
88
export default {
9-
replace: true,
109
props: {
1110
tag: {
1211
type: String,

lib/components/media.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
<script>
1616
export default {
17-
replace: true,
1817
computed: {
1918
align() {
2019
return this.position.split(' ');

lib/components/nav-item.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
import bLink from './link.vue';
1111
1212
export default {
13-
components: {
14-
bLink
15-
},
13+
components: {bLink},
1614
computed: {
1715
classObject() {
1816
return [

lib/components/navbar.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
<script>
99
export default {
10-
replace: true,
1110
computed: {
1211
classObject() {
1312
return [

lib/components/table.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</template>
2121

2222
<script>
23-
import Pagination from './pagination.vue';
23+
import bPagination from './pagination.vue';
2424
2525
const toString = v => {
2626
if (!v) {
@@ -39,8 +39,7 @@
3939
};
4040
4141
export default {
42-
components: {bPagination: Pagination},
43-
42+
components: {bPagination},
4443
data() {
4544
return {
4645
sortBy: null,
@@ -55,7 +54,8 @@
5554
},
5655
fields: {
5756
type: Object,
58-
default: () => {}
57+
default: () => {
58+
}
5959
},
6060
striped: {
6161
type: Boolean,

lib/components/tooltip.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
</style>
2121

2222
<script>
23-
import popover from './popover.vue';
23+
import bPopover from './popover.vue';
2424
2525
export default {
26-
extends: popover,
26+
extends: bPopover,
2727
props: {
2828
triggers: {
2929
type: [Boolean, String, Array],

0 commit comments

Comments
 (0)