valaxy-theme-yun 0.22.12 → 0.22.13
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/components/YunOutline.vue +6 -7
- package/locales/en.yml +3 -0
- package/locales/zh-CN.yml +3 -0
- package/package.json +3 -3
@@ -4,22 +4,21 @@ import {
|
|
4
4
|
useOutline,
|
5
5
|
} from 'valaxy'
|
6
6
|
import { ref } from 'vue'
|
7
|
-
import {
|
7
|
+
import { useI18n } from 'vue-i18n'
|
8
8
|
|
9
|
-
const
|
10
|
-
|
11
|
-
const container = ref()
|
9
|
+
const { t } = useI18n()
|
10
|
+
const containerRef = ref()
|
12
11
|
const marker = ref()
|
13
12
|
|
14
13
|
const { headers, handleClick } = useOutline()
|
15
|
-
useActiveAnchor(
|
14
|
+
useActiveAnchor(containerRef, marker)
|
16
15
|
</script>
|
17
16
|
|
18
17
|
<template>
|
19
|
-
<div v-show="headers.length" ref="
|
18
|
+
<div v-show="headers.length" ref="containerRef">
|
20
19
|
<div class="content">
|
21
20
|
<div class="outline-title">
|
22
|
-
{{
|
21
|
+
{{ t('theme.outlineTitle') }}
|
23
22
|
</div>
|
24
23
|
|
25
24
|
<div ref="marker" class="outline-marker" />
|
package/locales/en.yml
CHANGED
package/locales/zh-CN.yml
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "valaxy-theme-yun",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.22.
|
4
|
+
"version": "0.22.13",
|
5
5
|
"author": {
|
6
6
|
"email": "me@yunyoujun.cn",
|
7
7
|
"name": "YunYouJun",
|
@@ -32,8 +32,8 @@
|
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
34
34
|
"@types/animejs": "^3.1.13",
|
35
|
-
"valaxy
|
36
|
-
"valaxy": "0.
|
35
|
+
"valaxy": "0.22.13",
|
36
|
+
"valaxy-addon-waline": "0.2.0"
|
37
37
|
},
|
38
38
|
"scripts": {
|
39
39
|
"release": "bumpp && pnpm publish"
|