mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
fix(AddressEdit): showDetail not work
This commit is contained in:
@@ -13,6 +13,7 @@ const android = isAndroid();
|
||||
|
||||
export default createComponent({
|
||||
props: {
|
||||
show: Boolean,
|
||||
value: String,
|
||||
errorMessage: String,
|
||||
focused: Boolean,
|
||||
@@ -96,7 +97,9 @@ export default createComponent({
|
||||
emit('input', value);
|
||||
};
|
||||
|
||||
return () => (
|
||||
return () => {
|
||||
if (props.show) {
|
||||
return (
|
||||
<>
|
||||
<Field
|
||||
v-slots={{ icon: renderFinish }}
|
||||
@@ -119,5 +122,7 @@ export default createComponent({
|
||||
{renderSearchResult()}
|
||||
</>
|
||||
);
|
||||
}
|
||||
};
|
||||
},
|
||||
});
|
||||
|
@@ -336,7 +336,7 @@ export default createComponent({
|
||||
}}
|
||||
/>
|
||||
<Detail
|
||||
vShow={this.showDetail}
|
||||
show={this.showDetail}
|
||||
value={data.addressDetail}
|
||||
focused={this.detailFocused}
|
||||
errorMessage={errorInfo.addressDetail}
|
||||
|
Reference in New Issue
Block a user