vitepress-theme-teek 1.3.2 → 1.3.4

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.
Files changed (92) hide show
  1. package/es/components/common/ArticlePage/src/instance.d.ts +1 -1
  2. package/es/components/common/Avatar/src/avatar.d.ts +1 -1
  3. package/es/components/common/Breadcrumb/src/namespace.d.ts +1 -1
  4. package/es/components/common/Message/src/message.d.ts +1 -1
  5. package/es/components/common/Pagination/src/components/next.d.ts +1 -1
  6. package/es/components/common/Pagination/src/components/prev.d.ts +1 -1
  7. package/es/components/common/Pagination/src/pagination.d.ts +1 -1
  8. package/es/components/common/Segmented/src/instance.d.ts +1 -1
  9. package/es/components/common/Segmented/src/segmented.d.ts +1 -1
  10. package/es/components/common/VpContainer/src/index.vue2.mjs +7 -13
  11. package/es/components/common/index.mjs +5 -5
  12. package/es/components/theme/ArticleOverviewPage/src/index.vue2.mjs +5 -2
  13. package/es/components/theme/ArticleTitle/src/index.vue.d.ts +1 -1
  14. package/es/components/theme/ConfigProvider/index.d.ts +1 -1
  15. package/es/components/theme/Layout/src/index.vue2.mjs +16 -2
  16. package/es/components/theme/LoginPage/src/index.vue2.mjs +7 -7
  17. package/es/components/theme/LoginPage/src/login.d.ts +1 -1
  18. package/es/components/theme/RightBottomButton/src/namespace.d.ts +1 -1
  19. package/es/components/theme/ThemeEnhance/src/components/BaseTemplate.vue.d.ts +1 -1
  20. package/es/components/theme/ThemeEnhance/src/components/Title.vue.d.ts +1 -1
  21. package/es/components/theme/ThemeEnhance/src/index.vue2.mjs +1 -1
  22. package/es/components/theme/ThemeEnhance/src/namespace.d.ts +1 -1
  23. package/es/config/interface/appreciation.d.ts +1 -1
  24. package/es/config/interface/articleAnalyze.d.ts +1 -1
  25. package/es/config/interface/articleShare.d.ts +1 -1
  26. package/es/config/interface/blogger.d.ts +1 -1
  27. package/es/config/interface/codeBlock.d.ts +1 -1
  28. package/es/config/interface/friendLink.d.ts +1 -1
  29. package/es/config/interface/notice.d.ts +1 -1
  30. package/es/config/interface/post.d.ts +2 -2
  31. package/es/config/interface/social.d.ts +1 -1
  32. package/es/config/types.d.ts +10 -2
  33. package/es/hooks/cssModule/namespace.module.scss.d.ts +8 -0
  34. package/es/icons.d.ts +1 -1
  35. package/es/index.css +1 -1
  36. package/es/index.d.ts +7 -7
  37. package/es/version.d.ts +1 -1
  38. package/es/version.mjs +1 -1
  39. package/index.css +1 -1
  40. package/index.js +42 -33
  41. package/index.min.js +70 -70
  42. package/index.min.mjs +75 -75
  43. package/index.mjs +42 -33
  44. package/lib/components/common/ArticlePage/src/instance.d.ts +1 -1
  45. package/lib/components/common/Avatar/src/avatar.d.ts +1 -1
  46. package/lib/components/common/Breadcrumb/src/namespace.d.ts +1 -1
  47. package/lib/components/common/Message/src/message.d.ts +1 -1
  48. package/lib/components/common/Pagination/src/components/next.d.ts +1 -1
  49. package/lib/components/common/Pagination/src/components/prev.d.ts +1 -1
  50. package/lib/components/common/Pagination/src/pagination.d.ts +1 -1
  51. package/lib/components/common/Segmented/src/instance.d.ts +1 -1
  52. package/lib/components/common/Segmented/src/segmented.d.ts +1 -1
  53. package/lib/components/common/VpContainer/src/index.vue2.js +6 -12
  54. package/lib/components/common/index.js +16 -16
  55. package/lib/components/theme/ArticleOverviewPage/src/index.vue2.js +4 -1
  56. package/lib/components/theme/ArticleTitle/src/index.vue.d.ts +1 -1
  57. package/lib/components/theme/ConfigProvider/index.d.ts +1 -1
  58. package/lib/components/theme/Layout/src/index.vue2.js +16 -2
  59. package/lib/components/theme/LoginPage/src/index.vue2.js +6 -6
  60. package/lib/components/theme/LoginPage/src/login.d.ts +1 -1
  61. package/lib/components/theme/RightBottomButton/src/namespace.d.ts +1 -1
  62. package/lib/components/theme/ThemeEnhance/src/components/BaseTemplate.vue.d.ts +1 -1
  63. package/lib/components/theme/ThemeEnhance/src/components/Title.vue.d.ts +1 -1
  64. package/lib/components/theme/ThemeEnhance/src/index.vue2.js +1 -1
  65. package/lib/components/theme/ThemeEnhance/src/namespace.d.ts +1 -1
  66. package/lib/config/interface/appreciation.d.ts +1 -1
  67. package/lib/config/interface/articleAnalyze.d.ts +1 -1
  68. package/lib/config/interface/articleShare.d.ts +1 -1
  69. package/lib/config/interface/blogger.d.ts +1 -1
  70. package/lib/config/interface/codeBlock.d.ts +1 -1
  71. package/lib/config/interface/friendLink.d.ts +1 -1
  72. package/lib/config/interface/notice.d.ts +1 -1
  73. package/lib/config/interface/post.d.ts +2 -2
  74. package/lib/config/interface/social.d.ts +1 -1
  75. package/lib/config/types.d.ts +10 -2
  76. package/lib/hooks/cssModule/namespace.module.scss.d.ts +8 -0
  77. package/lib/icons.d.ts +1 -1
  78. package/lib/index.css +1 -1
  79. package/lib/index.d.ts +7 -7
  80. package/lib/version.d.ts +1 -1
  81. package/lib/version.js +1 -1
  82. package/package.json +1 -1
  83. package/theme-chalk/index.css +1 -1
  84. package/theme-chalk/src/components/common/article-page.scss +1 -1
  85. package/theme-chalk/src/components/theme/login-page.scss +14 -0
  86. package/theme-chalk/tk-base.css +1 -1
  87. package/theme-chalk/tk-login-page.css +1 -1
  88. package/6460aaa01f572ba7.png +0 -0
  89. package/es/6460aaa01f572ba7.png +0 -0
  90. package/es/static/img/loginBg.png.mjs +0 -3
  91. package/lib/6460aaa01f572ba7.png +0 -0
  92. package/lib/static/img/loginBg.png.js +0 -7
