@sugarat/theme 0.2.24 → 0.2.25
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
package/node.js
CHANGED
|
@@ -39,7 +39,7 @@ module.exports = __toCommonJS(node_exports);
|
|
|
39
39
|
// src/utils/node/mdPlugins.ts
|
|
40
40
|
var import_module = require("module");
|
|
41
41
|
|
|
42
|
-
// ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.0.0-rc.
|
|
42
|
+
// ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.0.0-rc.45_vue@3.4.21/node_modules/vitepress-plugin-tabs/dist/index.js
|
|
43
43
|
var tabsMarker = "=tabs";
|
|
44
44
|
var tabsMarkerLen = tabsMarker.length;
|
|
45
45
|
var ruleBlockTabs = (state, startLine, endLine, silent) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sugarat/theme",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.25",
|
|
4
4
|
"description": "简约风的 Vitepress 博客主题,sugarat vitepress blog theme",
|
|
5
5
|
"author": "sugar",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"swiper": "^11.0.5",
|
|
46
46
|
"vitepress-markdown-timeline": "^1.2.1",
|
|
47
47
|
"vitepress-plugin-mermaid": "2.0.13",
|
|
48
|
-
"vitepress-plugin-pagefind": "0.2.
|
|
48
|
+
"vitepress-plugin-pagefind": "0.2.13",
|
|
49
49
|
"vitepress-plugin-rss": "0.2.2",
|
|
50
50
|
"vitepress-plugin-tabs": "0.2.0"
|
|
51
51
|
},
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"pagefind": "1.0.3",
|
|
57
57
|
"sass": "^1.56.1",
|
|
58
58
|
"typescript": "^4.8.2",
|
|
59
|
-
"vitepress": "1.0.0-rc.
|
|
60
|
-
"vue": "^3.
|
|
59
|
+
"vitepress": "1.0.0-rc.45",
|
|
60
|
+
"vue": "^3.4.21"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"dev": "npm run build:node && npm run dev:docs",
|
|
@@ -140,6 +140,8 @@ const showChangeBtn = computed(() => {
|
|
|
140
140
|
onMounted(() => {
|
|
141
141
|
// 更新当前页,确保访问页面在列表中
|
|
142
142
|
const currentPageIndex = recommendList.value.findIndex(v => isCurrentDoc(v.route))
|
|
143
|
+
if (currentPageIndex === -1)
|
|
144
|
+
return
|
|
143
145
|
const currentPageNum = Math.floor(currentPageIndex / pageSize.value) + 1
|
|
144
146
|
currentPage.value = currentPageNum
|
|
145
147
|
})
|