I upgrading my Vue 2 project to Vue 3 (BootstrapVue (2.23.1) with @vue/compat). I facing serval problem. The first problem is how to get $bvModal in setup?
Anybody known?
import {BootstrapVue, BModal } from 'bootstrap-vue'import { createApp } from '@vue/compat' //In setup> const { BModal } = inject('BModal') //use> const $bvModal = new BModal({ ref: 'modal'})
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.