You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the release of <b>v2.23.0</b> you can now use <spanclass="bd-text-purple-bright">BootstrapVue</span> with <ahref="https://v3-migration.vuejs.org/migration-build.html"target="_blank">migration build</a> of Vue.js 3
11
+
12
+
<b-alertshowvariant="warning"class="mt-3">
13
+
@vue/compat support is designed for early migration to Vue.js 3 and will be eventually replaced with bootstrap-vue 3.0
<p><codeclass="text-nowrap"translate="no">@vue-compat</code> support is currently limited to <codeclass="text-nowrap"translate="no">{ MODE: 2 }</code> configuration both for compiler and Vue.js itself.
19
+
You can find more details in <ahref="https://v3-migration.vuejs.org/migration-build.html#compat-configuration"target="_blank">compat configuration</a> section of migration guide.
20
+
</p>
21
+
<p>That means that you can manually configure each your component with <codeclass="text-nowrap"translate="no">{ compatConfig: { MODE: 3 }}</code> to be ready for switching to Vue.js 3, however global configuration should be kept in legacy mode in order for all BootstrapVue functions to work</p>
<li>Configure your application according to <atarget="_blank"href="https://v3-migration.vuejs.org/migration-build.html#upgrade-workflow">upgrade workflow</a></li>
32
+
<li>Upgrade bootstrap-vue to <b>v2.23.0</b> or higher</li>
33
+
<li>Make sure you're still on bootstrap <b>v4</b></li>
34
+
</ul>
35
+
36
+
<p>You can use this <ahref="https://stackblitz.com/edit/bootstrap-vue-with-compat">sandbox</a> for reference or reporting issues with @vue/compat</p>
37
+
38
+
</section>
39
+
</b-container>
40
+
</template>
41
+
42
+
<script>
43
+
importhljsfrom'../utils/hljs'
44
+
45
+
exportdefault {
46
+
head() {
47
+
consttitle=`Vue.js 3 support | BootstrapVue`
48
+
return {
49
+
title
50
+
}
51
+
},
52
+
computed: {
53
+
cmpCode() {
54
+
return [
55
+
`<template>...</template>`,
56
+
`<script>`,
57
+
`export default {`,
58
+
` data() { /* ... */ },`,
59
+
``,
60
+
` // This will disable all Vue.js 2 legacy features for your component`,
61
+
` compatConfig: { MODE: 3 }`,
62
+
``,
63
+
` // ... rest of your component configuration ... `,
0 commit comments