Skip to content

Commit

Permalink
Merge pull request #158 from akhuoa/docs
Browse files Browse the repository at this point in the history
Fix api docs demo for pinia
  • Loading branch information
alan-wu authored Apr 15, 2024
2 parents 091d0f1 + 40ce250 commit 387c93c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/demo-flatmapvuer.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@
</div>

<script setup>
import { getCurrentInstance } from 'vue'
import { createPinia } from 'pinia'
import { defineClientComponent } from 'vitepress'
import './demo-styles.css'

const app = getCurrentInstance()
const pinia = createPinia()
app.appContext.app.use(pinia)

const FlatmapVuer = defineClientComponent(() => {
return import('../src/components/FlatmapVuer.vue')
})
Expand Down
6 changes: 6 additions & 0 deletions docs/demo-multiflatmapvuer.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@
</div>

<script setup>
import { getCurrentInstance } from 'vue'
import { createPinia } from 'pinia'
import { defineClientComponent } from 'vitepress'
import './demo-styles.css'

const app = getCurrentInstance()
const pinia = createPinia()
app.appContext.app.use(pinia)

const MultiFlatmapVuer = defineClientComponent(() => {
return import('../src/components/MultiFlatmapVuer.vue')
})
Expand Down

0 comments on commit 387c93c

Please sign in to comment.