fix(AddressEdit): render error in some cases (#6942)

* fix(AddressEdit): render error in some cases

* chore: update snapshot
This commit is contained in:
neverland
2020-08-05 20:07:58 +08:00
committed by GitHub
parent 0e8ae68f98
commit ff200f6e5f
2 changed files with 6 additions and 2 deletions

View File

@@ -260,7 +260,7 @@ export default createComponent({
},
},
render() {
render(h) {
const { data, errorInfo, searchResult, disableArea } = this;
const onFocus = (name) => () => this.onFocus(name);
@@ -334,7 +334,7 @@ export default createComponent({
)}
{this.slots()}
</div>
{this.showSetDefault && (
{this.showSetDefault ? (
<SwitchCell
class={bem('default')}
vModel={data.isDefault}
@@ -344,6 +344,8 @@ export default createComponent({
this.$emit('change-default', event);
}}
/>
) : (
h()
)}
<div vShow={!hideBottomFields} class={bem('buttons')}>
<Button