mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(AddressEdit): render error in some cases (#6942)
* fix(AddressEdit): render error in some cases * chore: update snapshot
This commit is contained in:
parent
0e8ae68f98
commit
ff200f6e5f
@ -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
|
||||
|
@ -35,6 +35,7 @@ exports[`create a AddressEdit 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!---->
|
||||
<div class="van-address-edit__buttons"><button class="van-button van-button--danger van-button--normal van-button--block van-button--round">
|
||||
<div class="van-button__content"><span class="van-button__text">保存</span></div>
|
||||
</button></div>
|
||||
@ -296,6 +297,7 @@ exports[`valid area placeholder confirm 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!---->
|
||||
<div class="van-address-edit__buttons"><button class="van-button van-button--danger van-button--normal van-button--block van-button--round">
|
||||
<div class="van-button__content"><span class="van-button__text">保存</span></div>
|
||||
</button></div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user