diff --git a/packages/vant/src/locale/README.md b/packages/vant/src/locale/README.md index 3d3f24930..994dfa641 100644 --- a/packages/vant/src/locale/README.md +++ b/packages/vant/src/locale/README.md @@ -68,8 +68,8 @@ Current supported languages: | Romanian | ro-RO | - | | Russian | ru-RU | `v3.1.5` | | Swedish | sv-SE | `v3.4.7` | -| Turkish | tr-TR | - | | Thai | th-TH | - | +| Turkish | tr-TR | - | | Ukrainian | uk-UA | `v3.4.5` | | Vietnamese | vi-VN | `v3.4.5` | | Chinese | zh-CN | - | diff --git a/packages/vant/src/locale/README.zh-CN.md b/packages/vant/src/locale/README.zh-CN.md index f8bd06bf0..b144ceff1 100644 --- a/packages/vant/src/locale/README.zh-CN.md +++ b/packages/vant/src/locale/README.zh-CN.md @@ -69,8 +69,8 @@ Locale.add(messages); | 罗马尼亚语 | ro-RO | - | | 俄罗斯语 | ru-RU | `v3.1.5` | | 瑞典语 | sv-SE | `v3.4.7` | -| 土耳其语 | tr-TR | - | | 泰语 | th-TH | - | +| 土耳其语 | tr-TR | - | | 乌克兰语 | uk-UA | `v3.4.5` | | 越南语 | vi-VN | `v3.4.5` | | 简体中文 | zh-CN | - | diff --git a/packages/vant/src/locale/lang/bg-BG.ts b/packages/vant/src/locale/lang/bg-BG.ts index 0d6d57bb1..08b3f1b4a 100644 --- a/packages/vant/src/locale/lang/bg-BG.ts +++ b/packages/vant/src/locale/lang/bg-BG.ts @@ -2,8 +2,9 @@ export default { name: 'Име', tel: 'Телефон', save: 'Запазване', - confirm: 'Потвърди', + clear: 'ясно', cancel: 'Отказ', + confirm: 'Потвърди', delete: 'Изтриване', loading: 'Зареждане...', noCoupon: 'Без купони', diff --git a/packages/vant/src/locale/lang/bn-BD.ts b/packages/vant/src/locale/lang/bn-BD.ts index 034333e2c..39ddbafb1 100644 --- a/packages/vant/src/locale/lang/bn-BD.ts +++ b/packages/vant/src/locale/lang/bn-BD.ts @@ -2,8 +2,9 @@ export default { name: 'নাম', tel: 'ফোন', save: 'সংরক্ষণ করুন', - confirm: 'নিশ্চিত করুন', + clear: 'পরিষ্কার', cancel: 'বাতিল', + confirm: 'নিশ্চিত করুন', delete: 'মুছুন', loading: 'লোড হচ্ছে...', noCoupon: 'কোন কুপন নেই', diff --git a/packages/vant/src/locale/lang/da-DK.ts b/packages/vant/src/locale/lang/da-DK.ts index 4f6a920fb..7cd254959 100644 --- a/packages/vant/src/locale/lang/da-DK.ts +++ b/packages/vant/src/locale/lang/da-DK.ts @@ -2,8 +2,9 @@ export default { name: 'navn', tel: 'Telefon', save: 'Gem', - confirm: 'Bekræft', + clear: 'Klar', cancel: 'Annuller', + confirm: 'Bekræft', delete: 'Slet', loading: 'Indlæser...', noCoupon: 'Ingen kuponer', diff --git a/packages/vant/src/locale/lang/de-DE-formal.ts b/packages/vant/src/locale/lang/de-DE-formal.ts index 11ab0e86b..28b4431d3 100644 --- a/packages/vant/src/locale/lang/de-DE-formal.ts +++ b/packages/vant/src/locale/lang/de-DE-formal.ts @@ -2,8 +2,9 @@ export default { name: 'Name', tel: 'Telefon', save: 'Speichern', - confirm: 'Bestätigen', + clear: 'Klar', cancel: 'Abbrechen', + confirm: 'Bestätigen', delete: 'Löschen', loading: 'Laden...', noCoupon: 'Keine Coupons', diff --git a/packages/vant/src/locale/lang/de-DE.ts b/packages/vant/src/locale/lang/de-DE.ts index 1ba0aa87b..aaea6e3b1 100644 --- a/packages/vant/src/locale/lang/de-DE.ts +++ b/packages/vant/src/locale/lang/de-DE.ts @@ -2,8 +2,9 @@ export default { name: 'Name', tel: 'Telefon', save: 'Speichern', - confirm: 'Bestätigen', + clear: 'Klar', cancel: 'Abbrechen', + confirm: 'Bestätigen', delete: 'Löschen', loading: 'Laden...', noCoupon: 'Keine Coupons', diff --git a/packages/vant/src/locale/lang/el-GR.ts b/packages/vant/src/locale/lang/el-GR.ts index c3acb8b32..7e2512aa9 100644 --- a/packages/vant/src/locale/lang/el-GR.ts +++ b/packages/vant/src/locale/lang/el-GR.ts @@ -2,8 +2,9 @@ export default { name: 'Όνομα', tel: 'Τηλέφωνο', save: 'Αποθήκευση', - confirm: 'Επιβεβαίωση', + clear: 'Σαφή', cancel: 'Ακύρωση', + confirm: 'Επιβεβαίωση', delete: 'Διαγραφή', loading: 'Φόρτωση...', noCoupon: 'Χωρίς κουπόνια', diff --git a/packages/vant/src/locale/lang/en-US.ts b/packages/vant/src/locale/lang/en-US.ts index 5b6156318..9f637ee4c 100644 --- a/packages/vant/src/locale/lang/en-US.ts +++ b/packages/vant/src/locale/lang/en-US.ts @@ -2,8 +2,9 @@ export default { name: 'Name', tel: 'Phone', save: 'Save', - confirm: 'Confirm', + clear: 'Clear', cancel: 'Cancel', + confirm: 'Confirm', delete: 'Delete', loading: 'Loading...', noCoupon: 'No coupons', diff --git a/packages/vant/src/locale/lang/eo-EO.ts b/packages/vant/src/locale/lang/eo-EO.ts index e7ad7f431..bd657e961 100644 --- a/packages/vant/src/locale/lang/eo-EO.ts +++ b/packages/vant/src/locale/lang/eo-EO.ts @@ -2,8 +2,9 @@ export default { name: 'Nomo', tel: 'Telefonnumero', save: 'Konservi', - confirm: 'Konfirmi', + clear: 'Klara', cancel: 'Rezigni', + confirm: 'Konfirmi', delete: 'Forigi', loading: 'Bonvolu atendi...', noCoupon: 'Neniu kupono', diff --git a/packages/vant/src/locale/lang/es-ES.ts b/packages/vant/src/locale/lang/es-ES.ts index e1bbfc728..e476a7a83 100644 --- a/packages/vant/src/locale/lang/es-ES.ts +++ b/packages/vant/src/locale/lang/es-ES.ts @@ -2,8 +2,9 @@ export default { name: 'Nombre', tel: 'Teléfono', save: 'Guardar', - confirm: 'Confirmar', + clear: 'Claro', cancel: 'Cancelar', + confirm: 'Confirmar', delete: 'Eliminar', loading: 'Cargando...', noCoupon: 'Sin cupones', diff --git a/packages/vant/src/locale/lang/fa-IR.ts b/packages/vant/src/locale/lang/fa-IR.ts index 82bcc6da2..017d652c8 100644 --- a/packages/vant/src/locale/lang/fa-IR.ts +++ b/packages/vant/src/locale/lang/fa-IR.ts @@ -2,8 +2,9 @@ export default { name: 'نام', tel: 'تلفن', save: 'ذخیره', - confirm: 'تایید', + clear: 'پاک کردن', cancel: 'انصراف', + confirm: 'تایید', delete: 'حذف', loading: 'در حال بارگزاری ...', noCoupon: 'بدون کوپن', diff --git a/packages/vant/src/locale/lang/fr-FR.ts b/packages/vant/src/locale/lang/fr-FR.ts index 9f6ea96e4..f196f4814 100644 --- a/packages/vant/src/locale/lang/fr-FR.ts +++ b/packages/vant/src/locale/lang/fr-FR.ts @@ -2,8 +2,9 @@ export default { name: 'Nom', tel: 'Telephone', save: 'Sauvegarder', - confirm: 'Confirmer', + clear: 'Clair', cancel: 'Annuler', + confirm: 'Confirmer', delete: 'Suprimer', loading: 'Chargement...', noCoupon: 'Pas de coupons', diff --git a/packages/vant/src/locale/lang/he-IL.ts b/packages/vant/src/locale/lang/he-IL.ts index 14c5cef8b..e6412f496 100644 --- a/packages/vant/src/locale/lang/he-IL.ts +++ b/packages/vant/src/locale/lang/he-IL.ts @@ -2,8 +2,9 @@ export default { name: 'שם', tel: 'טלפון', save: 'שמור', - confirm: 'אישור', + clear: 'ברור', cancel: 'ביטול', + confirm: 'אישור', delete: 'מחיקה', loading: 'טוען...', noCoupon: 'אין קופונים', diff --git a/packages/vant/src/locale/lang/hi-IN.ts b/packages/vant/src/locale/lang/hi-IN.ts index 25e29e0ab..9d5ffa56a 100644 --- a/packages/vant/src/locale/lang/hi-IN.ts +++ b/packages/vant/src/locale/lang/hi-IN.ts @@ -2,8 +2,9 @@ export default { name: 'नाम', tel: 'फ़ोन', save: 'सहेजें', - confirm: 'पुष्टि करना', + clear: 'साफ़', cancel: 'रद्द करें', + confirm: 'पुष्टि करना', delete: 'हटाएं', loading: 'लोड हो रहा है...', noCoupon: 'कोई कूपन नहीं', diff --git a/packages/vant/src/locale/lang/id-ID.ts b/packages/vant/src/locale/lang/id-ID.ts index 48963ce56..a6d17d92b 100644 --- a/packages/vant/src/locale/lang/id-ID.ts +++ b/packages/vant/src/locale/lang/id-ID.ts @@ -2,8 +2,9 @@ export default { name: 'Nama', tel: 'Telepon', save: 'Simpan', - confirm: 'Konfirmasi', + clear: 'Jernih', cancel: 'Batal', + confirm: 'Konfirmasi', delete: 'Hapus', loading: 'Memuat...', noCoupon: 'Tidak ada kupon', diff --git a/packages/vant/src/locale/lang/is-IS.ts b/packages/vant/src/locale/lang/is-IS.ts index 99938fa98..efefa06aa 100644 --- a/packages/vant/src/locale/lang/is-IS.ts +++ b/packages/vant/src/locale/lang/is-IS.ts @@ -2,8 +2,9 @@ export default { name: 'Nafn', tel: 'Sími', save: 'Vista', - confirm: 'Staðfesta', + clear: 'Hreinsa', cancel: 'hætta við', + confirm: 'Staðfesta', delete: 'Eyða', loading: 'Hleður...', noCoupon: 'Engin afsláttarmiða', diff --git a/packages/vant/src/locale/lang/it-IT.ts b/packages/vant/src/locale/lang/it-IT.ts index 6069a3bd9..37d15e0a6 100644 --- a/packages/vant/src/locale/lang/it-IT.ts +++ b/packages/vant/src/locale/lang/it-IT.ts @@ -2,8 +2,9 @@ export default { name: 'Nome', tel: 'Telefono', save: 'Salva', - confirm: 'Conferma', + clear: 'Chiaro', cancel: 'Annulla', + confirm: 'Conferma', delete: 'Elimina', loading: 'Caricamento in corso...', noCoupon: 'Nessun coupon', @@ -14,15 +15,7 @@ export default { end: 'Fine', start: 'Inizio', title: 'Calendario', - weekdays: [ - 'dom', - 'lun', - 'mar', - 'mer', - 'gio', - 'ven', - 'sab', - ], + weekdays: ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'], monthTitle: (year: number, month: number) => `${year}/${month}`, rangePrompt: (maxRange: number) => `Scegli non più di ${maxRange} giorni`, }, diff --git a/packages/vant/src/locale/lang/ja-JP.ts b/packages/vant/src/locale/lang/ja-JP.ts index fa66a197d..8be452a66 100644 --- a/packages/vant/src/locale/lang/ja-JP.ts +++ b/packages/vant/src/locale/lang/ja-JP.ts @@ -2,8 +2,9 @@ export default { name: 'お名前', tel: '電話番号', save: 'セーブ', - confirm: '確認', + clear: 'クリア', cancel: 'キャンセル', + confirm: '確認', delete: '削除', loading: '読み込み中...', noCoupon: 'クーポンはありません', diff --git a/packages/vant/src/locale/lang/km-KH.ts b/packages/vant/src/locale/lang/km-KH.ts index 623f3247c..c4508b8be 100644 --- a/packages/vant/src/locale/lang/km-KH.ts +++ b/packages/vant/src/locale/lang/km-KH.ts @@ -2,8 +2,9 @@ export default { name: 'ឈ្មោះ', tel: 'ទូរស័ព្ទ', save: 'រក្សាទុក', - confirm: 'យល់ព្រម', + clear: 'ច្បាស់', cancel: 'បោះបង់', + confirm: 'យល់ព្រម', delete: 'លុប', loading: 'កំពុងផ្ទុក...', noCoupon: 'គ្មានគូប៉ុង', diff --git a/packages/vant/src/locale/lang/ko-KR.ts b/packages/vant/src/locale/lang/ko-KR.ts index 3bc686875..6134a6af8 100644 --- a/packages/vant/src/locale/lang/ko-KR.ts +++ b/packages/vant/src/locale/lang/ko-KR.ts @@ -2,8 +2,9 @@ export default { name: '이름', tel: '핸드폰', save: '구하다', - confirm: '확인', + clear: '분명한', cancel: '취소', + confirm: '확인', delete: '삭제', loading: '로딩 중...', noCoupon: '쿠폰 없음', diff --git a/packages/vant/src/locale/lang/la-LA.ts b/packages/vant/src/locale/lang/la-LA.ts index aeb359931..0c8db1e9c 100644 --- a/packages/vant/src/locale/lang/la-LA.ts +++ b/packages/vant/src/locale/lang/la-LA.ts @@ -2,8 +2,9 @@ export default { name: 'ຊື່', tel: 'ໂທລະສັບ', save: 'ບັນທຶກ', - confirm: 'ຢຶນຢັນ', + clear: 'ຈະແຈ້ງ', cancel: 'ຍົກເລີກ', + confirm: 'ຢຶນຢັນ', delete: 'ລືບ', loading: 'ກຳລັງໂຫຼດ...', noCoupon: 'ບໍ່ມີຄູປອງ', diff --git a/packages/vant/src/locale/lang/mm-MN.ts b/packages/vant/src/locale/lang/mm-MN.ts index 59785de17..ae695b429 100644 --- a/packages/vant/src/locale/lang/mm-MN.ts +++ b/packages/vant/src/locale/lang/mm-MN.ts @@ -2,8 +2,9 @@ export default { name: 'Нэр', tel: 'Утас', save: 'Хадгалах', - confirm: 'Баталгаажуулах', + clear: 'Тодорхой', cancel: 'Цуцлах', + confirm: 'Баталгаажуулах', delete: 'Устгах', loading: 'Ачааж байна...', noCoupon: 'Купон байхгүй', diff --git a/packages/vant/src/locale/lang/nb-NO.ts b/packages/vant/src/locale/lang/nb-NO.ts index 8ddee3e99..6cb2b954e 100644 --- a/packages/vant/src/locale/lang/nb-NO.ts +++ b/packages/vant/src/locale/lang/nb-NO.ts @@ -2,8 +2,9 @@ export default { name: 'Navn', tel: 'Telefon', save: 'Lagre', - confirm: 'Bekreft', + clear: 'Klar', cancel: 'Avbryt', + confirm: 'Bekreft', delete: 'Slett', loading: 'Laster...', noCoupon: 'Ingen kuponger', diff --git a/packages/vant/src/locale/lang/nl-NL.ts b/packages/vant/src/locale/lang/nl-NL.ts index 213600f75..35a06eee9 100644 --- a/packages/vant/src/locale/lang/nl-NL.ts +++ b/packages/vant/src/locale/lang/nl-NL.ts @@ -2,8 +2,9 @@ export default { name: 'naam', tel: 'Telefoon', save: 'Opslaan', - confirm: 'Bevestigen', + clear: 'Duidelijk', cancel: 'Annuleren', + confirm: 'Bevestigen', delete: 'Verwijderen', loading: 'Bezig met laden...', noCoupon: 'Geen coupons', diff --git a/packages/vant/src/locale/lang/pt-BR.ts b/packages/vant/src/locale/lang/pt-BR.ts index e5440fee9..a702bfbce 100644 --- a/packages/vant/src/locale/lang/pt-BR.ts +++ b/packages/vant/src/locale/lang/pt-BR.ts @@ -2,8 +2,9 @@ export default { name: 'Nome', tel: 'Fone', save: 'Salvar', - confirm: 'Confirmar', + clear: 'Claro', cancel: 'Cancelar', + confirm: 'Confirmar', delete: 'Excluir', loading: 'Carregando...', noCoupon: 'Nenhum cupom', diff --git a/packages/vant/src/locale/lang/ro-RO.ts b/packages/vant/src/locale/lang/ro-RO.ts index 7f3f30f59..d4ff7edb2 100644 --- a/packages/vant/src/locale/lang/ro-RO.ts +++ b/packages/vant/src/locale/lang/ro-RO.ts @@ -2,8 +2,9 @@ export default { name: 'Nume', tel: 'Telefon', save: 'Salvează', - confirm: 'Confirmă', + clear: 'Clar', cancel: 'Anulează', + confirm: 'Confirmă', delete: 'Șterge', loading: 'Încărcare...', noCoupon: 'Fără cupoane', diff --git a/packages/vant/src/locale/lang/ru-RU.ts b/packages/vant/src/locale/lang/ru-RU.ts index 6cf826be4..a0f3e7bfe 100644 --- a/packages/vant/src/locale/lang/ru-RU.ts +++ b/packages/vant/src/locale/lang/ru-RU.ts @@ -2,8 +2,9 @@ export default { name: 'Имя', tel: 'Телефон', save: 'Сохранить', - confirm: 'Подтвердить', + clear: 'Прозрачный', cancel: 'Отмена', + confirm: 'Подтвердить', delete: 'Удалить', loading: 'Загрузка...', noCoupon: 'Нет купонов', diff --git a/packages/vant/src/locale/lang/sv-SE.ts b/packages/vant/src/locale/lang/sv-SE.ts index 9dfa72863..24b1bf535 100644 --- a/packages/vant/src/locale/lang/sv-SE.ts +++ b/packages/vant/src/locale/lang/sv-SE.ts @@ -2,8 +2,9 @@ export default { name: 'Namn', tel: 'Telefon', save: 'Spara', - confirm: 'Bekräfta', + clear: 'Klar', cancel: 'Avbryt', + confirm: 'Bekräfta', delete: 'Radera', loading: 'Laddar...', noCoupon: 'Inga kuponger', diff --git a/packages/vant/src/locale/lang/th-TH.ts b/packages/vant/src/locale/lang/th-TH.ts index 95718a1ac..3c4ad6a89 100644 --- a/packages/vant/src/locale/lang/th-TH.ts +++ b/packages/vant/src/locale/lang/th-TH.ts @@ -2,8 +2,9 @@ export default { name: 'ชื่อ', tel: 'โทรศัพท์', save: 'บันทึก', - confirm: 'ยืนยัน', + clear: 'ชัดเจน', cancel: 'ยกเลิก', + confirm: 'ยืนยัน', delete: 'ลบ', loading: 'กำลังโหลด...', noCoupon: 'ไม่มีคูปอง', diff --git a/packages/vant/src/locale/lang/tr-TR.ts b/packages/vant/src/locale/lang/tr-TR.ts index 99b5d2f86..35c146c83 100644 --- a/packages/vant/src/locale/lang/tr-TR.ts +++ b/packages/vant/src/locale/lang/tr-TR.ts @@ -2,8 +2,9 @@ export default { name: 'İsim', tel: 'Telefon', save: 'Kaydet', - confirm: 'Onayla', + clear: 'Temizlemek', cancel: 'İptal', + confirm: 'Onayla', delete: 'Sil', loading: 'Yükleniyor...', noCoupon: 'Kupon yok', diff --git a/packages/vant/src/locale/lang/uk-UA.ts b/packages/vant/src/locale/lang/uk-UA.ts index 4db235fec..caadba7e9 100644 --- a/packages/vant/src/locale/lang/uk-UA.ts +++ b/packages/vant/src/locale/lang/uk-UA.ts @@ -2,8 +2,9 @@ export default { name: "Ім'я", tel: 'Телефон', save: 'Зберегти', - confirm: 'Підтвердити', + clear: 'ясно', cancel: 'Скасувати', + confirm: 'Підтвердити', delete: 'Видалити', loading: 'Завантаження...', noCoupon: 'Без купонів', @@ -14,18 +15,9 @@ export default { end: 'Кінець', start: 'Початок', title: 'Календар', - weekdays: [ - 'Нд', - 'Пн', - 'Вт', - 'Ср', - 'Чт', - "Пт", - 'Сб', - ], + weekdays: ['Нд', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'], monthTitle: (year: number, month: number) => `${year}/${month}`, - rangePrompt: (maxRange: number) => - `Оберіть не більше ніж ${maxRange} днів`, + rangePrompt: (maxRange: number) => `Оберіть не більше ніж ${maxRange} днів`, }, vanCascader: { select: 'Обрати', diff --git a/packages/vant/src/locale/lang/vi-VN.ts b/packages/vant/src/locale/lang/vi-VN.ts index 073acde55..a793df6e1 100644 --- a/packages/vant/src/locale/lang/vi-VN.ts +++ b/packages/vant/src/locale/lang/vi-VN.ts @@ -2,8 +2,9 @@ export default { name: 'tên', tel: 'Điện thoại', save: 'Cứu', - confirm: 'Xác nhận', + clear: 'Thông thoáng', cancel: 'Hủy bỏ', + confirm: 'Xác nhận', delete: 'Xóa', loading: 'Đang tải ...', noCoupon: 'Không có phiếu giảm giá', diff --git a/packages/vant/src/locale/lang/zh-CN.ts b/packages/vant/src/locale/lang/zh-CN.ts index c3bdc637c..1eb47140e 100644 --- a/packages/vant/src/locale/lang/zh-CN.ts +++ b/packages/vant/src/locale/lang/zh-CN.ts @@ -2,8 +2,9 @@ export default { name: '姓名', tel: '电话', save: '保存', - confirm: '确认', + clear: '清空', cancel: '取消', + confirm: '确认', delete: '删除', loading: '加载中...', noCoupon: '暂无优惠券', diff --git a/packages/vant/src/locale/lang/zh-HK.ts b/packages/vant/src/locale/lang/zh-HK.ts index 1922c2bcb..d6132ca0f 100644 --- a/packages/vant/src/locale/lang/zh-HK.ts +++ b/packages/vant/src/locale/lang/zh-HK.ts @@ -2,8 +2,9 @@ export default { name: '姓名', tel: '電話', save: '保存', - confirm: '確認', + clear: '清空', cancel: '取消', + confirm: '確認', delete: '刪除', loading: '加載中...', noCoupon: '暫無優惠券', diff --git a/packages/vant/src/locale/lang/zh-TW.ts b/packages/vant/src/locale/lang/zh-TW.ts index d7ab79e63..5535b5972 100644 --- a/packages/vant/src/locale/lang/zh-TW.ts +++ b/packages/vant/src/locale/lang/zh-TW.ts @@ -2,8 +2,9 @@ export default { name: '姓名', tel: '電話', save: '儲存', - confirm: '確認', + clear: '清空', cancel: '取消', + confirm: '確認', delete: '刪除', loading: '載入中...', noCoupon: '暫無優惠券', diff --git a/packages/vant/src/signature/README.md b/packages/vant/src/signature/README.md index 25247ddd0..b57de9dd9 100644 --- a/packages/vant/src/signature/README.md +++ b/packages/vant/src/signature/README.md @@ -77,7 +77,7 @@ Use `line-width` prop to set the width of the line. | pen-color | Color of the brush stroke, default is black | _string_ | `#000` | | line-width | Width of the line | _number_ | `3` | | tips | Text that appears when Canvas is not supported | _string_ | - | -| cancel-button-text | Cancel button text | _string_ | `Cancel` | +| clear-button-text | Clear button text | _string_ | `Clear` | | confirm-button-text | Confirm button text | _string_ | `Confirm` | ### Events diff --git a/packages/vant/src/signature/README.zh-CN.md b/packages/vant/src/signature/README.zh-CN.md index 93f861f16..30aaece99 100644 --- a/packages/vant/src/signature/README.zh-CN.md +++ b/packages/vant/src/signature/README.zh-CN.md @@ -77,7 +77,7 @@ export default { | pen-color | 笔触颜色,默认黑色 | _string_ | `#000` | | line-width | 线条宽度 | _number_ | `3` | | tips | 当不支持 Canvas 的时候出现的提示文案 | _string_ | - | -| cancel-button-text | 取消按钮文案 | _string_ | `取消` | +| clear-button-text | 清除按钮文案 | _string_ | `清空` | | confirm-button-text | 确认按钮文案 | _string_ | `确认` | ### Events diff --git a/packages/vant/src/signature/Signature.tsx b/packages/vant/src/signature/Signature.tsx index e641b4356..02a24e891 100644 --- a/packages/vant/src/signature/Signature.tsx +++ b/packages/vant/src/signature/Signature.tsx @@ -22,7 +22,7 @@ export const signatureProps = { type: makeStringProp('png'), penColor: makeStringProp('#000'), lineWidth: makeNumberProp(3), - cancelButtonText: String, + clearButtonText: String, confirmButtonText: String, }; @@ -151,7 +151,7 @@ export default defineComponent({