Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions packages/bootstrap-vue-next/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<template>
<BApp>
<BContainer>
<BRow>
<BCol> Hello World! </BCol>
</BRow>
</BContainer>
</BApp>
<BContainer>
<BRow>
<BCol> Hello World! </BCol>
</BRow>
</BContainer>
</template>

<script setup lang="ts">
// You can use this file as a development spot to test your changes
// Please do not commit this file
import {BApp, BCol, BContainer, BRow} from './components'
import {BCol, BContainer, BRow} from './components'
</script>
11 changes: 9 additions & 2 deletions packages/bootstrap-vue-next/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'bootstrap/dist/css/bootstrap.min.css'
import {createApp, h} from 'vue'
import {createRouter, createWebHistory, useRoute} from 'vue-router'
import App from './App.vue'
import {Directives} from './index'
import {BApp, Directives} from './index'
import './styles/styles.scss'
const router = createRouter({
history: createWebHistory(),
Expand Down Expand Up @@ -43,7 +43,14 @@ const router = createRouter({
],
})

const app = createApp(App)
const Wrapper = {
name: 'AppWrapper',
render() {
return h(BApp, null, {default: () => h(App)})
},
}

const app = createApp(Wrapper)
app.use(router)
for (const name in Directives) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
Expand Down
Loading