From e08e9845a29b8d5587f02eff84368e32157678f4 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Sat, 26 Mar 2022 20:12:24 +0800 Subject: [PATCH] breaking change(AddressEdit): remove postal --- .../docs/markdown/migrate-from-v3.zh-CN.md | 2 + .../vant/src/address-edit/AddressEdit.tsx | 26 +---------- packages/vant/src/address-edit/README.md | 10 ++--- .../vant/src/address-edit/README.zh-CN.md | 4 -- packages/vant/src/address-edit/demo/index.vue | 1 - .../test/__snapshots__/demo.spec.ts.snap | 19 -------- .../test/__snapshots__/index.spec.ts.snap | 44 ------------------- .../vant/src/address-edit/test/index.spec.ts | 12 ----- packages/vant/src/address-edit/types.ts | 1 - packages/vant/src/locale/lang/bn-BD.ts | 2 - packages/vant/src/locale/lang/de-DE-formal.ts | 2 - packages/vant/src/locale/lang/de-DE.ts | 2 - packages/vant/src/locale/lang/en-US.ts | 2 - packages/vant/src/locale/lang/es-ES.ts | 2 - packages/vant/src/locale/lang/fr-FR.ts | 2 - packages/vant/src/locale/lang/hi-IN.ts | 2 - packages/vant/src/locale/lang/id-ID.ts | 2 - packages/vant/src/locale/lang/is-IS.ts | 2 - packages/vant/src/locale/lang/it-IT.ts | 2 - packages/vant/src/locale/lang/ja-JP.ts | 2 - packages/vant/src/locale/lang/ko-KR.ts | 2 - packages/vant/src/locale/lang/la-LA.ts | 2 - packages/vant/src/locale/lang/nb-NO.ts | 2 - packages/vant/src/locale/lang/pt-BR.ts | 2 - packages/vant/src/locale/lang/ro-RO.ts | 2 - packages/vant/src/locale/lang/ru-RU.ts | 2 - packages/vant/src/locale/lang/sv-SE.ts | 2 - packages/vant/src/locale/lang/th-TH.ts | 2 - packages/vant/src/locale/lang/tr-TR.ts | 2 - packages/vant/src/locale/lang/uk-UA.ts | 2 - packages/vant/src/locale/lang/vi-VN.ts | 2 - packages/vant/src/locale/lang/zh-CN.ts | 2 - packages/vant/src/locale/lang/zh-HK.ts | 2 - packages/vant/src/locale/lang/zh-TW.ts | 2 - 34 files changed, 6 insertions(+), 163 deletions(-) diff --git a/packages/vant/docs/markdown/migrate-from-v3.zh-CN.md b/packages/vant/docs/markdown/migrate-from-v3.zh-CN.md index ff7d7e255..774333f88 100644 --- a/packages/vant/docs/markdown/migrate-from-v3.zh-CN.md +++ b/packages/vant/docs/markdown/migrate-from-v3.zh-CN.md @@ -101,6 +101,8 @@ emit('clickInput'); #### AddressEdit +- 移除 `show-postal` 属性 +- 移除 `postal-validator` 属性 - `change-area` 事件的参数调整为 `PickerOption[]` 类型 - 移除未在文档中标注的 `getArea` 实例方法 diff --git a/packages/vant/src/address-edit/AddressEdit.tsx b/packages/vant/src/address-edit/AddressEdit.tsx index 392a4b166..784a33b5c 100644 --- a/packages/vant/src/address-edit/AddressEdit.tsx +++ b/packages/vant/src/address-edit/AddressEdit.tsx @@ -51,12 +51,9 @@ const DEFAULT_DATA: AddressEditInfo = { province: '', areaCode: '', isDefault: false, - postalCode: '', addressDetail: '', }; -const isPostal = (value: string) => /^\d{6}$/.test(value); - const addressEditProps = { areaList: Object as PropType, isSaving: Boolean, @@ -67,7 +64,6 @@ const addressEditProps = { showArea: truthProp, showDetail: truthProp, showDelete: Boolean, - showPostal: Boolean, disableArea: Boolean, searchResult: Array as PropType, telMaxlength: numericProp, @@ -87,10 +83,6 @@ const addressEditProps = { type: Function as PropType<(val: string) => boolean>, default: isMobile, }, - postalValidator: { - type: Function as PropType<(val: string) => boolean>, - default: isPostal, - }, }; export type AddressEditProps = ExtractPropTypes; @@ -145,7 +137,7 @@ export default defineComponent({ }; const rules = computed>(() => { - const { validator, telValidator, postalValidator } = props; + const { validator, telValidator } = props; const makeRule = (name: string, emptyMessage: string): FieldRule => ({ validator: (value) => { @@ -170,10 +162,6 @@ export default defineComponent({ ], areaCode: [makeRule('areaCode', t('areaEmpty'))], addressDetail: [makeRule('addressDetail', t('addressEmpty'))], - postalCode: [ - makeRule('addressDetail', t('postalEmpty')), - { validator: postalValidator, message: t('postalEmpty') }, - ], }; }); @@ -323,18 +311,6 @@ export default defineComponent({ onInput={onChangeDetail} onSelectSearch={(event: Event) => emit('selectSearch', event)} /> - {props.showPostal && ( - onFocus('postalCode')} - /> - )} {slots.default?.()} {renderSetDefaultCell()} diff --git a/packages/vant/src/address-edit/README.md b/packages/vant/src/address-edit/README.md index a4466c971..1e6611173 100644 --- a/packages/vant/src/address-edit/README.md +++ b/packages/vant/src/address-edit/README.md @@ -23,7 +23,6 @@ app.use(AddressEdit); ```html boolean_ | - | | tel-maxlength | Tel maxlength | _number \| string_ | - | -| postal-validator | The method to validate postal | _(tel: string) => boolean_ | - | | validator | Custom validator | _(key, val) => string_ | - | ### Events @@ -113,9 +110,9 @@ export default { ### Slots -| Name | Description | -| ------- | --------------------------- | -| default | Custom content below postal | +| Name | Description | +| ------- | ----------------------------------- | +| default | Custom content below address detail | ### Methods @@ -160,7 +157,6 @@ addressEditRef.value?.setAddressDetail(''); | county | County | _string_ | | addressDetail | Detailed Address | _string_ | | areaCode | Area code | _string_ | -| postalCode | Postal code | _string_ | | isDefault | Is default address | _boolean_ | ### AddressEditSearchItem Data Structure diff --git a/packages/vant/src/address-edit/README.zh-CN.md b/packages/vant/src/address-edit/README.zh-CN.md index f4d7a59d6..724601ab4 100644 --- a/packages/vant/src/address-edit/README.zh-CN.md +++ b/packages/vant/src/address-edit/README.zh-CN.md @@ -23,7 +23,6 @@ app.use(AddressEdit); ```html boolean_ | - | | tel-maxlength | 手机号最大长度 | _number \| string_ | - | -| postal-validator | 邮政编码格式校验函数 | _string => boolean_ | - | | validator | 自定义校验函数 | _(key, val) => string_ | - | ### Events @@ -162,7 +159,6 @@ addressEditRef.value?.setAddressDetail(''); | county | 区县 | _string_ | | addressDetail | 详细地址 | _string_ | | areaCode | 地区编码,通过 [省市区选择](#/zh-CN/area) 获取(必填) | _string_ | -| postalCode | 邮政编码 | _string_ | | isDefault | 是否为默认地址 | _boolean_ | ### AddressEditSearchItem 数据格式 diff --git a/packages/vant/src/address-edit/demo/index.vue b/packages/vant/src/address-edit/demo/index.vue index df907b623..42499a25d 100644 --- a/packages/vant/src/address-edit/demo/index.vue +++ b/packages/vant/src/address-edit/demo/index.vue @@ -52,7 +52,6 @@ const onChangeDetail = (val: string) => { -
-
- -
-
-
- -
-
-
diff --git a/packages/vant/src/address-edit/test/__snapshots__/index.spec.ts.snap b/packages/vant/src/address-edit/test/__snapshots__/index.spec.ts.snap index 1e95a6876..16fddd4db 100644 --- a/packages/vant/src/address-edit/test/__snapshots__/index.spec.ts.snap +++ b/packages/vant/src/address-edit/test/__snapshots__/index.spec.ts.snap @@ -193,25 +193,6 @@ exports[`should render AddressEdit with props correctly 1`] = `
-
-
- -
-
-
- -
-
-
@@ -322,31 +303,6 @@ exports[`should valid name and render error message correctly 1`] = `
`; -exports[`should valid postal code and render error message correctly 1`] = ` -
-
- -
-
-
- -
-
- Wrong postal code -
-
-
-`; - exports[`should valid tel and render error message correctly 1`] = `
diff --git a/packages/vant/src/address-edit/test/index.spec.ts b/packages/vant/src/address-edit/test/index.spec.ts index 5871fac2e..dea8b1cc1 100644 --- a/packages/vant/src/address-edit/test/index.spec.ts +++ b/packages/vant/src/address-edit/test/index.spec.ts @@ -11,7 +11,6 @@ const defaultAddressInfo = { county: '朝阳区', addressDetail: 'address detail', areaCode: '110101', - postalCode: '10000', isDefault: true, }; @@ -23,7 +22,6 @@ const createComponent = (addressInfo = {}) => { ...defaultAddressInfo, ...addressInfo, }, - showPostal: true, showSetDefault: true, }, }); @@ -45,7 +43,6 @@ test('should render AddressEdit with props correctly', () => { props: { areaList, addressInfo: defaultAddressInfo, - showPostal: true, showSetDefault: true, showSearchResult: true, }, @@ -103,15 +100,6 @@ test('should valid address detail and render error message correctly', async () expect(fields[3].html()).toMatchSnapshot(); }); -test('should valid postal code and render error message correctly', async () => { - const { fields, wrapper } = createComponent({ - postalCode: '123', - }); - - await submitForm(wrapper); - expect(fields[4].html()).toMatchSnapshot(); -}); - test('should emit changeDetail event after changing address detail', () => { const wrapper = mount(AddressEdit); const field = wrapper.findAll('.van-field__control')[3]; diff --git a/packages/vant/src/address-edit/types.ts b/packages/vant/src/address-edit/types.ts index 5f4cdc98e..0916ec32c 100644 --- a/packages/vant/src/address-edit/types.ts +++ b/packages/vant/src/address-edit/types.ts @@ -15,7 +15,6 @@ export type AddressEditInfo = { province: string; areaCode: string; isDefault?: boolean; - postalCode?: string; addressDetail: string; }; diff --git a/packages/vant/src/locale/lang/bn-BD.ts b/packages/vant/src/locale/lang/bn-BD.ts index d88715656..034333e2c 100644 --- a/packages/vant/src/locale/lang/bn-BD.ts +++ b/packages/vant/src/locale/lang/bn-BD.ts @@ -59,10 +59,8 @@ export default { }, vanAddressEdit: { area: 'এরিয়া', - postal: 'ডাক', areaEmpty: 'অনুগ্রহ করে একটি রিসিভিং এলাকা নির্বাচন করুন', addressEmpty: 'ঠিকানা খালি হতে পারে না', - postalEmpty: 'ভুল পোস্টাল কোড', addressDetail: 'ঠিকানা', defaultAddress: 'ডিফল্ট ঠিকানা হিসাবে সেট করুন', }, diff --git a/packages/vant/src/locale/lang/de-DE-formal.ts b/packages/vant/src/locale/lang/de-DE-formal.ts index 1762ae1f6..11ab0e86b 100644 --- a/packages/vant/src/locale/lang/de-DE-formal.ts +++ b/packages/vant/src/locale/lang/de-DE-formal.ts @@ -50,10 +50,8 @@ export default { }, vanAddressEdit: { area: 'Standort', - postal: 'PLZ', areaEmpty: 'Bitte geben Sie Ihren Standort an', addressEmpty: 'Adresse darf nicht leer sein', - postalEmpty: 'Falsche Postleitzahl', addressDetail: 'Adresse', defaultAddress: 'Als Standardadresse festgelegen', }, diff --git a/packages/vant/src/locale/lang/de-DE.ts b/packages/vant/src/locale/lang/de-DE.ts index 43d6fb55f..1ba0aa87b 100644 --- a/packages/vant/src/locale/lang/de-DE.ts +++ b/packages/vant/src/locale/lang/de-DE.ts @@ -50,10 +50,8 @@ export default { }, vanAddressEdit: { area: 'Standort', - postal: 'PLZ', areaEmpty: 'Bitte deinen Ort angeben', addressEmpty: 'Adresse darf nicht leer sein', - postalEmpty: 'Falsche Postleitzahl', addressDetail: 'Adresse', defaultAddress: 'Als Standardadresse festgelegen', }, diff --git a/packages/vant/src/locale/lang/en-US.ts b/packages/vant/src/locale/lang/en-US.ts index 9d663b63c..5b6156318 100644 --- a/packages/vant/src/locale/lang/en-US.ts +++ b/packages/vant/src/locale/lang/en-US.ts @@ -50,10 +50,8 @@ export default { }, vanAddressEdit: { area: 'Area', - postal: 'Postal', areaEmpty: 'Please select a receiving area', addressEmpty: 'Address can not be empty', - postalEmpty: 'Wrong postal code', addressDetail: 'Address', defaultAddress: 'Set as the default address', }, diff --git a/packages/vant/src/locale/lang/es-ES.ts b/packages/vant/src/locale/lang/es-ES.ts index b914aa998..e1bbfc728 100644 --- a/packages/vant/src/locale/lang/es-ES.ts +++ b/packages/vant/src/locale/lang/es-ES.ts @@ -50,10 +50,8 @@ export default { }, vanAddressEdit: { area: 'Área', - postal: 'Código Postal', areaEmpty: 'Por favor selecciona una área de recogida', addressEmpty: 'La dirección no puede estar vacia', - postalEmpty: 'Código postal inválido', addressDetail: 'Dirección', defaultAddress: 'Establecer como dirección por defecto', }, diff --git a/packages/vant/src/locale/lang/fr-FR.ts b/packages/vant/src/locale/lang/fr-FR.ts index 2b3e560cd..9f6ea96e4 100644 --- a/packages/vant/src/locale/lang/fr-FR.ts +++ b/packages/vant/src/locale/lang/fr-FR.ts @@ -50,10 +50,8 @@ export default { }, vanAddressEdit: { area: 'Zone', - postal: 'Postal', areaEmpty: 'Veuillez sélectionner une zone de réception', addressEmpty: "L'adresse ne peut pas être vide", - postalEmpty: 'Mauvais code postal', addressDetail: 'Adresse', defaultAddress: 'Définir comme adresse par défaut', }, diff --git a/packages/vant/src/locale/lang/hi-IN.ts b/packages/vant/src/locale/lang/hi-IN.ts index db0255eb8..25e29e0ab 100644 --- a/packages/vant/src/locale/lang/hi-IN.ts +++ b/packages/vant/src/locale/lang/hi-IN.ts @@ -58,10 +58,8 @@ export default { }, vanAddressEdit: { area: 'क्षेत्र', - postal: 'डाक का', areaEmpty: 'कृपया एक क्षेत्र चुनें', addressEmpty: 'पता खाली नहीं हो सकता', - postalEmpty: 'गलत पोस्टल कोड', addressDetail: 'पता', defaultAddress: 'डिफ़ॉल्ट पते के रूप में सेट करें', }, diff --git a/packages/vant/src/locale/lang/id-ID.ts b/packages/vant/src/locale/lang/id-ID.ts index b8a3cee90..48963ce56 100644 --- a/packages/vant/src/locale/lang/id-ID.ts +++ b/packages/vant/src/locale/lang/id-ID.ts @@ -51,10 +51,8 @@ export default { }, vanAddressEdit: { area: 'Daerah', - postal: 'pos', areaEmpty: 'Silakan pilih area penerima', addressEmpty: 'Alamat tidak boleh kosong', - postalEmpty: 'Kode pos salah', addressDetail: 'Alamat', defaultAddress: 'Tetapkan sebagai alamat default', }, diff --git a/packages/vant/src/locale/lang/is-IS.ts b/packages/vant/src/locale/lang/is-IS.ts index 88a1e6da3..99938fa98 100644 --- a/packages/vant/src/locale/lang/is-IS.ts +++ b/packages/vant/src/locale/lang/is-IS.ts @@ -58,10 +58,8 @@ export default { }, vanAddressEdit: { area: 'Svæði', - postal: 'póstur', areaEmpty: 'Vinsamlega veldu móttökusvæði', addressEmpty: 'Heimilisfang má ekki vera tómt', - postalEmpty: 'Rangt póstnúmer', addressDetail: 'Heimilisfang', defaultAddress: 'Setja sem sjálfgefið heimilisfang', }, diff --git a/packages/vant/src/locale/lang/it-IT.ts b/packages/vant/src/locale/lang/it-IT.ts index ac48d44d4..9b54dfe5d 100644 --- a/packages/vant/src/locale/lang/it-IT.ts +++ b/packages/vant/src/locale/lang/it-IT.ts @@ -58,10 +58,8 @@ export default { }, vanAddressEdit: { area: 'Area', - postal: 'Postale', areaEmpty: "Seleziona un'area di ricezione", addressEmpty: "L'indirizzo non può essere vuoto", - postalEmpty: 'Codice postale errato', addressDetail: 'Indirizzo', defaultAddress: 'Imposta come indirizzo predefinito', }, diff --git a/packages/vant/src/locale/lang/ja-JP.ts b/packages/vant/src/locale/lang/ja-JP.ts index ef9cd9b89..fa66a197d 100644 --- a/packages/vant/src/locale/lang/ja-JP.ts +++ b/packages/vant/src/locale/lang/ja-JP.ts @@ -50,10 +50,8 @@ export default { }, vanAddressEdit: { area: '地域', - postal: '郵便番号', areaEmpty: '地域を選択してください', addressEmpty: '詳しい住所を入力してください', - postalEmpty: '間違った郵便番号', addressDetail: '詳しい住所', defaultAddress: 'デフォルトの住所に設定', }, diff --git a/packages/vant/src/locale/lang/ko-KR.ts b/packages/vant/src/locale/lang/ko-KR.ts index d3e94d2ec..3bc686875 100644 --- a/packages/vant/src/locale/lang/ko-KR.ts +++ b/packages/vant/src/locale/lang/ko-KR.ts @@ -58,10 +58,8 @@ export default { }, vanAddressEdit: { area: '지역', - postal: '우편 엽서', areaEmpty: '접수지역을 선택해주세요', addressEmpty: '주소는 비워둘 수 없습니다', - postalEmpty: '잘못된 우편번호', addressDetail: '주소', defaultAddress: '기본 주소로 설정', }, diff --git a/packages/vant/src/locale/lang/la-LA.ts b/packages/vant/src/locale/lang/la-LA.ts index a6b3c97f6..aeb359931 100644 --- a/packages/vant/src/locale/lang/la-LA.ts +++ b/packages/vant/src/locale/lang/la-LA.ts @@ -51,10 +51,8 @@ export default { }, vanAddressEdit: { area: 'ພື້ນທີ່', - postal: 'ລະຫັດໄປສະນີ', areaEmpty: 'ກະລຸນາເລືອກພື້ນທີ່', addressEmpty: 'ກະລຸນາປ້ອນທີ່ຢູ່', - postalEmpty: 'ກະລຸນາປ້ອນລະຫັດໄປສະນີ', addressDetail: 'ທີ່ຢູ່', defaultAddress: 'ຕັ້ງເປັນທີ່ຢູ່ເລີ່ມຕົ້ນ', }, diff --git a/packages/vant/src/locale/lang/nb-NO.ts b/packages/vant/src/locale/lang/nb-NO.ts index e09ad22f2..8ddee3e99 100644 --- a/packages/vant/src/locale/lang/nb-NO.ts +++ b/packages/vant/src/locale/lang/nb-NO.ts @@ -50,10 +50,8 @@ export default { }, vanAddressEdit: { area: 'Område', - postal: 'Postkode', areaEmpty: 'Vennligst fyll inn område', addressEmpty: 'Addresse kan ikke være tomt', - postalEmpty: 'Feil postkode', addressDetail: 'Adresse', defaultAddress: 'Sett som standard adresse', }, diff --git a/packages/vant/src/locale/lang/pt-BR.ts b/packages/vant/src/locale/lang/pt-BR.ts index 012c166f2..e5440fee9 100644 --- a/packages/vant/src/locale/lang/pt-BR.ts +++ b/packages/vant/src/locale/lang/pt-BR.ts @@ -50,10 +50,8 @@ export default { }, vanAddressEdit: { area: 'Área', - postal: 'CEP', areaEmpty: 'Por favor, selecione uma área de recebimento', addressEmpty: 'Endereço não pode ser vazio', - postalEmpty: 'CEP inválido', addressDetail: 'Endereço', defaultAddress: 'Usar como endereço padrão', }, diff --git a/packages/vant/src/locale/lang/ro-RO.ts b/packages/vant/src/locale/lang/ro-RO.ts index 37bed5eb0..7f3f30f59 100644 --- a/packages/vant/src/locale/lang/ro-RO.ts +++ b/packages/vant/src/locale/lang/ro-RO.ts @@ -50,10 +50,8 @@ export default { }, vanAddressEdit: { area: 'Zonă', - postal: 'Cod postal', areaEmpty: 'Te rugăm sa selectezi o zona de primire', addressEmpty: 'Adresa nu poate fi goală', - postalEmpty: 'Cod postal invalid', addressDetail: 'Adresă', defaultAddress: 'Setează ca adresă de pornire', }, diff --git a/packages/vant/src/locale/lang/ru-RU.ts b/packages/vant/src/locale/lang/ru-RU.ts index 2633c273e..278326f23 100644 --- a/packages/vant/src/locale/lang/ru-RU.ts +++ b/packages/vant/src/locale/lang/ru-RU.ts @@ -50,10 +50,8 @@ export default { }, vanAddressEdit: { area: 'Область', - postal: 'Индекс', areaEmpty: 'Укажите зону доставки', addressEmpty: 'Адрес не может быть пустым', - postalEmpty: 'Некорректный индекс', addressDetail: 'Адрес', defaultAddress: 'Сделать адресом по умолчанию', }, diff --git a/packages/vant/src/locale/lang/sv-SE.ts b/packages/vant/src/locale/lang/sv-SE.ts index 8d03bda4c..9dfa72863 100644 --- a/packages/vant/src/locale/lang/sv-SE.ts +++ b/packages/vant/src/locale/lang/sv-SE.ts @@ -50,10 +50,8 @@ export default { }, vanAddressEdit: { area: 'Område', - postal: 'Post', areaEmpty: 'Välj ett mottagningsområde', addressEmpty: 'Adressen får inte vara tom', - postalEmpty: 'Fel postnummer', addressDetail: 'Adress', defaultAddress: 'Ange som standardadress', }, diff --git a/packages/vant/src/locale/lang/th-TH.ts b/packages/vant/src/locale/lang/th-TH.ts index 573ae6631..95718a1ac 100644 --- a/packages/vant/src/locale/lang/th-TH.ts +++ b/packages/vant/src/locale/lang/th-TH.ts @@ -51,10 +51,8 @@ export default { }, vanAddressEdit: { area: 'พื้นที่', - postal: 'รหัสไปรษณีย์', areaEmpty: 'โปรดเลือกภูมิภาค', addressEmpty: 'กรุณากรอกที่อยู่โดยละเอียด', - postalEmpty: 'รูปแบบรหัสไปรษณีย์ไม่ถูกต้อง', addressDetail: 'ที่อยู่', defaultAddress: 'ตั้งเป็นที่อยู่จัดส่งเริ่มต้น', }, diff --git a/packages/vant/src/locale/lang/tr-TR.ts b/packages/vant/src/locale/lang/tr-TR.ts index 11ca5167f..99b5d2f86 100644 --- a/packages/vant/src/locale/lang/tr-TR.ts +++ b/packages/vant/src/locale/lang/tr-TR.ts @@ -50,10 +50,8 @@ export default { }, vanAddressEdit: { area: 'Alan', - postal: 'Posta', areaEmpty: 'Lütfen alıcı alanını seçin', addressEmpty: 'Adres boş olamaz!', - postalEmpty: 'Yanlış posta kodu', addressDetail: 'Adres', defaultAddress: 'Varsayılan adres olarak ayarla', }, diff --git a/packages/vant/src/locale/lang/uk-UA.ts b/packages/vant/src/locale/lang/uk-UA.ts index 4749560ef..8ec0a2d9f 100644 --- a/packages/vant/src/locale/lang/uk-UA.ts +++ b/packages/vant/src/locale/lang/uk-UA.ts @@ -59,10 +59,8 @@ export default { }, vanAddressEdit: { area: 'Область', - postal: 'Поштовий', areaEmpty: 'Будь ласка, виберіть зону прийому', addressEmpty: 'Адреса не може бути порожньою', - postalEmpty: 'Неправильний поштовий індекс', addressDetail: 'Адреса', defaultAddress: 'Встановити як адресу за замовчуванням', }, diff --git a/packages/vant/src/locale/lang/vi-VN.ts b/packages/vant/src/locale/lang/vi-VN.ts index b00167137..073acde55 100644 --- a/packages/vant/src/locale/lang/vi-VN.ts +++ b/packages/vant/src/locale/lang/vi-VN.ts @@ -58,10 +58,8 @@ export default { }, vanAddressEdit: { area: 'Khu vực', - postal: 'Bưu điện', areaEmpty: 'Vui lòng chọn khu vực nhận hàng', addressEmpty: 'Địa chỉ không được để trống', - postalEmpty: 'Mã bưu chính sai', addressDetail: 'Địa chỉ', defaultAddress: 'Đặt làm địa chỉ mặc định', }, diff --git a/packages/vant/src/locale/lang/zh-CN.ts b/packages/vant/src/locale/lang/zh-CN.ts index ccfe3adbe..c3bdc637c 100644 --- a/packages/vant/src/locale/lang/zh-CN.ts +++ b/packages/vant/src/locale/lang/zh-CN.ts @@ -50,10 +50,8 @@ export default { }, vanAddressEdit: { area: '地区', - postal: '邮政编码', areaEmpty: '请选择地区', addressEmpty: '请填写详细地址', - postalEmpty: '邮政编码不正确', addressDetail: '详细地址', defaultAddress: '设为默认收货地址', }, diff --git a/packages/vant/src/locale/lang/zh-HK.ts b/packages/vant/src/locale/lang/zh-HK.ts index b1181e434..1922c2bcb 100644 --- a/packages/vant/src/locale/lang/zh-HK.ts +++ b/packages/vant/src/locale/lang/zh-HK.ts @@ -50,10 +50,8 @@ export default { }, vanAddressEdit: { area: '地區', - postal: '郵政編碼', areaEmpty: '請選擇地區', addressEmpty: '請填寫詳細地址', - postalEmpty: '郵政編碼不正確', addressDetail: '詳細地址', defaultAddress: '設為默認收貨地址', }, diff --git a/packages/vant/src/locale/lang/zh-TW.ts b/packages/vant/src/locale/lang/zh-TW.ts index d19ed320c..d7ab79e63 100644 --- a/packages/vant/src/locale/lang/zh-TW.ts +++ b/packages/vant/src/locale/lang/zh-TW.ts @@ -50,10 +50,8 @@ export default { }, vanAddressEdit: { area: '地區', - postal: '郵遞區號', areaEmpty: '請選擇地區', addressEmpty: '請填寫詳細地址', - postalEmpty: '郵遞區號不正確', addressDetail: '詳細地址', defaultAddress: '設為預設收貨地址', },