valaxy-theme-yun 0.17.0-beta.4 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- package/components/YunGoDown.vue +14 -2
- package/package.json +2 -2
package/components/YunGoDown.vue
CHANGED
@@ -1,7 +1,19 @@
|
|
1
|
+
<script lang="ts" setup>
|
2
|
+
function goDown() {
|
3
|
+
const banner = document.getElementById('yun-banner')
|
4
|
+
if (banner) {
|
5
|
+
window.scrollTo({
|
6
|
+
top: banner.clientHeight,
|
7
|
+
behavior: 'smooth',
|
8
|
+
})
|
9
|
+
}
|
10
|
+
}
|
11
|
+
</script>
|
12
|
+
|
1
13
|
<template>
|
2
|
-
<
|
14
|
+
<button class="go-down" aria-label="go-down" @click="goDown">
|
3
15
|
<div i-ri-arrow-down-s-line inline-flex />
|
4
|
-
</
|
16
|
+
</button>
|
5
17
|
</template>
|
6
18
|
|
7
19
|
<style lang="scss">
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "valaxy-theme-yun",
|
3
|
-
"version": "0.17.0
|
3
|
+
"version": "0.17.0",
|
4
4
|
"author": {
|
5
5
|
"email": "me@yunyoujun.cn",
|
6
6
|
"name": "YunYouJun",
|
@@ -25,7 +25,7 @@
|
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
27
|
"@types/animejs": "^3.1.12",
|
28
|
-
"valaxy": "0.17.0
|
28
|
+
"valaxy": "0.17.0",
|
29
29
|
"valaxy-addon-waline": "0.1.1"
|
30
30
|
}
|
31
31
|
}
|