@@ -1,4 +1,4 @@
1
1
  import { default as ArticlePage } from './index.vue';
2
- import { default as DocAsideOutlineItem } from './src/components/DocAsideOutlineItem.vue';
2
+ import { default as DocAsideOutlineItem } from './components/DocAsideOutlineItem.vue';
3
3
  export type TkArticlePageInstance = InstanceType<typeof ArticlePage>;
4
4
  export type TkDocAsideOutlineItemInstance = InstanceType<typeof DocAsideOutlineItem>;
@@ -1,4 +1,4 @@
1
- import { TkIconProps } from '@teek/components/common/Icon';
1
+ import { TkIconProps } from '../../Icon';
2
2
  export interface AvatarProps {
3
3
  /**
4
4
  * 头像大小
@@ -1,4 +1,4 @@
1
- import { ScssVariables } from 'packages/hooks/cssModule/namespace.module.scss';
1
+ import { ScssVariables } from '../../../../hooks/cssModule/namespace.module.scss';
2
2
  export declare const ns: {
3
3
  namespaceModule: ScssVariables;
4
4
  namespace: string;
@@ -1,5 +1,5 @@
1
1
  import { AppContext, VNode } from 'vue';
2
- import { TkIconProps } from '@teek/components/common/Icon';
2
+ import { TkIconProps } from '../../Icon';
3
3
  export declare const messageTypes: readonly ["primary", "success", "info", "warning", "error"];
4
4
  export type MessageType = (typeof messageTypes)[number];
5
5
  export interface MessageConfigContext {
@@ -1,5 +1,5 @@
1
1
  import { default as Next } from './next.vue';
2
- import { TkIconProps } from '@teek/components/common/Icon';
2
+ import { TkIconProps } from '../../../Icon';
3
3
  export interface PaginationNextProps {
4
4
  /**
5
5
  * 是否禁用
@@ -1,5 +1,5 @@
1
1
  import { default as Prev } from './prev.vue';
2
- import { TkIconProps } from '@teek/components/common/Icon';
2
+ import { TkIconProps } from '../../../Icon';
3
3
  export interface PaginationPrevProps {
4
4
  /**
5
5
  * 是否禁用
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef, InjectionKey, ModelRef } from 'vue';
2
- import { TkIconProps } from '@teek/components/common/Icon';
2
+ import { TkIconProps } from '../../Icon';
3
3
  export interface PaginationContext {
4
4
  currentPage?: ModelRef<number>;
5
5
  pageCount?: ComputedRef<number>;
@@ -1,4 +1,4 @@
1
- import { default as Segmented } from './index.vue';
1
+ import { default as Segmented } from './Segmented.vue';
2
2
  import { default as SegmentedItem } from './SegmentedItem.vue';
3
3
  export type TkSegmentedInstance = InstanceType<typeof Segmented>;
4
4
  export type TkSegmentedItemInstance = InstanceType<typeof SegmentedItem>;
@@ -1,4 +1,4 @@
1
- import { TkIconProps } from '@teek/components/common/Icon';
1
+ import { TkIconProps } from '../../Icon';
2
2
  export type ModelType = string | number | object | boolean;
3
3
  export interface SegmentedProps {
4
4
  options: SegmentedOption[];
@@ -1,4 +1,4 @@
1
- import { defineComponent, useSlots, computed, createElementBlock, createCommentVNode, openBlock, normalizeClass, unref, createElementVNode, renderSlot, createTextVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, useSlots, computed, createElementBlock, createCommentVNode, openBlock, normalizeClass, unref, createElementVNode, renderSlot } from 'vue';
2
2
  import 'vitepress';
3
3
  import { useNamespace } from '../../../../hooks/useNamespace.mjs';
4
4
  import '../../../../hooks/useZIndex.mjs';
@@ -7,7 +7,9 @@ const _hoisted_1 = {
7
7
  key: 0,
8
8
  class: "custom-block-title"
9
9
  };
10
- const _hoisted_2 = { key: 1 };
10
+ const _hoisted_2 = ["innerHTML"];
11
+ const _hoisted_3 = { key: 1 };
12
+ const _hoisted_4 = ["innerHTML"];
11
13
  var _sfc_main = /* @__PURE__ */ defineComponent({
12
14
  ...{ name: "VpContainer" },
13
15
  __name: "index",
@@ -37,20 +39,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
37
39
  [
38
40
  hasTitle.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
39
41
  renderSlot(_ctx.$slots, "title", {}, () => [
40
- createTextVNode(
41
- toDisplayString(_ctx.title),
42
- 1
43
- /* TEXT */
44
- )
42
+ createElementVNode("span", { innerHTML: _ctx.title }, null, 8, _hoisted_2)
45
43
  ])
46
44
  ])) : createCommentVNode("v-if", true),
47
- hasText.value ? (openBlock(), createElementBlock("p", _hoisted_2, [
45
+ hasText.value ? (openBlock(), createElementBlock("p", _hoisted_3, [
48
46
  renderSlot(_ctx.$slots, "default", {}, () => [
49
- createTextVNode(
50
- toDisplayString(_ctx.text),
51
- 1
52
- /* TEXT */
53
- )
47
+ createElementVNode("span", { innerHTML: _ctx.text }, null, 8, _hoisted_4)
54
48
  ])
55
49
  ])) : createCommentVNode("v-if", true)
56
50
  ],
@@ -1,13 +1,15 @@
1
- export { createImageViewer } from './ImageViewer/index.mjs';
2
1
  export { default as TkArticlePage } from './ArticlePage/src/index.vue2.mjs';
3
2
  export { default as TkDocAsideOutline } from './ArticlePage/src/components/DocAsideOutline.vue2.mjs';
4
3
  export { default as TkAvatar } from './Avatar/src/index.vue2.mjs';
5
4
  export { default as TkBreadcrumb } from './Breadcrumb/src/Breadcrumb.vue2.mjs';
6
5
  export { default as TkBreadcrumbItem } from './Breadcrumb/src/BreadcrumbItem.vue2.mjs';
6
+ export { default as TkFocusTrap } from './FocusTrap/src/index.vue.mjs';
7
7
  export { default as TkIcon } from './Icon/src/index.vue2.mjs';
8
- export { default as TkImageViewer } from './ImageViewer/src/index.vue2.mjs';
8
+ export { addCollection as addIcons } from '@iconify/vue';
9
+ export { createImageViewer } from './ImageViewer/index.mjs';
9
10
  export { default as TkInputSlide } from './InputSlide/src/index.vue2.mjs';
10
11
  export { default as TkMessage } from './Message/src/method.mjs';
12
+ export { getInstance, getLastOffset, getOffsetOrSpace, instances } from './Message/src/instance.mjs';
11
13
  export { default as TkPagination } from './Pagination/src/index.vue2.mjs';
12
14
  export { default as TkPopover } from './Popover/src/index.vue2.mjs';
13
15
  export { default as TkSegmented } from './Segmented/src/Segmented.vue2.mjs';
@@ -16,6 +18,4 @@ export { default as TkTitleTag } from './TitleTag/src/index.vue2.mjs';
16
18
  export { default as TkTransitionCollapse } from './TransitionCollapse/src/index.vue2.mjs';
17
19
  export { default as TkVerifyCode } from './VerifyCode/src/index.vue2.mjs';
18
20
  export { default as TkVpContainer } from './VpContainer/src/index.vue2.mjs';
19
- export { default as TkFocusTrap } from './FocusTrap/src/index.vue.mjs';
20
- export { addCollection as addIcons } from '@iconify/vue';
21
- export { getInstance, getLastOffset, getOffsetOrSpace, instances } from './Message/src/instance.mjs';
21
+ export { default as TkImageViewer } from './ImageViewer/src/index.vue2.mjs';
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, resolveComponent, createBlock, openBlock, unref, normalizeClass, withCtx, createElementBlock, createCommentVNode, createVNode, createTextVNode, createElementVNode, toDisplayString, Fragment, renderList } from 'vue';
1
+ import { defineComponent, computed, resolveComponent, createBlock, openBlock, unref, normalizeClass, withCtx, createElementBlock, createCommentVNode, createVNode, createTextVNode, createElementVNode, toDisplayString, Fragment, renderList, resolveDynamicComponent } from 'vue';
2
2
  import { useData, withBase } from 'vitepress';
3
3
  import { formatDate } from '../../../../helper/dist/index.mjs';
4
4
  import { useLocale } from '../../../../hooks/useLocale.mjs';
@@ -6,6 +6,7 @@ import { useNamespace } from '../../../../hooks/useNamespace.mjs';
6
6
  import '../../../../hooks/useZIndex.mjs';
7
7
  import { usePosts, useTeekConfig } from '../../ConfigProvider/index.mjs';
8
8
  import _sfc_main$1 from '../../../common/ArticlePage/src/index.vue2.mjs';
9
+ import { createDynamicComponent } from '../../ArticleTitle/src/compile.mjs';
9
10
 
10
11
  const _hoisted_1 = { key: 0 };
11
12
  const _hoisted_2 = ["href", "aria-label"];
@@ -167,7 +168,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
167
168
  createElementVNode("a", {
168
169
  href: data.url && unref(withBase)(data.url),
169
170
  "aria-label": data.title
170
- }, toDisplayString(data.title), 9, _hoisted_7)
171
+ }, [
172
+ data.title ? (openBlock(), createBlock(resolveDynamicComponent(unref(createDynamicComponent)(data.title)), { key: 0 })) : createCommentVNode("v-if", true)
173
+ ], 8, _hoisted_7)
171
174
  ]),
