mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 05:42:44 +08:00
fix(AddressEdit): area field validate error when showArea is false (#12393)
This commit is contained in:
parent
2a404822f6
commit
eddb35c782
@ -297,7 +297,7 @@ export default defineComponent({
|
||||
label={t('area')}
|
||||
is-link={!disableArea}
|
||||
modelValue={areaText.value}
|
||||
rules={rules.value.areaCode}
|
||||
rules={props.showArea ? rules.value.areaCode : undefined}
|
||||
placeholder={props.areaPlaceholder || t('area')}
|
||||
onFocus={() => onFocus('areaCode')}
|
||||
onClick={() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user