vuepress-theme-uniapp-official 1.4.28 → 1.4.29
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.
|
@@ -355,7 +355,12 @@
|
|
|
355
355
|
let categoryArr = [`category:${this.currentCategory.text}`];
|
|
356
356
|
if (this.currentCategory.text === 'uni-app') {
|
|
357
357
|
// category:uni-app OR tag:UTS OR tag:插件
|
|
358
|
-
categoryArr.push('tag:UTS', 'tag:插件')
|
|
358
|
+
categoryArr.push('tag:UTS', 'tag:插件', 'tag:全局文件')
|
|
359
|
+
categoryArr = [categoryArr];
|
|
360
|
+
}
|
|
361
|
+
if (this.currentCategory.text === 'uni-app x') {
|
|
362
|
+
// category:uni-app OR tag:UTS OR tag:插件
|
|
363
|
+
categoryArr.push('tag:插件', 'tag:教程', 'tag:工程化', 'tag:全局文件')
|
|
359
364
|
categoryArr = [categoryArr];
|
|
360
365
|
}
|
|
361
366
|
return searchClient(
|
|
@@ -2,11 +2,36 @@
|
|
|
2
2
|
import clientRootMixin from 'vuepress-plugin-juejin-style-copy/clientRootMixin'
|
|
3
3
|
import Popover from './Popover.vue'
|
|
4
4
|
|
|
5
|
-
const qrCodeLogoD =
|
|
6
|
-
'M597.333333 597.333333h85.333334v-85.333333h85.333333v128h-85.333333v42.666667h-85.333334v-42.666667h-85.333333v-128h85.333333v85.333333z m-384-85.333333h256v256H213.333333v-256z m85.333334 85.333333v85.333334h85.333333v-85.333334H298.666667zM213.333333 213.333333h256v256H213.333333V213.333333z m85.333334 85.333334v85.333333h85.333333V298.666667H298.666667z m213.333333-85.333334h256v256h-256V213.333333z m85.333333 85.333334v85.333333h85.333334V298.666667h-85.333334z m85.333334 384h85.333333v85.333333h-85.333333v-85.333333z m-170.666667 0h85.333333v85.333333h-85.333333v-85.333333z'
|
|
7
5
|
const appRedirectKeyword = 'appRedirect'
|
|
8
6
|
let imageIndex = 0
|
|
9
7
|
|
|
8
|
+
function createSVG(h) {
|
|
9
|
+
return h(
|
|
10
|
+
'svg',
|
|
11
|
+
{
|
|
12
|
+
class: 'app-redirect-icon',
|
|
13
|
+
style: {
|
|
14
|
+
width: '26px',
|
|
15
|
+
height: '26px',
|
|
16
|
+
},
|
|
17
|
+
attrs: {
|
|
18
|
+
t: Date.now(),
|
|
19
|
+
viewBox: '0 0 1024 1024',
|
|
20
|
+
version: '1.1',
|
|
21
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
[
|
|
25
|
+
h('path', {
|
|
26
|
+
attrs: {
|
|
27
|
+
d: 'M597.333333 597.333333h85.333334v-85.333333h85.333333v128h-85.333333v42.666667h-85.333334v-42.666667h-85.333333v-128h85.333333v85.333333z m-384-85.333333h256v256H213.333333v-256z m85.333334 85.333333v85.333334h85.333333v-85.333334H298.666667zM213.333333 213.333333h256v256H213.333333V213.333333z m85.333334 85.333334v85.333333h85.333333V298.666667H298.666667z m213.333333-85.333334h256v256h-256V213.333333z m85.333333 85.333334v85.333333h85.333334V298.666667h-85.333334z m85.333334 384h85.333333v85.333333h-85.333333v-85.333333z m-170.666667 0h85.333333v85.333333h-85.333333v-85.333333z',
|
|
28
|
+
fill: '#aaa',
|
|
29
|
+
},
|
|
30
|
+
}),
|
|
31
|
+
]
|
|
32
|
+
)
|
|
33
|
+
}
|
|
34
|
+
|
|
10
35
|
export default {
|
|
11
36
|
mixins: [clientRootMixin],
|
|
12
37
|
components: { Popover },
|
|
@@ -47,7 +72,7 @@ export default {
|
|
|
47
72
|
onClick(index) {
|
|
48
73
|
this.activeIndex = index
|
|
49
74
|
},
|
|
50
|
-
createQRCodeSVG(h
|
|
75
|
+
createQRCodeSVG(h) {
|
|
51
76
|
if (this.appRedirectSrc) {
|
|
52
77
|
return h(
|
|
53
78
|
'a',
|
|
@@ -92,33 +117,7 @@ export default {
|
|
|
92
117
|
'font-size': '14px',
|
|
93
118
|
},
|
|
94
119
|
},
|
|
95
|
-
[
|
|
96
|
-
h(
|
|
97
|
-
'svg',
|
|
98
|
-
{
|
|
99
|
-
class: 'app-redirect-icon',
|
|
100
|
-
style: {
|
|
101
|
-
width: '26px',
|
|
102
|
-
height: '26px',
|
|
103
|
-
},
|
|
104
|
-
attrs: {
|
|
105
|
-
t: Date.now(),
|
|
106
|
-
viewBox: '0 0 1024 1024',
|
|
107
|
-
version: '1.1',
|
|
108
|
-
xmlns: 'http://www.w3.org/2000/svg',
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
[
|
|
112
|
-
h('path', {
|
|
113
|
-
attrs: {
|
|
114
|
-
d: qrCodeLogoD,
|
|
115
|
-
fill: '#aaa',
|
|
116
|
-
},
|
|
117
|
-
}),
|
|
118
|
-
]
|
|
119
|
-
),
|
|
120
|
-
h('span', null, ' 扫码体验(手机浏览器跳转到App直达页)'),
|
|
121
|
-
]
|
|
120
|
+
[createSVG(h), h('span', null, ' 扫码体验(手机浏览器跳转到App直达页)')]
|
|
122
121
|
),
|
|
123
122
|
default: props =>
|
|
124
123
|
h(
|
|
@@ -241,7 +240,6 @@ export default {
|
|
|
241
240
|
if (boxObj.length > 0) {
|
|
242
241
|
return h('div', null, [appRedirectQrCode, this.wrapHeader(h, boxObj)])
|
|
243
242
|
} else {
|
|
244
|
-
console.log('this.src :>> ', this.src)
|
|
245
243
|
if (this.src) {
|
|
246
244
|
return h('div', null, [appRedirectQrCode, this.renderDom(h, this.$slots.default)])
|
|
247
245
|
} else {
|
|
@@ -327,9 +325,7 @@ export default {
|
|
|
327
325
|
div[class*="language-"]
|
|
328
326
|
margin 0 !important
|
|
329
327
|
|
|
330
|
-
|
|
331
|
-
display: none
|
|
332
|
-
} */
|
|
328
|
+
|
|
333
329
|
::-webkit-scrollbar {
|
|
334
330
|
width: 8px !important;
|
|
335
331
|
height: 8px !important;
|