@vuepress-plume/plugin-search 1.0.0-rc.113 → 1.0.0-rc.115
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.
|
@@ -233,7 +233,7 @@ onKeyStroke('Enter', (e) => {
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
if (selectedPackage) {
|
|
236
|
-
router.
|
|
236
|
+
router.push(selectedPackage.id)
|
|
237
237
|
emit('close')
|
|
238
238
|
}
|
|
239
239
|
})
|
|
@@ -286,6 +286,12 @@ function formMarkRegex(terms: Set<string>) {
|
|
|
286
286
|
'gi',
|
|
287
287
|
)
|
|
288
288
|
}
|
|
289
|
+
|
|
290
|
+
function selectedClick(e: MouseEvent, p: SearchResult & Result) {
|
|
291
|
+
e.preventDefault()
|
|
292
|
+
router.push(p.id)
|
|
293
|
+
emit('close')
|
|
294
|
+
}
|
|
289
295
|
</script>
|
|
290
296
|
|
|
291
297
|
<template>
|
|
@@ -367,7 +373,7 @@ function formMarkRegex(terms: Set<string>) {
|
|
|
367
373
|
:aria-label="[...p.titles, p.title].join(' > ')"
|
|
368
374
|
@mouseenter="!disableMouseOver && (selectedIndex = index)"
|
|
369
375
|
@focusin="selectedIndex = index"
|
|
370
|
-
@click="$
|
|
376
|
+
@click="selectedClick($event, p)"
|
|
371
377
|
>
|
|
372
378
|
<div>
|
|
373
379
|
<div class="titles">
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress-plume/plugin-search",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.115",
|
|
5
5
|
"description": "The Plugin for VuePress 2 - local search",
|
|
6
6
|
"author": "pengzhanbo <volodymyr@foxmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"vuepress": "2.0.0-rc.18"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@vuepress/helper": "2.0.0-rc.
|
|
38
|
-
"@vueuse/core": "^11.
|
|
39
|
-
"@vueuse/integrations": "^11.
|
|
37
|
+
"@vuepress/helper": "2.0.0-rc.60",
|
|
38
|
+
"@vueuse/core": "^11.2.0",
|
|
39
|
+
"@vueuse/integrations": "^11.2.0",
|
|
40
40
|
"chokidar": "3.6.0",
|
|
41
41
|
"focus-trap": "^7.6.0",
|
|
42
42
|
"mark.js": "^8.11.1",
|