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.
@@ -4,22 +4,21 @@ import {
4
4
  useOutline,
5
5
  } from 'valaxy'
6
6
  import { ref } from 'vue'
7
- import { useThemeConfig } from '../composables'
7
+ import { useI18n } from 'vue-i18n'
8
8
 
9
- const themeConfig = useThemeConfig()
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(container, marker)
14
+ useActiveAnchor(containerRef, marker)
16
15
  </script>
17
16
 
18
17
  <template>
19
- <div v-show="headers.length" ref="container">
18
+ <div v-show="headers.length" ref="containerRef">
20
19
  <div class="content">
21
20
  <div class="outline-title">
22
- {{ themeConfig.outlineTitle || 'On this page' }}
21
+ {{ t('theme.outlineTitle') }}
23
22
  </div>
24
23
 
25
24
  <div ref="marker" class="outline-marker" />
package/locales/en.yml CHANGED
@@ -1 +1,4 @@
1
1
  valaxy_theme_yun: Valaxy Theme Yun
2
+
3
+ theme:
4
+ outlineTitle: On this page
package/locales/zh-CN.yml CHANGED
@@ -1 +1,4 @@
1
1
  valaxy_theme_yun: Valaxy 主题 云
2
+
3
+ theme:
4
+ outlineTitle: 本页
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
3
  "type": "module",
4
- "version": "0.22.12",
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-addon-waline": "0.2.0",
36
- "valaxy": "0.22.12"
35
+ "valaxy": "0.22.13",
36
+ "valaxy-addon-waline": "0.2.0"
37
37
  },
38
38
  "scripts": {
39
39
  "release": "bumpp && pnpm publish"