|
@@ -27,7 +27,7 @@
|
|
|
<li
|
|
|
v-for="(item, index) in searchColorList"
|
|
|
:key="'search' + index"
|
|
|
- @click="selectSearchColor(item)"
|
|
|
+ @click="selectSearchColor(item, index)"
|
|
|
>
|
|
|
<span class="searchColor" :style="{ background: item }"></span>
|
|
|
</li>
|
|
@@ -461,6 +461,7 @@ export default {
|
|
|
leftNavIndex: 0,
|
|
|
leftList: null,
|
|
|
colorValue: "#FF3737",
|
|
|
+ colorIndex: 0,
|
|
|
searchVal: "",
|
|
|
isSCL: false,
|
|
|
searchColorList: [
|
|
@@ -664,9 +665,10 @@ export default {
|
|
|
closeSearchColor() {
|
|
|
this.isSCL = false;
|
|
|
},
|
|
|
- selectSearchColor(item) {
|
|
|
+ selectSearchColor(item, index) {
|
|
|
this.isSCL = false;
|
|
|
this.colorValue = item;
|
|
|
+ this.colorIndex = index;
|
|
|
},
|
|
|
onSearch() {
|
|
|
if (!this.searchVal) {
|
|
@@ -683,6 +685,9 @@ export default {
|
|
|
}
|
|
|
this.type = "";
|
|
|
this.calculateSearchwordNumber();
|
|
|
+ this.searchVal = "";
|
|
|
+ this.colorIndex++;
|
|
|
+ this.colorValue = this.searchColorList[this.colorIndex];
|
|
|
},
|
|
|
// 词表跳转高亮
|
|
|
async wordTablehighlight(data, color) {
|