update prettierrc (#2723)

This commit is contained in:
neverland
2019-02-12 19:14:17 +08:00
committed by GitHub
parent 31f7f5d11d
commit c778a50cd4
3 changed files with 15 additions and 10 deletions
+10 -6
View File
@@ -18,7 +18,10 @@ export default sfc({
methods: {
onSelect(express) {
this.$emit('select-search', express);
this.$emit('input', `${express.address || ''} ${express.name || ''}`.trim());
this.$emit(
'input',
`${express.address || ''} ${express.name || ''}`.trim()
);
},
onFinish() {
@@ -26,8 +29,8 @@ export default sfc({
},
renderFinish() {
const showFinish = this.value && this.focused && android;
if (showFinish) {
const show = this.value && this.focused && android;
if (show) {
return (
<div class={bem('finish')} onClick={this.onFinish}>
{t('complete')}
@@ -37,9 +40,10 @@ export default sfc({
},
renderSearchResult() {
const showSearchList = this.focused && this.searchResult && this.showSearchResult;
if (showSearchList) {
return this.searchResult.map(express => (
const { searchResult } = this;
const show = this.focused && searchResult && this.showSearchResult;
if (show) {
return searchResult.map(express => (
<Cell
key={express.name + express.address}
title={express.name}