Skip to content

Commit 9092d3b

Browse files
author
piexlmax
committed
fixed:issue#1321
1 parent 7680414 commit 9092d3b

File tree

2 files changed

+31
-23
lines changed

2 files changed

+31
-23
lines changed

web/src/style/main.scss

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,10 +1081,22 @@ $mainHight: 100vh;
10811081

10821082
.transition-box {
10831083
overflow: hidden;
1084-
width: 120px;
1084+
width: 160px;
10851085
margin-right: 32px;
10861086
text-align: center;
10871087
margin-top: -12px;
1088+
.el-input__wrapper{
1089+
.el-input__inner{
1090+
height: 100%;
1091+
}
1092+
box-shadow: none !important;
1093+
}
1094+
.el-select .el-input .el-input__wrapper.is-focus{
1095+
box-shadow: none !important;
1096+
}
1097+
.el-select .el-input.is-focus .el-input__wrapper{
1098+
box-shadow: none !important;
1099+
}
10881100
}
10891101

10901102
.screenfull {

web/src/view/layout/search/search.vue

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
<template>
22
<div class="search-component">
3-
<transition name="el-fade-in-linear">
4-
<div v-show="show" class="transition-box" style="display: inline-block;">
5-
<el-select
6-
ref="searchInput"
7-
v-model="value"
8-
filterable
9-
placeholder="请选择"
10-
@blur="hiddenSearch"
11-
@change="changeRouter"
12-
>
13-
<el-option
14-
v-for="item in routerStore.routerList"
15-
:key="item.value"
16-
:label="item.label"
17-
:value="item.value"
18-
/>
19-
</el-select>
20-
</div>
21-
</transition>
3+
<div v-if="show" class="transition-box" style="display: inline-block;">
4+
<el-select
5+
ref="searchInput"
6+
v-model="value"
7+
filterable
8+
placeholder="请选择"
9+
@blur="hiddenSearch"
10+
@change="changeRouter"
11+
>
12+
<el-option
13+
v-for="item in routerStore.routerList"
14+
:key="item.value"
15+
:label="item.label"
16+
:value="item.value"
17+
/>
18+
</el-select>
19+
</div>
2220
<div
2321
v-if="btnShow"
2422
class="user-box"
@@ -73,9 +71,7 @@ const show = ref(false)
7371
const btnShow = ref(true)
7472
const hiddenSearch = () => {
7573
show.value = false
76-
setTimeout(() => {
77-
btnShow.value = true
78-
}, 500)
74+
btnShow.value = true
7975
}
8076
8177
const searchInput = ref(null)

0 commit comments

Comments
 (0)