fix: 修复同页面内切换搜索框后搜索选项不立即变化的问题
This commit is contained in:
@@ -182,6 +182,15 @@
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
searchMsg: {
|
||||
deep: true,
|
||||
immediate: true,
|
||||
handler(n, o) {
|
||||
this.$nextTick(() => {
|
||||
this.clear_input();
|
||||
})
|
||||
}
|
||||
},
|
||||
select_list: {
|
||||
//监听下拉列表
|
||||
handler(newData, oldData) {
|
||||
@@ -941,8 +950,10 @@
|
||||
},
|
||||
//阻止冒泡事件
|
||||
stop_click(e) {
|
||||
if (e) {
|
||||
e.cancelBubble = true;
|
||||
e.stopPropagation();
|
||||
}
|
||||
},
|
||||
//点击遮罩层
|
||||
zhezhao_click() {
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
<i class="nz-icon-create-square nz-icon"></i>
|
||||
</button>
|
||||
<div class="top-tool-search float-right">
|
||||
<search-input :searchMsg="searchMsg" @search="search" v-if="tabShow==1"></search-input>
|
||||
<search-input ref="searchInput" :searchMsg="searchMsg" @search="search" v-if="tabShow==1"></search-input>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -151,7 +151,7 @@
|
||||
<i class="nz-icon-create-square nz-icon"></i>
|
||||
</button>
|
||||
<div class="top-tool-search float-right">
|
||||
<search-input :searchMsg="cabSearchMsg" @search="cabSearch" v-if="tabShow==2"></search-input>
|
||||
<search-input ref="cabSearchInput" :searchMsg="cabSearchMsg" @search="cabSearch" v-if="tabShow==2"></search-input>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user