style(vue): improve motion animation formatting
Enhances code readability and maintainability by: - Breaking v-motion directive into separate line - Reordering motion module in Nuxt config for better dependency loading This change maintains the same functionality while improving code organization and module initialization order.
This commit is contained in:
parent
6a98a4b719
commit
bab8dec489
2 changed files with 3 additions and 2 deletions
|
|
@ -83,7 +83,8 @@ onMounted(() => loadComponents())
|
||||||
<div
|
<div
|
||||||
v-for="(item, idx) in itemsToShow"
|
v-for="(item, idx) in itemsToShow"
|
||||||
:key="item.props.key"
|
:key="item.props.key"
|
||||||
v-motion :initial="getInitial(idx)" :enter="getEnter(idx)" :leave="getLeave()"
|
v-motion
|
||||||
|
:initial="getInitial(idx)" :enter="getEnter(idx)" :leave="getLeave()"
|
||||||
:class="cn('mx-auto w-full')"
|
:class="cn('mx-auto w-full')"
|
||||||
>
|
>
|
||||||
<component :is="item" />
|
<component :is="item" />
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ export default defineNuxtConfig({
|
||||||
modules: [
|
modules: [
|
||||||
'@nuxthub/core',
|
'@nuxthub/core',
|
||||||
'shadcn-nuxt',
|
'shadcn-nuxt',
|
||||||
|
'@vueuse/motion/nuxt',
|
||||||
'@nuxt/eslint',
|
'@nuxt/eslint',
|
||||||
'@nuxtjs/tailwindcss',
|
'@nuxtjs/tailwindcss',
|
||||||
'@vueuse/motion/nuxt',
|
|
||||||
'@nuxtjs/color-mode',
|
'@nuxtjs/color-mode',
|
||||||
'@nuxtjs/i18n',
|
'@nuxtjs/i18n',
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue