@sugarat/theme 0.1.6 → 0.1.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/node.d.ts CHANGED
@@ -56,7 +56,7 @@ declare namespace Theme {
56
56
  mapping?: string;
57
57
  inputPosition?: 'top' | 'bottom';
58
58
  lang?: string;
59
- loading?: 'lazy' | '';
59
+ loading?: 'lazy' | 'auto' | 'eager';
60
60
  }
61
61
  interface HotArticle {
62
62
  title?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sugarat/theme",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "简约风的 Vitepress 博客主题,sugarat vitepress blog theme",
5
5
  "main": "src/index.ts",
6
6
  "exports": {
@@ -31,7 +31,7 @@
31
31
  :data-theme="isDark ? 'dark' : 'light'"
32
32
  :data-lang="commentConfig.lang || 'zh-CN'"
33
33
  crossorigin="anonymous"
34
- :data-loading="commentConfig.loading || ''"
34
+ :data-loading="commentConfig.loading || 'eager'"
35
35
  async
36
36
  >
37
37
  </component>
@@ -93,7 +93,10 @@ watch(
93
93
  showComment.value = false
94
94
  setTimeout(() => {
95
95
  showComment.value = true
96
- }, 100)
96
+ }, 200)
97
+ },
98
+ {
99
+ immediate: true
97
100
  }
98
101
  )
99
102
  </script>
@@ -63,7 +63,7 @@ export namespace Theme {
63
63
  mapping?: string
64
64
  inputPosition?: 'top' | 'bottom'
65
65
  lang?: string
66
- loading?: 'lazy' | ''
66
+ loading?: 'lazy' | 'auto' | 'eager'
67
67
  }
68
68
 
69
69
  export interface HotArticle {
@@ -39,7 +39,7 @@ html[class='dark'] {
39
39
  }
40
40
 
41
41
  @media screen and (min-width: 960px) {
42
- #VPContent.VPContent{
42
+ #VPContent.is-home.VPContent{
43
43
  padding-top: 0;
44
44
  .VPHome{
45
45
  min-height: 100vh;