From 1ccc3f371ac3bd933a6e501624d9ca937b142d1b Mon Sep 17 00:00:00 2001 From: chansee97 Date: Sun, 5 May 2024 16:21:07 +0800 Subject: [PATCH] feat: perfect search modal --- locales/en_US.json | 3 +- locales/zh_CN.json | 3 +- src/layouts/components/header/Search.vue | 184 ++++++++++++++++++++--- src/styles/index.css | 1 + src/styles/navie.css | 3 + 5 files changed, 170 insertions(+), 24 deletions(-) create mode 100644 src/styles/navie.css diff --git a/locales/en_US.json b/locales/en_US.json index 2e055e5..0a0177a 100644 --- a/locales/en_US.json +++ b/locales/en_US.json @@ -4,7 +4,8 @@ "confirm": "Confirm", "close": "Closure", "reload": "Refresh", - "choose": "Choose" + "choose": "Choose", + "navigate": "Navigate" }, "app": { "loginOut": "Login out", diff --git a/locales/zh_CN.json b/locales/zh_CN.json index 7320587..ff451b0 100644 --- a/locales/zh_CN.json +++ b/locales/zh_CN.json @@ -4,7 +4,8 @@ "cancel": "取消", "reload": "刷新", "close": "关闭", - "choose": "选择" + "choose": "选择", + "navigate": "切换" }, "app": { "loginOut": "退出登录", diff --git a/src/layouts/components/header/Search.vue b/src/layouts/components/header/Search.vue index e840ec2..35b0146 100644 --- a/src/layouts/components/header/Search.vue +++ b/src/layouts/components/header/Search.vue @@ -1,20 +1,44 @@ diff --git a/src/styles/index.css b/src/styles/index.css index c09a6a2..1402238 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -1,5 +1,6 @@ @import './reset.css'; @import './transition.css'; +@import './navie.css'; html, body, diff --git a/src/styles/navie.css b/src/styles/navie.css new file mode 100644 index 0000000..cae5ce5 --- /dev/null +++ b/src/styles/navie.css @@ -0,0 +1,3 @@ +.n-modal-mask { + backdrop-filter: blur(2px); +}