valaxy-theme-yun 0.12.5 → 0.12.7
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/YunAside.vue
CHANGED
@@ -46,7 +46,8 @@ const app = useAppStore()
|
|
46
46
|
top: 0;
|
47
47
|
bottom: 0;
|
48
48
|
|
49
|
-
|
49
|
+
// need fixed width
|
50
|
+
width: var(--va-sidebar-width, 300px);
|
50
51
|
|
51
52
|
transform: translateX(100%);
|
52
53
|
|
@@ -77,5 +78,6 @@ const app = useAppStore()
|
|
77
78
|
.toc-btn {
|
78
79
|
color: var(--va-c-primary);
|
79
80
|
background-color: white;
|
81
|
+
z-index: var(--yun-z-toc-btn);
|
80
82
|
}
|
81
83
|
</style>
|
@@ -1,11 +1,18 @@
|
|
1
|
+
<script lang="ts" setup>
|
2
|
+
defineProps<{
|
3
|
+
content: string
|
4
|
+
}>()
|
5
|
+
</script>
|
6
|
+
|
1
7
|
<template>
|
2
|
-
<div class="yun-
|
8
|
+
<div class="yun-notice">
|
9
|
+
<span v-html="content" />
|
3
10
|
<slot />
|
4
11
|
</div>
|
5
12
|
</template>
|
6
13
|
|
7
14
|
<style>
|
8
|
-
.yun-
|
15
|
+
.yun-notice {
|
9
16
|
border: 1px solid var(--va-c-text);
|
10
17
|
width: calc(100% - 2rem);
|
11
18
|
|
package/layouts/home.vue
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
<script lang="ts" setup>
|
2
2
|
import { useAppStore, useLayout } from 'valaxy'
|
3
|
+
import { useThemeConfig } from '../composables'
|
3
4
|
|
4
5
|
const app = useAppStore()
|
5
6
|
const isHome = useLayout('home')
|
7
|
+
const themeConfig = useThemeConfig()
|
6
8
|
</script>
|
7
9
|
|
8
10
|
<template>
|
@@ -14,7 +16,11 @@ const isHome = useLayout('home')
|
|
14
16
|
</ValaxySidebar>
|
15
17
|
|
16
18
|
<YunBanner />
|
17
|
-
<YunSay w="full" />
|
19
|
+
<YunSay v-if="themeConfig.say.enable" w="full" />
|
20
|
+
<YunNotice
|
21
|
+
v-if="themeConfig.notice.enable"
|
22
|
+
:content="themeConfig.notice.content" mt="4"
|
23
|
+
/>
|
18
24
|
|
19
25
|
<slot name="board" />
|
20
26
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "valaxy-theme-yun",
|
3
|
-
"version": "0.12.
|
3
|
+
"version": "0.12.7",
|
4
4
|
"author": {
|
5
5
|
"email": "me@yunyoujun.cn",
|
6
6
|
"name": "YunYouJun",
|
@@ -18,10 +18,10 @@
|
|
18
18
|
"types": "types/index.d.ts",
|
19
19
|
"dependencies": {
|
20
20
|
"@iconify-json/ant-design": "^1.1.4",
|
21
|
-
"@iconify-json/simple-icons": "^1.1.
|
22
|
-
"valaxy-addon-waline": "0.0.
|
21
|
+
"@iconify-json/simple-icons": "^1.1.41",
|
22
|
+
"valaxy-addon-waline": "0.0.8"
|
23
23
|
},
|
24
24
|
"devDependencies": {
|
25
|
-
"valaxy": "0.12.
|
25
|
+
"valaxy": "0.12.7"
|
26
26
|
}
|
27
27
|
}
|
package/styles/vars.scss
CHANGED