From a207c982b7069ba714e3cd4822dfbb5fb3b9e3c6 Mon Sep 17 00:00:00 2001 From: piexlmax Date: Sat, 18 Mar 2023 14:20:46 +0800 Subject: [PATCH] =?UTF-8?q?[fixed]:=20=E7=82=B9=E5=87=BB=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E9=A1=B9=E8=B7=B3=E8=BD=AC=E6=97=A0=E6=95=88=20#1378?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/style/main.scss | 22 +------ web/src/view/layout/search/search.vue | 90 ++++++++++++++++----------- 2 files changed, 55 insertions(+), 57 deletions(-) diff --git a/web/src/style/main.scss b/web/src/style/main.scss index 9282bef8e8..b5544af1c1 100644 --- a/web/src/style/main.scss +++ b/web/src/style/main.scss @@ -1079,26 +1079,6 @@ $mainHight: 100vh; } } -.transition-box { - overflow: hidden; - width: 160px; - margin-right: 32px; - text-align: center; - margin-top: -12px; - .el-input__wrapper{ - .el-input__inner{ - height: 100%; - } - box-shadow: none !important; - } - .el-select .el-input .el-input__wrapper.is-focus{ - box-shadow: none !important; - } - .el-select .el-input.is-focus .el-input__wrapper{ - box-shadow: none !important; - } -} - .screenfull { overflow: hidden; color: rgba($color: #000000, $alpha: 0.65); @@ -1223,4 +1203,4 @@ $mainHight: 100vh; .justify-content-flex-end { justify-content: flex-end; -} \ No newline at end of file +} diff --git a/web/src/view/layout/search/search.vue b/web/src/view/layout/search/search.vue index 527e4d28f4..777b352e07 100644 --- a/web/src/view/layout/search/search.vue +++ b/web/src/view/layout/search/search.vue @@ -1,9 +1,8 @@ @@ -61,22 +58,23 @@ const router = useRouter() const routerStore = useRouterStore() -const value = ref('') -const changeRouter = () => { - router.push({ name: value.value }) - value.value = '' +const changeRouter = (e) => { + if (e.indexOf('http:') > -1 || e.indexOf('https:') > -1) { + window.open(e) + return + } + router.push({ name: e }) } -const show = ref(false) -const btnShow = ref(true) -const hiddenSearch = () => { - show.value = false - btnShow.value = true +const show = ref(true) +const hiddenSearch = async() => { + setTimeout(() => { + show.value = false + }, 100) } const searchInput = ref(null) const showSearch = async() => { - btnShow.value = false show.value = true await nextTick() searchInput.value.focus() @@ -100,6 +98,26 @@ const toService = () => { font-size: 18px; } +.transition-box { + overflow: hidden; + width: 160px; + margin-right: 32px; + text-align: center; + ::v-deep(.el-input__wrapper){ + .el-input__inner{ + border-bottom: 1px solid var(--el-color-info-light-7); + } + box-shadow: none !important; + } + ::v-deep(.el-select .el-input .el-input__wrapper.is-focus){ + box-shadow: none !important; + } +::v-deep(.el-select .el-input.is-focus .el-input__wrapper){ + box-shadow: none !important; + } +} + + .reloading{ animation:turn 0.5s linear infinite; }