172
175
  createElementVNode(
173
176
  "td",
@@ -1,5 +1,5 @@
1
1
  import { TkContentData } from '../../../../config';
2
- import { TkTitleTagProps } from '@teek/components/common/TitleTag';
2
+ import { TkTitleTagProps } from '../../../common/TitleTag';
3
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
4
  type __VLS_Props = {
5
5
  post: TkContentData;
@@ -1,4 +1,4 @@
1
- import { PostData } from '@teek/config/post/types';
1
+ import { PostData } from '../../../config/post/types';
2
2
  import { TeekConfig } from '../../../config';
3
3
  import { Component, Ref, InjectionKey, DefineComponent, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComputedRef } from 'vue';
4
4
  export declare const postsContext: InjectionKey<PostData>;
@@ -65,6 +65,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
65
65
  comment: { provider: "" },
66
66
  articleUpdate: { enabled: true },
67
67
  articleTopTip: void 0,
68
+ articleBottomTip: void 0,
68
69
  articleShare: {},
69
70
  appreciation: {},
70
71
  riskLink: { enabled: false }
@@ -87,6 +88,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
87
88
  const topTipConfig = computed(() => {
88
89
  return teekConfig.value.articleTopTip?.(frontmatter.value, localeIndex.value, page.value);
89
90
  });
91
+ const bottomTipConfig = computed(() => {
92
+ return teekConfig.value.articleBottomTip?.(frontmatter.value, localeIndex.value, page.value);
93
+ });
90
94
  const themeSizeAttribute = ns.joinNamespace("theme-size");
91
95
  watch(
92
96
  () => teekConfig.value.themeSize,
@@ -111,6 +115,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
111
115
  "home-hero-before",
112
116
  "nav-bar-content-after",
113
117
  "layout-bottom",
118
+ "doc-footer-before",
114
119
  "doc-before",
115
120
  "doc-after",
116
121
  "aside-bottom",
@@ -237,10 +242,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
237
242
  "sidebar-nav-before": withCtx(() => [
238
243
  createVNode(unref(_sfc_main$o))
239
244
  ]),
245
+ "doc-footer-before": withCtx(() => [
246
+ bottomTipConfig.value ? (openBlock(), createBlock(
247
+ unref(_sfc_main$n),
248
+ normalizeProps(mergeProps({ key: 0 }, bottomTipConfig.value)),
249
+ null,
250
+ 16
251
+ /* FULL_PROPS */
252
+ )) : createCommentVNode("v-if", true)
253
+ ]),
240
254
  "doc-before": withCtx(() => [
241
255
  renderSlot(_ctx.$slots, "doc-before"),
242
256
  renderSlot(_ctx.$slots, "teek-article-analyze-before"),
243
257
  unref(frontmatter).article !== false ? (openBlock(), createBlock(unref(_sfc_main$j), { key: 0 })) : createCommentVNode("v-if", true),
258
+ renderSlot(_ctx.$slots, "teek-article-analyze-after"),
244
259
  createVNode(unref(_sfc_main$k)),
245
260
  createVNode(unref(_sfc_main$l)),
246
261
  !unref(teekConfig).codeBlock.disabled ? (openBlock(), createBlock(unref(_sfc_main$m), { key: 1 })) : createCommentVNode("v-if", true),
@@ -250,8 +265,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
250
265
  null,
251
266
  16
252
267
  /* FULL_PROPS */
253
- )) : createCommentVNode("v-if", true),
254
- renderSlot(_ctx.$slots, "teek-article-analyze-after")
268
+ )) : createCommentVNode("v-if", true)
255
269
  ]),
