diff --git a/docs/package.json b/docs/package.json
index ecd11ac..afec121 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -17,7 +17,8 @@
"devDependencies": {
"gh-pages": "^5.0.0",
"vuepress": "^1.5.3",
- "vuepress-plugin-code-copy": "^1.0.6"
+ "vuepress-plugin-code-copy": "^1.0.6",
+ "vuepress-plugin-fulltext-search": "^2.2.1"
},
"dependencies": {
"vuex": "^4.1.0"
diff --git a/docs/src/.vuepress/config.js b/docs/src/.vuepress/config.js
index 0f6d4e2..3ae79b8 100644
--- a/docs/src/.vuepress/config.js
+++ b/docs/src/.vuepress/config.js
@@ -54,7 +54,7 @@ module.exports = {
* ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html
*/
themeConfig: {
- searchPlaceholder: "Search",
+ searchPlaceholder: "Ctrl + K",
repo: "",
editLinks: false,
docsDir: "",
@@ -74,5 +74,5 @@ module.exports = {
/**
* Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/
*/
- plugins: ["@vuepress/plugin-back-to-top", "@vuepress/plugin-medium-zoom", 'vuepress-plugin-code-copy'],
+ plugins: ["@vuepress/plugin-back-to-top", "@vuepress/plugin-medium-zoom", 'vuepress-plugin-code-copy', 'fulltext-search'],
};
diff --git a/docs/src/.vuepress/theme/components/SearchModal.vue b/docs/src/.vuepress/theme/components/SearchModal.vue
index 6aa77b5..a0fad7d 100644
--- a/docs/src/.vuepress/theme/components/SearchModal.vue
+++ b/docs/src/.vuepress/theme/components/SearchModal.vue
@@ -31,9 +31,12 @@
>
{{ s.title || s.path }}
-
+
+
@@ -43,7 +46,8 @@