vuepress-theme-uniapp-official 1.4.41 → 1.4.42
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/global-components/CodeSimulator.vue +6 -1
- package/index.js +4 -1
- package/package.json +6 -2
|
@@ -198,6 +198,7 @@ export default {
|
|
|
198
198
|
const columns = this.$slots.default || []
|
|
199
199
|
let boxObj = []
|
|
200
200
|
let realDom = []
|
|
201
|
+
let noscriptDom = []
|
|
201
202
|
columns.forEach((v, i) => {
|
|
202
203
|
if (v.tag && v.children) {
|
|
203
204
|
realDom.push(v)
|
|
@@ -235,11 +236,15 @@ export default {
|
|
|
235
236
|
}
|
|
236
237
|
}
|
|
237
238
|
}
|
|
239
|
+
|
|
240
|
+
if (vnode.tag === 'noscript') {
|
|
241
|
+
noscriptDom.push(vnode)
|
|
242
|
+
}
|
|
238
243
|
}
|
|
239
244
|
this.firstRender = false
|
|
240
245
|
const appRedirectQrCode = this.createQRCodeSVG(h)
|
|
241
246
|
if (boxObj.length > 0) {
|
|
242
|
-
return h('div', null, [appRedirectQrCode, this.wrapHeader(h, boxObj)])
|
|
247
|
+
return h('div', null, [appRedirectQrCode, this.wrapHeader(h, boxObj), noscriptDom])
|
|
243
248
|
} else {
|
|
244
249
|
if (this.src) {
|
|
245
250
|
return h('div', null, [appRedirectQrCode, this.renderDom(h, this.$slots.default)])
|
package/index.js
CHANGED
|
@@ -152,7 +152,10 @@ module.exports = (themeConfig, ctx, pluginAPI) => {
|
|
|
152
152
|
return hashNotFound || replaceHtmlExtToMd || fileNotFound || hashShouldSlugify
|
|
153
153
|
}
|
|
154
154
|
}],
|
|
155
|
-
'expandable-row'
|
|
155
|
+
'expandable-row',
|
|
156
|
+
['noscript-code', {
|
|
157
|
+
AIPrompt: 'AI Prompt:示例源码如下(仅在无脚本环境下可见)'
|
|
158
|
+
}]
|
|
156
159
|
]
|
|
157
160
|
}
|
|
158
161
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vuepress-theme-uniapp-official",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.42",
|
|
4
4
|
"description": "uni-app official website theme for vuepress",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -43,14 +43,18 @@
|
|
|
43
43
|
"vuepress-plugin-mermaidjs": "1.9.1",
|
|
44
44
|
"vuepress-plugin-named-chunks": "^1.1.4",
|
|
45
45
|
"vuepress-plugin-zooming": "^1.1.8",
|
|
46
|
+
"vuepress-plugin-check-md2": "^1.0.5",
|
|
46
47
|
"vuepress-plugin-expandable-row": "^1.0.10",
|
|
47
|
-
"vuepress-plugin-
|
|
48
|
+
"vuepress-plugin-noscript-code": "^1.0.0"
|
|
48
49
|
},
|
|
49
50
|
"resolutions": {
|
|
50
51
|
"terser-webpack-plugin": "1.4.6",
|
|
51
52
|
"markdown-it": "< 14",
|
|
52
53
|
"vue": "2.7.16"
|
|
53
54
|
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"vue": "2.7.16"
|
|
57
|
+
},
|
|
54
58
|
"scripts": {
|
|
55
59
|
"publish:patch": "npm version patch && npm publish",
|
|
56
60
|
"publish:minor": "npm version minor && npm publish",
|