-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.js
26 lines (21 loc) · 848 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { createApp } from 'vue'
import App from './App.vue'
import { createVbPlugin } from 'vue3-plugin-bootstrap5'
import {
Alert, Button, Carousel, Collapse, Dropdown, Modal,
Offcanvas, Popover, ScrollSpy, Tab, Toast, Tooltip } from 'bootstrap'
let vbPlugin = createVbPlugin({
Alert, Button, Carousel, Collapse, Dropdown, Modal,
Offcanvas, Popover, ScrollSpy, Tab, Toast, Tooltip })
let app = createApp(App)
app.directive('log-directive-lifecycle', {
created: () => console.log('created'),
beforeMount: () => console.log('beforeMount'),
mounted: () => console.log('mounted'),
beforeUpdate: () => console.log('beforeUpdate'),
updated: () => console.log('updated'),
beforeUnmount: () => console.log('beforeUnmount'),
unmounted: () => console.log('unmounted')
})
app.use(vbPlugin)
app.mount('#app')