mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
feat(module): add support for vue using unplugin (#2416)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { useAppConfig } from '#imports'
|
||||
|
||||
const appConfig = useAppConfig()
|
||||
</script>
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user