perf: 搜索框叉号样式统一,默认不显示,输入后显示
This commit is contained in:
@@ -102,8 +102,8 @@
|
|||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear-search" @click="clear_input">
|
<div v-show="clearSearchShow" class="clear-search" @click="clear_input">
|
||||||
<i class="el-icon-close"></i>
|
<i class="el-icon-circle-close"></i>
|
||||||
</div>
|
</div>
|
||||||
<div :class="input_list?'input_list none':'input_list'" @click="stop_click" id="input_list">
|
<div :class="input_list?'input_list none':'input_list'" @click="stop_click" id="input_list">
|
||||||
<ul>
|
<ul>
|
||||||
@@ -129,6 +129,7 @@
|
|||||||
name: "index",
|
name: "index",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
clearSearchShow: false,
|
||||||
select_conditionsName:'',
|
select_conditionsName:'',
|
||||||
selectInfoList: searchSelectInfo,
|
selectInfoList: searchSelectInfo,
|
||||||
select_title: '',
|
select_title: '',
|
||||||
@@ -187,6 +188,9 @@
|
|||||||
handler(newData, oldData) {
|
handler(newData, oldData) {
|
||||||
if (newData.length == 0) {
|
if (newData.length == 0) {
|
||||||
this.change_sreach_show = true;
|
this.change_sreach_show = true;
|
||||||
|
this.clearSearchShow = false;
|
||||||
|
} else {
|
||||||
|
this.clearSearchShow = true;
|
||||||
}
|
}
|
||||||
if (this.$route.path == "/alertList") {
|
if (this.$route.path == "/alertList") {
|
||||||
// 处理alertType--asset联动问题:
|
// 处理alertType--asset联动问题:
|
||||||
@@ -1426,7 +1430,7 @@
|
|||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
}
|
}
|
||||||
.select_input input{
|
.select_input input{
|
||||||
width: 100%;
|
width: calc(100% - 1px);
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border: none;
|
border: none;
|
||||||
float: left;
|
float: left;
|
||||||
|
|||||||
Reference in New Issue
Block a user