valaxy-theme-yun 0.20.0-beta.7 → 0.20.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/layouts/home.vue +6 -1
- package/package.json +2 -1
- package/utils/animation.ts +3 -1
- package/valaxy.config.ts +1 -0
package/layouts/home.vue
CHANGED
@@ -15,7 +15,12 @@ const showNotice = computed(() => {
|
|
15
15
|
</script>
|
16
16
|
|
17
17
|
<template>
|
18
|
-
<YunLayoutWrapper
|
18
|
+
<YunLayoutWrapper
|
19
|
+
class="items-center flex-col"
|
20
|
+
:class="{
|
21
|
+
'mt-0!': !isPage,
|
22
|
+
}"
|
23
|
+
>
|
19
24
|
<template v-if="!isPage">
|
20
25
|
<YunBanner />
|
21
26
|
<YunSay v-if="themeConfig.say.enable" w="full" />
|
package/package.json
CHANGED
package/utils/animation.ts
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
import { gsap } from 'gsap'
|
2
|
-
|
2
|
+
// gsap/ScrollToPlugin is ESM, but gsap not include 'type:module' in package.json
|
3
|
+
// use cjs for vite-ssg, optimizeDeps for ESM
|
4
|
+
import ScrollToPlugin from 'gsap/dist/ScrollToPlugin'
|
3
5
|
|
4
6
|
gsap.registerPlugin(ScrollToPlugin)
|
5
7
|
|