|
|
@@ -7,7 +7,7 @@
|
|
|
<span>我的作品 {{workTotalNum !== undefined ? `(${workTotalNum})`:''}}</span>
|
|
|
<div class="tab-r">
|
|
|
<div class="filter">
|
|
|
- <div :class="{active:searchKey}">
|
|
|
+ <div :class="{active: isFilterFocus}" @focusin="onFilterFocus" @focusout="onFilterBlur">
|
|
|
<i class="iconfont iconworks_search search"></i>
|
|
|
<input
|
|
|
type="text"
|
|
|
@@ -111,6 +111,7 @@ export default {
|
|
|
searchKey:'',
|
|
|
// 因为searchKey的变化经过debounce、异步请求的延时,才会反映到数据列表的变化上,所以是否显示、显示哪种无数据提示,也要等到数据列表变化后,根据数据列表是否为空,以及引发本次变化的那个searchKey瞬时值来决定。本变量就是用来保存那个瞬时值。
|
|
|
lastestUsedSearchKey: '',
|
|
|
+ isFilterFocus: false,
|
|
|
|
|
|
showShare:false,
|
|
|
showPreview:false,
|
|
|
@@ -132,6 +133,12 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods:{
|
|
|
+ onFilterFocus() {
|
|
|
+ this.isFilterFocus = true
|
|
|
+ },
|
|
|
+ onFilterBlur() {
|
|
|
+ this.isFilterFocus = false
|
|
|
+ },
|
|
|
refreshListDebounced: debounce(function() {
|
|
|
this.list = []
|
|
|
this.isRequestingMoreData = false
|