Skip to content

Commit

Permalink
refactor(module:upload): refactor and sync antd v4.0 (#4410)
Browse files Browse the repository at this point in the history
* feat(module:upload): add `nzTransformFile`, `nzDownload` property

* chore: add `nzPreviewFile` property

* chore: update styles

* chore: fix local

* chore: add `nzIconRender` property

* chore: add upload  used icons

* chore: update demos

* chore: update file names

* chore: fix

* chore: fix doc
  • Loading branch information
cipchk authored Mar 15, 2020
1 parent 59a993c commit 4530803
Show file tree
Hide file tree
Showing 86 changed files with 1,186 additions and 773 deletions.
3 changes: 2 additions & 1 deletion components/i18n/languages/ar_EG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export default {
uploading: 'جاري الرفع...',
removeFile: 'احذف الملف',
uploadError: 'مشكلة فى الرفع',
previewFile: 'استعرض الملف'
previewFile: 'استعرض الملف',
downloadFile: 'تحميل الملف'
},
Empty: {
description: 'لا توجد بيانات'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/bg_BG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'Качване...',
removeFile: 'Премахване',
uploadError: 'Грешка при качването',
previewFile: 'Преглед'
previewFile: 'Преглед',
downloadFile: 'Свали файл'
},
Empty: {
description: 'Няма данни'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/ca_ES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export default {
uploading: 'Pujant...',
removeFile: 'Eliminar fitxer',
uploadError: 'Error al pujar el fitxer',
previewFile: 'Vista prèvia'
previewFile: 'Vista prèvia',
downloadFile: "Descarrega l'arxiu"
},
Empty: {
description: 'No hi ha dades'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/cs_CZ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export default {
uploading: 'Nahrávání...',
removeFile: 'Odstranit soubor',
uploadError: 'Chyba při nahrávání',
previewFile: 'Zobrazit soubor'
previewFile: 'Zobrazit soubor',
downloadFile: 'Stáhnout soubor'
},
Empty: {
description: 'Žádná data'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/da_DK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'Uploader...',
removeFile: 'Fjern fil',
uploadError: 'Fejl ved upload',
previewFile: 'Forhåndsvisning'
previewFile: 'Forhåndsvisning',
downloadFile: 'Download fil'
},
Empty: {
description: 'Ingen data'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/de_DE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export default {
uploading: 'Hochladen...',
removeFile: 'Datei entfernen',
uploadError: 'Fehler beim Hochladen',
previewFile: 'Dateivorschau'
previewFile: 'Dateivorschau',
downloadFile: 'Download-Datei'
},
Empty: {
description: 'Keine Daten'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/el_GR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'Μεταφόρτωση...',
removeFile: 'Αφαίρεση αρχείου',
uploadError: 'Σφάλμα μεταφόρτωσης',
previewFile: 'Προεπισκόπηση αρχείου'
previewFile: 'Προεπισκόπηση αρχείου',
downloadFile: 'Λήψη αρχείου'
},
Empty: {
description: 'Δεν υπάρχουν δεδομένα'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/en_GB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'Uploading...',
removeFile: 'Remove file',
uploadError: 'Upload error',
previewFile: 'Preview file'
previewFile: 'Preview file',
downloadFile: 'Download file'
},
Empty: {
description: 'No data'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/es_ES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export default {
uploading: 'Subiendo...',
removeFile: 'Eliminar archivo',
uploadError: 'Error al subir el archivo',
previewFile: 'Vista previa'
previewFile: 'Vista previa',
downloadFile: 'Descargar archivo'
},
Empty: {
description: 'No hay datos'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/et_EE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'Üleslaadimine...',
removeFile: 'Eemalda fail',
uploadError: 'Üleslaadimise tõrge',
previewFile: 'Faili eelvaade'
previewFile: 'Faili eelvaade',
downloadFile: 'Laadige fail alla'
},
Empty: {
description: 'Andmed puuduvad'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/fa_IR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'در حال آپلود...',
removeFile: 'حذف فایل',
uploadError: 'خطا در آپلود',
previewFile: 'مشاهده‌ی فایل'
previewFile: 'مشاهده‌ی فایل',
downloadFile: 'دریافت فایل'
},
Empty: {
description: 'داده‌ای موجود نیست'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/fi_FI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export default {
uploading: 'Lähetetään...',
removeFile: 'Poista tiedosto',
uploadError: 'Virhe lähetyksessä',
previewFile: 'Esikatsele tiedostoa'
previewFile: 'Esikatsele tiedostoa',
downloadFile: 'Lataa tiedosto'
},
Empty: {
description: 'Ei kohteita'
Expand Down
7 changes: 7 additions & 0 deletions components/i18n/languages/fr_BE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ export default {
itemUnit: 'élément',
itemsUnit: 'éléments'
},
Upload: {
uploading: 'Téléchargement...',
removeFile: 'Effacer le fichier',
uploadError: 'Erreur de téléchargement',
previewFile: 'Fichier de prévisualisation',
downloadFile: 'Télécharger un fichier'
},
Empty: {
description: 'Aucune donnée'
},
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/fr_FR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'Téléversement en cours...',
removeFile: 'Supprimer',
uploadError: 'Erreur de téléversement',
previewFile: "Afficher l'aperçu du fichier"
previewFile: "Afficher l'aperçu du fichier",
downloadFile: 'Télécharger un fichier'
},
Empty: {
description: 'Aucune donnée'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/he_IL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'מעלה...',
removeFile: 'הסר קובץ',
uploadError: 'שגיאת העלאה',
previewFile: 'הצג קובץ'
previewFile: 'הצג קובץ',
downloadFile: 'הורד קובץ'
},
Empty: {
description: 'אין מידע'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/hi_IN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default {
uploading: 'अपलोडिंग...',
removeFile: 'फ़ाइल निकालें',
uploadError: 'अपलोड में त्रुटि',
previewFile: 'फ़ाइल पूर्वावलोकन'
previewFile: 'फ़ाइल पूर्वावलोकन',
downloadFile: 'फ़ाइल डाउनलोड करें'
}
};
3 changes: 2 additions & 1 deletion components/i18n/languages/hr_HR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export default {
uploading: 'Upload u tijeku...',
removeFile: 'Makni datoteku',
uploadError: 'Greška kod uploada',
previewFile: 'Pogledaj datoteku'
previewFile: 'Pogledaj datoteku',
downloadFile: 'Preuzmi datoteku'
},
Empty: {
description: 'Nema podataka'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/hu_HU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export default {
uploading: 'Feltöltés...',
removeFile: 'Fájl eltávolítása',
uploadError: 'Feltöltési hiba',
previewFile: 'Fájl előnézet'
previewFile: 'Fájl előnézet',
downloadFile: 'Fájl letöltése'
},
Empty: {
description: 'Nincs adat'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/id_ID.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export default {
uploading: 'Mengunggah...',
removeFile: 'Hapus file',
uploadError: 'Kesalahan pengunggahan',
previewFile: 'File pratinjau'
previewFile: 'File pratinjau',
downloadFile: 'Unduh berkas'
},
Empty: {
description: 'Tidak ada data'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/is_IS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'Hleð upp...',
removeFile: 'Fjarlægja skrá',
uploadError: 'Villa við að hlaða upp',
previewFile: 'Forskoða skrá'
previewFile: 'Forskoða skrá',
downloadFile: 'Hlaða niður skrá'
},
Empty: {
description: 'Engin gögn'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/it_IT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export default {
uploading: 'Caricamento...',
removeFile: 'Rimuovi il file',
uploadError: 'Errore di caricamento',
previewFile: 'Anteprima file'
previewFile: 'Anteprima file',
downloadFile: 'Download file'
},
Empty: {
description: 'Nessun dato'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/ja_JP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'アップロード中...',
removeFile: 'ファイルを削除',
uploadError: 'アップロードエラー',
previewFile: 'ファイルをプレビュー'
previewFile: 'ファイルをプレビュー',
downloadFile: 'ダウンロードファイル'
},
Empty: {
description: 'データがありません'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/kn_IN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default {
uploading: 'ಏರಿಸಿ...',
removeFile: 'ಫೈಲ್ ತೆಗೆದುಹಾಕಿ',
uploadError: 'ಏರಿಸುವ ದೋಷ',
previewFile: 'ಫೈಲ್ ಮುನ್ನೋಟ'
previewFile: 'ಫೈಲ್ ಮುನ್ನೋಟ',
downloadFile: 'ಫೈಲ್ ಡೌನ್‌ಲೋಡ್ ಮಾಡಿ'
}
};
3 changes: 2 additions & 1 deletion components/i18n/languages/ko_KR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: '업로드 중...',
removeFile: '파일 삭제',
uploadError: '업로드 실패',
previewFile: '파일 미리보기'
previewFile: '파일 미리보기',
downloadFile: '파일 다운로드'
},
Empty: {
description: '데이터 없음'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/ku_IQ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'Bardike...',
removeFile: 'Pelê rabike',
uploadError: 'Xeta barkirine',
previewFile: 'Pelê pêşbibîne'
previewFile: 'Pelê pêşbibîne',
downloadFile: 'Pelê dakêşin'
},
Empty: {
description: 'Agahî tune'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/lv_LV.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'Augšupielāde...',
removeFile: 'Noņemt failu',
uploadError: 'Augšupielādes kļūda',
previewFile: 'Priekšskatiet failu'
previewFile: 'Priekšskatiet failu',
downloadFile: 'Lejupielādēt failu'
},
Empty: {
description: 'Nav datu'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/mn_MN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'Хуулж байна...',
removeFile: 'Файл устгах',
uploadError: 'Хуулахад алдаа гарлаа',
previewFile: 'Файлыг түргэн үзэх'
previewFile: 'Файлыг түргэн үзэх',
downloadFile: 'Файлыг татах'
},
Empty: {
description: 'Мэдээлэл байхгүй байна'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/ms_MY.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default {
uploading: 'Sedang memuat naik...',
removeFile: 'Buang fail',
uploadError: 'Masalah muat naik',
previewFile: 'Tengok fail'
previewFile: 'Tengok fail',
downloadFile: 'Muat turun fail'
}
};
3 changes: 2 additions & 1 deletion components/i18n/languages/nb_NO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'Laster opp...',
removeFile: 'Fjern fil',
uploadError: 'Feil ved opplastning',
previewFile: 'Forhåndsvisning'
previewFile: 'Forhåndsvisning',
downloadFile: 'Last ned fil'
},
Empty: {
description: 'Ingen data'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/ne_NP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export default {
uploading: 'अपलोड गर्दै...',
removeFile: 'फाइल हटाउनुहोस्',
uploadError: 'अप्लोडमा समस्या भयो',
previewFile: 'फाइल पूर्वावलोकन गर्नुहोस्'
previewFile: 'फाइल पूर्वावलोकन गर्नुहोस्',
downloadFile: 'डाउनलोड फाइल'
},
Empty: {
description: 'डाटा छैन'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/nl_BE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'Uploaden...',
removeFile: 'Bestand verwijderen',
uploadError: 'Upload fout',
previewFile: 'Preview bestand'
previewFile: 'Preview bestand',
downloadFile: 'Download bestand'
},
Empty: {
description: 'Geen gegevens'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/nl_NL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export default {
uploading: 'Uploaden...',
removeFile: 'Verwijder bestand',
uploadError: 'Fout tijdens uploaden',
previewFile: 'Bekijk bestand'
previewFile: 'Bekijk bestand',
downloadFile: 'Downloaden bestand'
},
Empty: {
description: 'Geen gegevens'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/pl_PL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'Wysyłanie...',
removeFile: 'Usuń plik',
uploadError: 'Błąd wysyłania',
previewFile: 'Podejrzyj plik'
previewFile: 'Podejrzyj plik',
downloadFile: 'Pobieranie pliku'
},
Empty: {
description: 'Brak danych'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/pt_BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'Enviando...',
removeFile: 'Remover arquivo',
uploadError: 'Erro no envio',
previewFile: 'Visualizar arquivo'
previewFile: 'Visualizar arquivo',
downloadFile: 'Baixar arquivo'
},
Empty: {
description: 'Não há dados'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/pt_PT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export default {
uploading: 'A carregar...',
removeFile: 'Remover',
uploadError: 'Erro ao carregar',
previewFile: 'Pré-visualizar'
previewFile: 'Pré-visualizar',
downloadFile: 'Baixar'
},
Empty: {
description: 'Sem resultados'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/ro_RO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export default {
uploading: 'Se transferă...',
removeFile: 'Înlătură fișierul',
uploadError: 'Eroare la upload',
previewFile: 'Previzualizare fișier'
previewFile: 'Previzualizare fișier',
downloadFile: 'Descărcare fișier'
},
Empty: {
description: 'Fără date'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/ru_RU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export default {
uploading: 'Загрузка...',
removeFile: 'Удалить файл',
uploadError: 'При загрузке произошла ошибка',
previewFile: 'Предпросмотр файла'
previewFile: 'Предпросмотр файла',
downloadFile: 'Загрузить файл'
},
Empty: {
description: 'Нет данных'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/sk_SK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export default {
uploading: 'Nahrávanie...',
removeFile: 'Odstrániť súbor',
uploadError: 'Chyba pri nahrávaní',
previewFile: 'Zobraziť súbor'
previewFile: 'Zobraziť súbor',
downloadFile: 'Stiahnuť súbor'
},
Empty: {
description: 'Žiadne dáta'
Expand Down
3 changes: 2 additions & 1 deletion components/i18n/languages/sl_SI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default {
uploading: 'Nalaganje...',
removeFile: 'Odstrani datoteko',
uploadError: 'Napaka pri nalaganju',
previewFile: 'Predogled datoteke'
previewFile: 'Predogled datoteke',
downloadFile: 'Prenos datoteke'
},
Empty: {
description: 'Ni podatkov'
Expand Down
Loading

0 comments on commit 4530803

Please sign in to comment.