chore(Signature): improve clear button text (#11807)

This commit is contained in:
neverland 2023-05-02 22:08:26 +08:00 committed by GitHub
parent 0f47224b46
commit 12c3570e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
45 changed files with 94 additions and 77 deletions

View File

@ -68,8 +68,8 @@ Current supported languages:
| Romanian | ro-RO | - | | Romanian | ro-RO | - |
| Russian | ru-RU | `v3.1.5` | | Russian | ru-RU | `v3.1.5` |
| Swedish | sv-SE | `v3.4.7` | | Swedish | sv-SE | `v3.4.7` |
| Turkish | tr-TR | - |
| Thai | th-TH | - | | Thai | th-TH | - |
| Turkish | tr-TR | - |
| Ukrainian | uk-UA | `v3.4.5` | | Ukrainian | uk-UA | `v3.4.5` |
| Vietnamese | vi-VN | `v3.4.5` | | Vietnamese | vi-VN | `v3.4.5` |
| Chinese | zh-CN | - | | Chinese | zh-CN | - |

View File

@ -69,8 +69,8 @@ Locale.add(messages);
| 罗马尼亚语 | ro-RO | - | | 罗马尼亚语 | ro-RO | - |
| 俄罗斯语 | ru-RU | `v3.1.5` | | 俄罗斯语 | ru-RU | `v3.1.5` |
| 瑞典语 | sv-SE | `v3.4.7` | | 瑞典语 | sv-SE | `v3.4.7` |
| 土耳其语 | tr-TR | - |
| 泰语 | th-TH | - | | 泰语 | th-TH | - |
| 土耳其语 | tr-TR | - |
| 乌克兰语 | uk-UA | `v3.4.5` | | 乌克兰语 | uk-UA | `v3.4.5` |
| 越南语 | vi-VN | `v3.4.5` | | 越南语 | vi-VN | `v3.4.5` |
| 简体中文 | zh-CN | - | | 简体中文 | zh-CN | - |

View File

@ -2,8 +2,9 @@ export default {
name: 'Име', name: 'Име',
tel: 'Телефон', tel: 'Телефон',
save: 'Запазване', save: 'Запазване',
confirm: 'Потвърди', clear: 'ясно',
cancel: 'Отказ', cancel: 'Отказ',
confirm: 'Потвърди',
delete: 'Изтриване', delete: 'Изтриване',
loading: 'Зареждане...', loading: 'Зареждане...',
noCoupon: 'Без купони', noCoupon: 'Без купони',

View File

@ -2,8 +2,9 @@ export default {
name: 'নাম', name: 'নাম',
tel: 'ফোন', tel: 'ফোন',
save: 'সংরক্ষণ করুন', save: 'সংরক্ষণ করুন',
confirm: 'নিশ্চিত করুন', clear: 'পরিষ্কার',
cancel: 'বাতিল', cancel: 'বাতিল',
confirm: 'নিশ্চিত করুন',
delete: 'মুছুন', delete: 'মুছুন',
loading: 'লোড হচ্ছে...', loading: 'লোড হচ্ছে...',
noCoupon: 'কোন কুপন নেই', noCoupon: 'কোন কুপন নেই',

View File

@ -2,8 +2,9 @@ export default {
name: 'navn', name: 'navn',
tel: 'Telefon', tel: 'Telefon',
save: 'Gem', save: 'Gem',
confirm: 'Bekræft', clear: 'Klar',
cancel: 'Annuller', cancel: 'Annuller',
confirm: 'Bekræft',
delete: 'Slet', delete: 'Slet',
loading: 'Indlæser...', loading: 'Indlæser...',
noCoupon: 'Ingen kuponer', noCoupon: 'Ingen kuponer',

View File

@ -2,8 +2,9 @@ export default {
name: 'Name', name: 'Name',
tel: 'Telefon', tel: 'Telefon',
save: 'Speichern', save: 'Speichern',
confirm: 'Bestätigen', clear: 'Klar',
cancel: 'Abbrechen', cancel: 'Abbrechen',
confirm: 'Bestätigen',
delete: 'Löschen', delete: 'Löschen',
loading: 'Laden...', loading: 'Laden...',
noCoupon: 'Keine Coupons', noCoupon: 'Keine Coupons',

View File

@ -2,8 +2,9 @@ export default {
name: 'Name', name: 'Name',
tel: 'Telefon', tel: 'Telefon',
save: 'Speichern', save: 'Speichern',
confirm: 'Bestätigen', clear: 'Klar',
cancel: 'Abbrechen', cancel: 'Abbrechen',
confirm: 'Bestätigen',
delete: 'Löschen', delete: 'Löschen',
loading: 'Laden...', loading: 'Laden...',
noCoupon: 'Keine Coupons', noCoupon: 'Keine Coupons',

View File

@ -2,8 +2,9 @@ export default {
name: 'Όνομα', name: 'Όνομα',
tel: 'Τηλέφωνο', tel: 'Τηλέφωνο',
save: 'Αποθήκευση', save: 'Αποθήκευση',
confirm: 'Επιβεβαίωση', clear: 'Σαφή',
cancel: 'Ακύρωση', cancel: 'Ακύρωση',
confirm: 'Επιβεβαίωση',
delete: 'Διαγραφή', delete: 'Διαγραφή',
loading: 'Φόρτωση...', loading: 'Φόρτωση...',
noCoupon: 'Χωρίς κουπόνια', noCoupon: 'Χωρίς κουπόνια',

View File

@ -2,8 +2,9 @@ export default {
name: 'Name', name: 'Name',
tel: 'Phone', tel: 'Phone',
save: 'Save', save: 'Save',
confirm: 'Confirm', clear: 'Clear',
cancel: 'Cancel', cancel: 'Cancel',
confirm: 'Confirm',
delete: 'Delete', delete: 'Delete',
loading: 'Loading...', loading: 'Loading...',
noCoupon: 'No coupons', noCoupon: 'No coupons',

View File

@ -2,8 +2,9 @@ export default {
name: 'Nomo', name: 'Nomo',
tel: 'Telefonnumero', tel: 'Telefonnumero',
save: 'Konservi', save: 'Konservi',
confirm: 'Konfirmi', clear: 'Klara',
cancel: 'Rezigni', cancel: 'Rezigni',
confirm: 'Konfirmi',
delete: 'Forigi', delete: 'Forigi',
loading: 'Bonvolu atendi...', loading: 'Bonvolu atendi...',
noCoupon: 'Neniu kupono', noCoupon: 'Neniu kupono',

View File

@ -2,8 +2,9 @@ export default {
name: 'Nombre', name: 'Nombre',
tel: 'Teléfono', tel: 'Teléfono',
save: 'Guardar', save: 'Guardar',
confirm: 'Confirmar', clear: 'Claro',
cancel: 'Cancelar', cancel: 'Cancelar',
confirm: 'Confirmar',
delete: 'Eliminar', delete: 'Eliminar',
loading: 'Cargando...', loading: 'Cargando...',
noCoupon: 'Sin cupones', noCoupon: 'Sin cupones',

View File

@ -2,8 +2,9 @@ export default {
name: 'نام', name: 'نام',
tel: 'تلفن', tel: 'تلفن',
save: 'ذخیره', save: 'ذخیره',
confirm: 'تایید', clear: 'پاک کردن',
cancel: 'انصراف', cancel: 'انصراف',
confirm: 'تایید',
delete: 'حذف', delete: 'حذف',
loading: 'در حال بارگزاری ...', loading: 'در حال بارگزاری ...',
noCoupon: 'بدون کوپن', noCoupon: 'بدون کوپن',

View File

@ -2,8 +2,9 @@ export default {
name: 'Nom', name: 'Nom',
tel: 'Telephone', tel: 'Telephone',
save: 'Sauvegarder', save: 'Sauvegarder',
confirm: 'Confirmer', clear: 'Clair',
cancel: 'Annuler', cancel: 'Annuler',
confirm: 'Confirmer',
delete: 'Suprimer', delete: 'Suprimer',
loading: 'Chargement...', loading: 'Chargement...',
noCoupon: 'Pas de coupons', noCoupon: 'Pas de coupons',

View File

@ -2,8 +2,9 @@ export default {
name: 'שם', name: 'שם',
tel: 'טלפון', tel: 'טלפון',
save: 'שמור', save: 'שמור',
confirm: 'אישור', clear: 'ברור',
cancel: 'ביטול', cancel: 'ביטול',
confirm: 'אישור',
delete: 'מחיקה', delete: 'מחיקה',
loading: 'טוען...', loading: 'טוען...',
noCoupon: 'אין קופונים', noCoupon: 'אין קופונים',

View File

@ -2,8 +2,9 @@ export default {
name: 'नाम', name: 'नाम',
tel: 'फ़ोन', tel: 'फ़ोन',
save: 'सहेजें', save: 'सहेजें',
confirm: 'पुष्टि करना', clear: 'साफ़',
cancel: 'रद्द करें', cancel: 'रद्द करें',
confirm: 'पुष्टि करना',
delete: 'हटाएं', delete: 'हटाएं',
loading: 'लोड हो रहा है...', loading: 'लोड हो रहा है...',
noCoupon: 'कोई कूपन नहीं', noCoupon: 'कोई कूपन नहीं',

View File

@ -2,8 +2,9 @@ export default {
name: 'Nama', name: 'Nama',
tel: 'Telepon', tel: 'Telepon',
save: 'Simpan', save: 'Simpan',
confirm: 'Konfirmasi', clear: 'Jernih',
cancel: 'Batal', cancel: 'Batal',
confirm: 'Konfirmasi',
delete: 'Hapus', delete: 'Hapus',
loading: 'Memuat...', loading: 'Memuat...',
noCoupon: 'Tidak ada kupon', noCoupon: 'Tidak ada kupon',

View File

@ -2,8 +2,9 @@ export default {
name: 'Nafn', name: 'Nafn',
tel: 'Sími', tel: 'Sími',
save: 'Vista', save: 'Vista',
confirm: 'Staðfesta', clear: 'Hreinsa',
cancel: 'hætta við', cancel: 'hætta við',
confirm: 'Staðfesta',
delete: 'Eyða', delete: 'Eyða',
loading: 'Hleður...', loading: 'Hleður...',
noCoupon: 'Engin afsláttarmiða', noCoupon: 'Engin afsláttarmiða',

View File

@ -2,8 +2,9 @@ export default {
name: 'Nome', name: 'Nome',
tel: 'Telefono', tel: 'Telefono',
save: 'Salva', save: 'Salva',
confirm: 'Conferma', clear: 'Chiaro',
cancel: 'Annulla', cancel: 'Annulla',
confirm: 'Conferma',
delete: 'Elimina', delete: 'Elimina',
loading: 'Caricamento in corso...', loading: 'Caricamento in corso...',
noCoupon: 'Nessun coupon', noCoupon: 'Nessun coupon',
@ -14,15 +15,7 @@ export default {
end: 'Fine', end: 'Fine',
start: 'Inizio', start: 'Inizio',
title: 'Calendario', title: 'Calendario',
weekdays: [ weekdays: ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'],
'dom',
'lun',
'mar',
'mer',
'gio',
'ven',
'sab',
],
monthTitle: (year: number, month: number) => `${year}/${month}`, monthTitle: (year: number, month: number) => `${year}/${month}`,
rangePrompt: (maxRange: number) => `Scegli non più di ${maxRange} giorni`, rangePrompt: (maxRange: number) => `Scegli non più di ${maxRange} giorni`,
}, },

View File

@ -2,8 +2,9 @@ export default {
name: 'お名前', name: 'お名前',
tel: '電話番号', tel: '電話番号',
save: 'セーブ', save: 'セーブ',
confirm: '確認', clear: 'クリア',
cancel: 'キャンセル', cancel: 'キャンセル',
confirm: '確認',
delete: '削除', delete: '削除',
loading: '読み込み中...', loading: '読み込み中...',
noCoupon: 'クーポンはありません', noCoupon: 'クーポンはありません',

View File

@ -2,8 +2,9 @@ export default {
name: 'ឈ្មោះ', name: 'ឈ្មោះ',
tel: 'ទូរស័ព្ទ', tel: 'ទូរស័ព្ទ',
save: 'រក្សាទុក', save: 'រក្សាទុក',
confirm: 'យល់ព្រម', clear: 'ច្បាស់',
cancel: 'បោះបង់', cancel: 'បោះបង់',
confirm: 'យល់ព្រម',
delete: 'លុប', delete: 'លុប',
loading: 'កំពុង​ផ្ទុក...', loading: 'កំពុង​ផ្ទុក...',
noCoupon: 'គ្មានគូប៉ុង', noCoupon: 'គ្មានគូប៉ុង',

View File

@ -2,8 +2,9 @@ export default {
name: '이름', name: '이름',
tel: '핸드폰', tel: '핸드폰',
save: '구하다', save: '구하다',
confirm: '확인', clear: '분명한',
cancel: '취소', cancel: '취소',
confirm: '확인',
delete: '삭제', delete: '삭제',
loading: '로딩 중...', loading: '로딩 중...',
noCoupon: '쿠폰 없음', noCoupon: '쿠폰 없음',

View File

@ -2,8 +2,9 @@ export default {
name: 'ຊື່', name: 'ຊື່',
tel: 'ໂທລະສັບ', tel: 'ໂທລະສັບ',
save: 'ບັນທຶກ', save: 'ບັນທຶກ',
confirm: 'ຢຶນຢັນ', clear: 'ຈະແຈ້ງ',
cancel: 'ຍົກເລີກ', cancel: 'ຍົກເລີກ',
confirm: 'ຢຶນຢັນ',
delete: 'ລືບ', delete: 'ລືບ',
loading: 'ກຳລັງໂຫຼດ...', loading: 'ກຳລັງໂຫຼດ...',
noCoupon: 'ບໍ່ມີຄູປອງ', noCoupon: 'ບໍ່ມີຄູປອງ',

View File

@ -2,8 +2,9 @@ export default {
name: 'Нэр', name: 'Нэр',
tel: 'Утас', tel: 'Утас',
save: 'Хадгалах', save: 'Хадгалах',
confirm: 'Баталгаажуулах', clear: 'Тодорхой',
cancel: 'Цуцлах', cancel: 'Цуцлах',
confirm: 'Баталгаажуулах',
delete: 'Устгах', delete: 'Устгах',
loading: 'Ачааж байна...', loading: 'Ачааж байна...',
noCoupon: 'Купон байхгүй', noCoupon: 'Купон байхгүй',

View File

@ -2,8 +2,9 @@ export default {
name: 'Navn', name: 'Navn',
tel: 'Telefon', tel: 'Telefon',
save: 'Lagre', save: 'Lagre',
confirm: 'Bekreft', clear: 'Klar',
cancel: 'Avbryt', cancel: 'Avbryt',
confirm: 'Bekreft',
delete: 'Slett', delete: 'Slett',
loading: 'Laster...', loading: 'Laster...',
noCoupon: 'Ingen kuponger', noCoupon: 'Ingen kuponger',

View File

@ -2,8 +2,9 @@ export default {
name: 'naam', name: 'naam',
tel: 'Telefoon', tel: 'Telefoon',
save: 'Opslaan', save: 'Opslaan',
confirm: 'Bevestigen', clear: 'Duidelijk',
cancel: 'Annuleren', cancel: 'Annuleren',
confirm: 'Bevestigen',
delete: 'Verwijderen', delete: 'Verwijderen',
loading: 'Bezig met laden...', loading: 'Bezig met laden...',
noCoupon: 'Geen coupons', noCoupon: 'Geen coupons',

View File

@ -2,8 +2,9 @@ export default {
name: 'Nome', name: 'Nome',
tel: 'Fone', tel: 'Fone',
save: 'Salvar', save: 'Salvar',
confirm: 'Confirmar', clear: 'Claro',
cancel: 'Cancelar', cancel: 'Cancelar',
confirm: 'Confirmar',
delete: 'Excluir', delete: 'Excluir',
loading: 'Carregando...', loading: 'Carregando...',
noCoupon: 'Nenhum cupom', noCoupon: 'Nenhum cupom',

View File

@ -2,8 +2,9 @@ export default {
name: 'Nume', name: 'Nume',
tel: 'Telefon', tel: 'Telefon',
save: 'Salvează', save: 'Salvează',
confirm: 'Confirmă', clear: 'Clar',
cancel: 'Anulează', cancel: 'Anulează',
confirm: 'Confirmă',
delete: 'Șterge', delete: 'Șterge',
loading: 'Încărcare...', loading: 'Încărcare...',
noCoupon: 'Fără cupoane', noCoupon: 'Fără cupoane',

View File

@ -2,8 +2,9 @@ export default {
name: 'Имя', name: 'Имя',
tel: 'Телефон', tel: 'Телефон',
save: 'Сохранить', save: 'Сохранить',
confirm: 'Подтвердить', clear: 'Прозрачный',
cancel: 'Отмена', cancel: 'Отмена',
confirm: 'Подтвердить',
delete: 'Удалить', delete: 'Удалить',
loading: 'Загрузка...', loading: 'Загрузка...',
noCoupon: 'Нет купонов', noCoupon: 'Нет купонов',

View File

@ -2,8 +2,9 @@ export default {
name: 'Namn', name: 'Namn',
tel: 'Telefon', tel: 'Telefon',
save: 'Spara', save: 'Spara',
confirm: 'Bekräfta', clear: 'Klar',
cancel: 'Avbryt', cancel: 'Avbryt',
confirm: 'Bekräfta',
delete: 'Radera', delete: 'Radera',
loading: 'Laddar...', loading: 'Laddar...',
noCoupon: 'Inga kuponger', noCoupon: 'Inga kuponger',

View File

@ -2,8 +2,9 @@ export default {
name: 'ชื่อ', name: 'ชื่อ',
tel: 'โทรศัพท์', tel: 'โทรศัพท์',
save: 'บันทึก', save: 'บันทึก',
confirm: 'ยืนยัน', clear: 'ชัดเจน',
cancel: 'ยกเลิก', cancel: 'ยกเลิก',
confirm: 'ยืนยัน',
delete: 'ลบ', delete: 'ลบ',
loading: 'กำลังโหลด...', loading: 'กำลังโหลด...',
noCoupon: 'ไม่มีคูปอง', noCoupon: 'ไม่มีคูปอง',

View File

@ -2,8 +2,9 @@ export default {
name: 'İsim', name: 'İsim',
tel: 'Telefon', tel: 'Telefon',
save: 'Kaydet', save: 'Kaydet',
confirm: 'Onayla', clear: 'Temizlemek',
cancel: 'İptal', cancel: 'İptal',
confirm: 'Onayla',
delete: 'Sil', delete: 'Sil',
loading: 'Yükleniyor...', loading: 'Yükleniyor...',
noCoupon: 'Kupon yok', noCoupon: 'Kupon yok',

View File

@ -2,8 +2,9 @@ export default {
name: "Ім'я", name: "Ім'я",
tel: 'Телефон', tel: 'Телефон',
save: 'Зберегти', save: 'Зберегти',
confirm: 'Підтвердити', clear: 'ясно',
cancel: 'Скасувати', cancel: 'Скасувати',
confirm: 'Підтвердити',
delete: 'Видалити', delete: 'Видалити',
loading: 'Завантаження...', loading: 'Завантаження...',
noCoupon: 'Без купонів', noCoupon: 'Без купонів',
@ -14,18 +15,9 @@ export default {
end: 'Кінець', end: 'Кінець',
start: 'Початок', start: 'Початок',
title: 'Календар', title: 'Календар',
weekdays: [ weekdays: ['Нд', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
'Нд',
'Пн',
'Вт',
'Ср',
'Чт',
"Пт",
'Сб',
],
monthTitle: (year: number, month: number) => `${year}/${month}`, monthTitle: (year: number, month: number) => `${year}/${month}`,
rangePrompt: (maxRange: number) => rangePrompt: (maxRange: number) => `Оберіть не більше ніж ${maxRange} днів`,
`Оберіть не більше ніж ${maxRange} днів`,
}, },
vanCascader: { vanCascader: {
select: 'Обрати', select: 'Обрати',

View File

@ -2,8 +2,9 @@ export default {
name: 'tên', name: 'tên',
tel: 'Điện thoại', tel: 'Điện thoại',
save: 'Cứu', save: 'Cứu',
confirm: 'Xác nhận', clear: 'Thông thoáng',
cancel: 'Hủy bỏ', cancel: 'Hủy bỏ',
confirm: 'Xác nhận',
delete: 'Xóa', delete: 'Xóa',
loading: 'Đang tải ...', loading: 'Đang tải ...',
noCoupon: 'Không có phiếu giảm giá', noCoupon: 'Không có phiếu giảm giá',

View File

@ -2,8 +2,9 @@ export default {
name: '姓名', name: '姓名',
tel: '电话', tel: '电话',
save: '保存', save: '保存',
confirm: '确认', clear: '清空',
cancel: '取消', cancel: '取消',
confirm: '确认',
delete: '删除', delete: '删除',
loading: '加载中...', loading: '加载中...',
noCoupon: '暂无优惠券', noCoupon: '暂无优惠券',

View File

@ -2,8 +2,9 @@ export default {
name: '姓名', name: '姓名',
tel: '電話', tel: '電話',
save: '保存', save: '保存',
confirm: '確認', clear: '清空',
cancel: '取消', cancel: '取消',
confirm: '確認',
delete: '刪除', delete: '刪除',
loading: '加載中...', loading: '加載中...',
noCoupon: '暫無優惠券', noCoupon: '暫無優惠券',

View File

@ -2,8 +2,9 @@ export default {
name: '姓名', name: '姓名',
tel: '電話', tel: '電話',
save: '儲存', save: '儲存',
confirm: '確認', clear: '清空',
cancel: '取消', cancel: '取消',
confirm: '確認',
delete: '刪除', delete: '刪除',
loading: '載入中...', loading: '載入中...',
noCoupon: '暫無優惠券', noCoupon: '暫無優惠券',

View File

@ -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` | | pen-color | Color of the brush stroke, default is black | _string_ | `#000` |
| line-width | Width of the line | _number_ | `3` | | line-width | Width of the line | _number_ | `3` |
| tips | Text that appears when Canvas is not supported | _string_ | - | | 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` | | confirm-button-text | Confirm button text | _string_ | `Confirm` |
### Events ### Events

View File

@ -77,7 +77,7 @@ export default {
| pen-color | 笔触颜色,默认黑色 | _string_ | `#000` | | pen-color | 笔触颜色,默认黑色 | _string_ | `#000` |
| line-width | 线条宽度 | _number_ | `3` | | line-width | 线条宽度 | _number_ | `3` |
| tips | 当不支持 Canvas 的时候出现的提示文案 | _string_ | - | | tips | 当不支持 Canvas 的时候出现的提示文案 | _string_ | - |
| cancel-button-text | 取消按钮文案 | _string_ | `取消` | | clear-button-text | 清除按钮文案 | _string_ | `清空` |
| confirm-button-text | 确认按钮文案 | _string_ | `确认` | | confirm-button-text | 确认按钮文案 | _string_ | `确认` |
### Events ### Events

View File

@ -22,7 +22,7 @@ export const signatureProps = {
type: makeStringProp('png'), type: makeStringProp('png'),
penColor: makeStringProp('#000'), penColor: makeStringProp('#000'),
lineWidth: makeNumberProp(3), lineWidth: makeNumberProp(3),
cancelButtonText: String, clearButtonText: String,
confirmButtonText: String, confirmButtonText: String,
}; };
@ -151,7 +151,7 @@ export default defineComponent({
</div> </div>
<div class={bem('footer')}> <div class={bem('footer')}>
<Button size="small" onClick={clear}> <Button size="small" onClick={clear}>
{props.cancelButtonText || t('cancel')} {props.clearButtonText || t('clear')}
</Button> </Button>
<Button type="primary" size="small" onClick={submit}> <Button type="primary" size="small" onClick={submit}>
{props.confirmButtonText || t('confirm')} {props.confirmButtonText || t('confirm')}

View File

@ -19,7 +19,7 @@ exports[`should render demo and match snapshot 1`] = `
<div class="van-button__content"> <div class="van-button__content">
<span class="van-button__text"> <span class="van-button__text">
<!--[--> <!--[-->
Cancel Clear
</span> </span>
</div> </div>
</button> </button>
@ -54,7 +54,7 @@ exports[`should render demo and match snapshot 1`] = `
<div class="van-button__content"> <div class="van-button__content">
<span class="van-button__text"> <span class="van-button__text">
<!--[--> <!--[-->
Cancel Clear
</span> </span>
</div> </div>
</button> </button>
@ -89,7 +89,7 @@ exports[`should render demo and match snapshot 1`] = `
<div class="van-button__content"> <div class="van-button__content">
<span class="van-button__text"> <span class="van-button__text">
<!--[--> <!--[-->
Cancel Clear
</span> </span>
</div> </div>
</button> </button>

View File

@ -15,7 +15,7 @@ exports[`should render demo and match snapshot 1`] = `
> >
<div class="van-button__content"> <div class="van-button__content">
<span class="van-button__text"> <span class="van-button__text">
Cancel Clear
</span> </span>
</div> </div>
</button> </button>
@ -45,7 +45,7 @@ exports[`should render demo and match snapshot 1`] = `
> >
<div class="van-button__content"> <div class="van-button__content">
<span class="van-button__text"> <span class="van-button__text">
Cancel Clear
</span> </span>
</div> </div>
</button> </button>
@ -75,7 +75,7 @@ exports[`should render demo and match snapshot 1`] = `
> >
<div class="van-button__content"> <div class="van-button__content">
<span class="van-button__text"> <span class="van-button__text">
Cancel Clear
</span> </span>
</div> </div>
</button> </button>

View File

@ -36,7 +36,7 @@ exports[`should render tips correctly 1`] = `
> >
<div class="van-button__content"> <div class="van-button__content">
<span class="van-button__text"> <span class="van-button__text">
Cancel Clear
</span> </span>
</div> </div>
</button> </button>

View File

@ -16,7 +16,7 @@ exports[`should render correctly when SSR 1`] = `
<div class="van-button__content"> <div class="van-button__content">
<span class="van-button__text"> <span class="van-button__text">
<!--[--> <!--[-->
Cancel Clear
</span> </span>
</div> </div>
</button> </button>

View File

@ -84,7 +84,7 @@ test('should allow to custom button text', async () => {
const wrapper = mount(Signature, { const wrapper = mount(Signature, {
props: { props: {
confirmButtonText: 'Foo', confirmButtonText: 'Foo',
cancelButtonText: 'Bar', clearButtonText: 'Bar',
}, },
}); });

View File

@ -210,6 +210,10 @@ location.href = location.href.replace('youzan.github.io', 'vant-ui.github.io');
path: 'slider', path: 'slider',
title: 'Slider 滑块', title: 'Slider 滑块',
}, },
{
path: 'signature',
title: 'Signature 签名',
},
{ {
path: 'stepper', path: 'stepper',
title: 'Stepper 步进器', title: 'Stepper 步进器',
@ -434,10 +438,6 @@ location.href = location.href.replace('youzan.github.io', 'vant-ui.github.io');
path: 'submit-bar', path: 'submit-bar',
title: 'SubmitBar 提交订单栏', title: 'SubmitBar 提交订单栏',
}, },
{
path: 'signature',
title: 'Signature 签名',
},
], ],
}, },
{ {
@ -658,6 +658,10 @@ location.href = location.href.replace('youzan.github.io', 'vant-ui.github.io');
path: 'slider', path: 'slider',
title: 'Slider', title: 'Slider',
}, },
{
path: 'signature',
title: 'Signature',
},
{ {
path: 'stepper', path: 'stepper',
title: 'Stepper', title: 'Stepper',
@ -882,10 +886,6 @@ location.href = location.href.replace('youzan.github.io', 'vant-ui.github.io');
path: 'submit-bar', path: 'submit-bar',
title: 'SubmitBar', title: 'SubmitBar',
}, },
{
path: 'signature',
title: 'Signature',
},
], ],
}, },
{ {