mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
[improvement] update eslint rules (#2089)
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user