valaxy-theme-yun 0.14.29 → 0.14.31

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.
@@ -23,12 +23,12 @@ const chars = computed(() => {
23
23
  // height of top/bottom line
24
24
  const lineH = computed(() => chars.value.reduce((a, b) => a + b, 0) / 2)
25
25
 
26
- const bannerStyles = ref()
26
+ const bannerStyles = ref<CSSProperties>()
27
27
  onBeforeMount(() => {
28
28
  bannerStyles.value = {
29
29
  '--banner-height': `${window.innerHeight}px`,
30
30
  '--banner-line-height': `calc(var(--banner-height, 100vh) / 2 - ${lineH.value}rem)`,
31
- } as CSSProperties
31
+ }
32
32
  })
33
33
  </script>
34
34
 
@@ -38,7 +38,7 @@ const YunAlgoliaSearch = isAlgolia.value
38
38
  @use 'valaxy/client/styles/vars.scss' as *;
39
39
 
40
40
  .search-btn {
41
- position: fixed;
41
+ position: absolute;
42
42
  top: 0.6rem;
43
43
  right: 0.8rem;
44
44
 
@@ -9,9 +9,5 @@ useTwikooWithOptions()
9
9
  </template>
10
10
 
11
11
  <style lang="scss">
12
- // custom twikoo style
13
- #twikoo .el-loading-spinner {
14
- top: 65%;
15
- right: -50%;
16
- }
12
+ @use 'valaxy-addon-twikoo/client/styles/index.scss';
17
13
  </style>
@@ -1,3 +1,7 @@
1
+ <script lang="ts" setup>
2
+ import { asAny } from 'valaxy'
3
+ </script>
4
+
1
5
  <template>
2
6
  <ValaxySidebar>
3
7
  <slot name="sidebar">
@@ -9,7 +13,7 @@
9
13
  </ValaxySidebar>
10
14
 
11
15
  <router-view v-slot="{ Component }">
12
- <component :is="Component">
16
+ <component :is="asAny(Component)">
13
17
  <template #main-header>
14
18
  <slot name="main-header" />
15
19
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
- "version": "0.14.29",
3
+ "version": "0.14.31",
4
4
  "author": {
5
5
  "email": "me@yunyoujun.cn",
6
6
  "name": "YunYouJun",
@@ -18,12 +18,12 @@
18
18
  "types": "types/index.d.ts",
19
19
  "dependencies": {
20
20
  "@iconify-json/ant-design": "^1.1.5",
21
- "@iconify-json/simple-icons": "^1.1.54",
21
+ "@iconify-json/simple-icons": "^1.1.55",
22
22
  "animejs": "^3.2.1",
23
23
  "valaxy-addon-waline": "0.1.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/animejs": "^3.1.7",
27
- "valaxy": "0.14.29"
27
+ "valaxy": "0.14.31"
28
28
  }
29
29
  }