mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(AddressEdit): showDetail not work
This commit is contained in:
parent
08c9b06ac1
commit
d06f98e961
@ -13,6 +13,7 @@ const android = isAndroid();
|
|||||||
|
|
||||||
export default createComponent({
|
export default createComponent({
|
||||||
props: {
|
props: {
|
||||||
|
show: Boolean,
|
||||||
value: String,
|
value: String,
|
||||||
errorMessage: String,
|
errorMessage: String,
|
||||||
focused: Boolean,
|
focused: Boolean,
|
||||||
@ -96,28 +97,32 @@ export default createComponent({
|
|||||||
emit('input', value);
|
emit('input', value);
|
||||||
};
|
};
|
||||||
|
|
||||||
return () => (
|
return () => {
|
||||||
<>
|
if (props.show) {
|
||||||
<Field
|
return (
|
||||||
v-slots={{ icon: renderFinish }}
|
<>
|
||||||
autosize
|
<Field
|
||||||
ref={field}
|
v-slots={{ icon: renderFinish }}
|
||||||
class={bem()}
|
autosize
|
||||||
rows={props.detailRows}
|
ref={field}
|
||||||
type="textarea"
|
class={bem()}
|
||||||
label={t('label')}
|
rows={props.detailRows}
|
||||||
border={!showSearchResult()}
|
type="textarea"
|
||||||
clearable={!android}
|
label={t('label')}
|
||||||
maxlength={props.detailMaxlength}
|
border={!showSearchResult()}
|
||||||
modelValue={props.value}
|
clearable={!android}
|
||||||
placeholder={t('placeholder')}
|
maxlength={props.detailMaxlength}
|
||||||
errorMessage={props.errorMessage}
|
modelValue={props.value}
|
||||||
onBlur={onBlur}
|
placeholder={t('placeholder')}
|
||||||
onFocus={onFocus}
|
errorMessage={props.errorMessage}
|
||||||
{...{ 'onUpdate:modelValue': onInput }}
|
onBlur={onBlur}
|
||||||
/>
|
onFocus={onFocus}
|
||||||
{renderSearchResult()}
|
{...{ 'onUpdate:modelValue': onInput }}
|
||||||
</>
|
/>
|
||||||
);
|
{renderSearchResult()}
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -336,7 +336,7 @@ export default createComponent({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Detail
|
<Detail
|
||||||
vShow={this.showDetail}
|
show={this.showDetail}
|
||||||
value={data.addressDetail}
|
value={data.addressDetail}
|
||||||
focused={this.detailFocused}
|
focused={this.detailFocused}
|
||||||
errorMessage={errorInfo.addressDetail}
|
errorMessage={errorInfo.addressDetail}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user