256
270
  "doc-after": withCtx(() => [
257
271
  renderSlot(_ctx.$slots, "doc-after"),
@@ -1,10 +1,9 @@
1
1
  import { defineComponent, ref, reactive, markRaw, createElementBlock, openBlock, unref, normalizeClass, createElementVNode, createCommentVNode, toDisplayString, Fragment, renderList, createBlock, createVNode, withDirectives, withKeys, vModelDynamic, resolveDynamicComponent } from 'vue';
2
- import { useRouter, useData } from 'vitepress';
2
+ import { useRouter, useData, withBase } from 'vitepress';
3
3
  import { isClient } from '../../../../helper/dist/index.mjs';
4
4
  import { useLocale } from '../../../../hooks/useLocale.mjs';
5
5
  import { useNamespace } from '../../../../hooks/useNamespace.mjs';
6
6
  import '../../../../hooks/useZIndex.mjs';
7
- import loginBgImg from '../../../../static/img/loginBg.png.mjs';
8
7
  import userIcon from '../../../../static/icons/user.mjs';
9
8
  import refreshRightIcon from '../../../../static/icons/refreshRight.mjs';
10
9
  import successFilledIcon from '../../../../static/icons/successFilled.mjs';
@@ -41,7 +40,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
41
40
  const imgCode = ref("");
42
41
  const loginForm = reactive({
43
42
  username: {
44
- model: "teek",
43
+ model: "",
45
44
  focusModel: false,
46
45
  errorModel: false,
47
46
  icon: userIcon,
@@ -49,7 +48,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
49
48
  type: "text"
50
49
  },
51
50
  password: {
52
- model: "teek",
51
+ model: "",
53
52
  focusModel: false,
54
53
  errorModel: false,
55
54
  icon: lockIcon,
@@ -230,20 +229,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
230
229
  class: normalizeClass(unref(ns).e("wrapper"))
231
230
  },
232
231
  [
233
- createElementVNode(
232
+ unref(frontmatter).leftImg ? (openBlock(), createElementBlock(
234
233
  "div",
235
234
  {
235
+ key: 0,
236
236
  class: normalizeClass(unref(ns).e("left"))
237
237
  },
238
238
  [
239
239
  createElementVNode("img", {
240
- src: unref(loginBgImg),
240
+ src: unref(withBase)(unref(frontmatter).leftImg),
241
241
  alt: "login"
242
242
  }, null, 8, _hoisted_2)
243
243
  ],
244
244
  2
245
245
  /* CLASS */
246
- ),
246
+ )) : createCommentVNode("v-if", true),
247
247
  createElementVNode(
248
248
  "div",
249
249
  {
@@ -1,5 +1,5 @@
1
1
  import { Component, Ref } from 'vue';
2
- import { TkIconProps } from '@teek/components/common/Icon';
2
+ import { TkIconProps } from '../../../common/Icon';
3
3
  import { Private } from '../../../../config';
4
4
  /**
5
5
  * 获取登录状态的存储键
@@ -1,4 +1,4 @@
1
- import { ScssVariables } from 'packages/hooks/cssModule/namespace.module.scss';
1
+ import { ScssVariables } from '../../../../hooks/cssModule/namespace.module.scss';
2
2
  export declare const ns: {
3
3
  namespaceModule: ScssVariables;
4
4
  namespace: string;
@@ -1,4 +1,4 @@
1
- import { TkIconProps } from '@teek/components/common/Icon';
1
+ import { TkIconProps } from '../../../../common/Icon';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  interface TemplateProps {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { TkIconProps } from '@teek/components/common/Icon';
1
+ import { TkIconProps } from '../../../../common/Icon';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = {
4
4
  title?: string;
@@ -38,7 +38,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
38
38
  key: 0,
39
39
  class: normalizeClass([unref(ns).b(), unref(ns).is(_ctx.position), "flx-align-center"]),
40
40
  "popper-class": unref(ns).e("popover"),
41
- "y-offset": -10
41
+ "y-offset": -15
42
42
  }, {
43
43
  reference: withCtx(() => [
44
44
  createVNode(unref(_sfc_main$8), {
@@ -1,4 +1,4 @@
1
- import { ScssVariables } from 'packages/hooks/cssModule/namespace.module.scss';
1
+ import { ScssVariables } from '../../../../hooks/cssModule/namespace.module.scss';
2
2
  export declare const ns: {
3
3
  namespaceModule: ScssVariables;
4
4
  namespace: string;
@@ -1,4 +1,4 @@
1
- import { IconProps } from '@teek/components/common/Icon/src/icon';
1
+ import { IconProps } from '../../components/common/Icon/src/icon';
2
2
  export type Appreciation<T extends keyof AppreciationPosition = ""> = {
3
3
  /**
4
4
  * 赞赏位置
@@ -1,4 +1,4 @@
1
- import { ImageViewerProps } from '@teek/components/common/ImageViewer/src/imageViewer';
1
+ import { ImageViewerProps } from '../../components/common/ImageViewer/src/imageViewer';
2
2
  export type ArticleInfoPosition = "post" | "article";
3
3
  export interface ArticleAnalyze {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { IconProps } from '@teek/components/common/Icon/src/icon';
1
+ import { IconProps } from '../../components/common/Icon/src/icon';
2
2
  export interface ArticleShare {
3
3
  /**
4
4
  * 是否开启文章链接分享功能
@@ -1,4 +1,4 @@
1
- import { TkAvatarProps } from '@teek/components/common/Avatar';
1
+ import { TkAvatarProps } from '../../components/common/Avatar';
2
2
  export interface Blogger {
3
3
  /**
4
4
  * 博主昵称
@@ -1,4 +1,4 @@
1
- import { Message } from '@teek/components/common/Message/src/message';
1
+ import { Message } from '../../components/common/Message/src/message';
2
2
  export interface CodeBlock {
3
3
  /**
4
4
  * 是否禁用新版代码块
@@ -1,4 +1,4 @@
1
- import { ImageViewerProps } from '@teek/components/common/ImageViewer/src/imageViewer';
1
+ import { ImageViewerProps } from '../../components/common/ImageViewer/src/imageViewer';
2
2
  import { VpRouter } from '../../hooks';
3
3
  export interface FriendLink {
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { Route } from 'vitepress';
2
- import { IconProps } from '@teek/components/common/Icon/src/icon';
2
+ import { IconProps } from '../../components/common/Icon/src/icon';
3
3
  export interface Notice {
4
4
  /**
5
5
  * 是否启用公告功能
@@ -1,5 +1,5 @@
1
- import { ImageViewerProps } from '@teek/components/common/ImageViewer/src/imageViewer';
2
- import { TitleTagProps } from '@teek/components/common/TitleTag/src/titleTag';
1
+ import { ImageViewerProps } from '../../components/common/ImageViewer/src/imageViewer';
2
+ import { TitleTagProps } from '../../components/common/TitleTag/src/titleTag';
3
3
  export interface Post {
4
4
  /**
5
5
  * 文章模板风格,list 为列表风格,card 为卡片风格
@@ -1,4 +1,4 @@
1
- import { IconProps } from '@teek/components/common/Icon/src/icon';
1
+ import { IconProps } from '../../components/common/Icon/src/icon';
2
2
  export interface Social {
3
3
  /**
4
4
  * 名称,如果作用在 a 标签,则鼠标悬停显示名称,否则在页面文字显示
@@ -1,6 +1,6 @@
1
1
  import { PageData } from 'vitepress';
2
- import { VpContainerProps } from '@teek/components/common/VpContainer/src/vpContainer';
3
- import { Message } from '@teek/components/common/Message/src/message';
2
+ import { VpContainerProps } from '../components/common/VpContainer/src/vpContainer';
3
+ import { Message } from '../components/common/Message/src/message';
4
4
  import { TkPaginationProps } from '../components/common/Pagination';
5
5
  import { Appreciation, ArticleAnalyze, ArticleShare, ArticleUpdate, Author, Banner, Blogger, BodyBgImg, Breadcrumb, Category, CodeBlock, CommentConfig, DocAnalysis, FooterInfo, FooterGroup, FriendLink, ThemeEnhance, Notice, Plugins, Post, SiteAnalytics, Social, Tag, TopArticle, Wallpaper, Markdown, Private, RiskLink } from './interface';
6
6
  export type * from './interface';
@@ -91,6 +91,14 @@ export interface TeekConfig {
91
91
  * @param page 文章信息,即 useData().page 的信息
92
92
  */
93
93
  articleTopTip?: (frontmatter: PageData["frontmatter"], localeIndex: string, page: PageData) => VpContainerProps | undefined;
94
+ /**
95
+ * 文章页底部使用 VitePress 容器添加提示
96
+ *
97
+ * @param frontmatter 文档 frontmatter
98
+ * @param localeIndex 当前国际化语言
99
+ * @param page 文章信息,即 useData().page 的信息
100
+ */
101
+ articleBottomTip?: (frontmatter: PageData["frontmatter"], localeIndex: string, page: PageData) => VpContainerProps | undefined;
94
102
  /**
95
103
  * body 背景图片配置
96
104
  */
@@ -0,0 +1,8 @@
1
+ export interface ScssVariables {
2
+ [x: string]: unknown;
3
+ namespace: string;
4
+ }
5
+
6
+ export let variables: ScssVariables;
7
+
8
+ export default variables;
package/es/icons.d.ts CHANGED
@@ -1 +1 @@
1
- export * from '@teek/static/icons';
1
+ export * from './static/icons';