[improvement] update eslint rules (#2089)

This commit is contained in:
neverland
2018-11-15 15:30:17 +08:00
committed by GitHub
parent 0860901ec1
commit e14b43e66a
129 changed files with 1874 additions and 456 deletions

View File

@@ -23,8 +23,7 @@
</span>
</field>
<cell
v-if="showSearchList"
v-for="express in searchResult"
v-for="express in searchList"
:key="express.name + express.address"
:title="express.name"
:label="express.address"
@@ -61,8 +60,11 @@ export default create({
},
computed: {
showSearchList() {
return this.showSearchResult && this.focused && this.searchResult.length;
searchList() {
if (this.showSearchResult && this.focused) {
return this.searchResult || [];
};
return [];
},
showIcon() {