valaxy 0.18.4 → 0.18.6

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.
@@ -3,7 +3,13 @@ import { computed, unref } from 'vue'
3
3
  import type { Post } from '../../types'
4
4
  import { useSiteStore } from '../stores'
5
5
 
6
+ /**
7
+ * 基础分类
8
+ */
6
9
  export interface BaseCategory {
10
+ /**
11
+ * 分类下的文章数量
12
+ */
7
13
  total: number
8
14
  }
9
15
 
@@ -1,5 +1,11 @@
1
1
  export interface ScrollToOptions {
2
+ /**
3
+ * 平滑滚动
4
+ */
2
5
  smooth: boolean
6
+ /**
7
+ * 滚动目标的 padding
8
+ */
3
9
  targetPadding: number
4
10
  }
5
11
 
@@ -1,6 +1,9 @@
1
1
  import dayjs from 'dayjs'
2
+ import timezone from 'dayjs/plugin/timezone'
2
3
  import type { Post } from '../../types'
3
4
 
5
+ dayjs.extend(timezone)
6
+
4
7
  /**
5
8
  * use dayjs format date
6
9
  * @param date