diff --git a/.prettierrc b/.prettierrc index 11cd494ab..276a47a73 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,5 @@ { - "printWidth": 100, + "printWidth": 80, "singleQuote": true, "trailingComma": "none" } diff --git a/packages/address-edit/Detail.js b/packages/address-edit/Detail.js index 243a56900..b9f16ba52 100644 --- a/packages/address-edit/Detail.js +++ b/packages/address-edit/Detail.js @@ -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 (