[Improvement] AddressEdit: add default slot (#573)

This commit is contained in:
neverland
2018-01-24 16:19:16 +08:00
committed by GitHub
parent e3ef5c853e
commit 8f97bc9f0f
14 changed files with 26 additions and 11 deletions

View File

@@ -44,6 +44,7 @@
:error="errorInfo.postal_code"
@focus="onFocus('postal_code')"
/>
<slot />
<switch-cell
v-if="showSetDefault"
v-show="!hideBottomFields"
@@ -158,6 +159,7 @@ export default create({
hideBottomFields() {
return this.searchResult.length && this.detailFocused;
},
computedAddressText() {
return this.addressText || this.$t('addressText');
}