feat(module): add support for vue using unplugin (#2416)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Daniel Roe
2024-10-25 16:15:26 +01:00
committed by GitHub
parent 50c6bf0092
commit d4a943e631
97 changed files with 18948 additions and 117 deletions

View File

@@ -1,4 +1,6 @@
<script setup lang="ts">
import { useAppConfig } from '#imports'
const appConfig = useAppConfig()
</script>

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { LazyModalExample } from '#components'
import { defineAsyncComponent } from 'vue'
const LazyModalExample = defineAsyncComponent(() => import('../../components/ModalExample.vue'))
const open = ref(false)
const count = ref(0)

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { LazySlideoverExample } from '#components'
import { defineAsyncComponent } from 'vue'
const LazySlideoverExample = defineAsyncComponent(() => import('../../components/SlideoverExample.vue'))
const open = ref(false)
const count = ref(0)

View File

@@ -1,5 +1,6 @@
<script setup lang="ts">
import theme from '#build/ui/toaster'
import { useAppConfig } from '#imports'
const positions = Object.keys(theme.variants.position)