feat: add empty components && update locale-provider

pull/666/head
wangxueliang 2019-03-07 13:26:03 +08:00
parent 0a1a4458e6
commit 995db39fa5
55 changed files with 420 additions and 223 deletions

View File

@ -24,7 +24,7 @@ export default function wrapperRaf(callback, delayFrames = 1) {
return myId;
}
wrapperRaf.cancel = function(id) {
raf.cancel(ids[id]);
delete ids[id];
wrapperRaf.cancel = function(pid) {
raf.cancel(ids[pid]);
delete ids[pid];
};

View File

@ -0,0 +1,15 @@
<cn>
#### 基本
简单的展示。
</cn>
<us>
#### Basic
Simplest Usage.
</us>
```html
<template>
<a-empty />
</template>
```

View File

@ -0,0 +1,16 @@
<svg width="184" height="152" xmlns="http://www.w3.org/2000/svg">
<g fill="none" fill-rule="evenodd">
<g transform="translate(24 31.67)">
<ellipse fill-opacity=".8" fill="#F5F5F7" cx="67.797" cy="106.89" rx="67.797" ry="12.668"/>
<path d="M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z" fill="#AEB8C2"/>
<path d="M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z" fill="url(#linearGradient-1)" transform="translate(13.56)"/>
<path d="M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z" fill="#F5F5F7"/>
<path d="M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z" fill="#DCE0E6"/>
</g>
<path d="M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z" fill="#DCE0E6"/>
<g transform="translate(149.65 15.383)" fill="#FFF">
<ellipse cx="20.654" cy="3.167" rx="2.849" ry="2.815"/>
<path d="M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,74 @@
import PropTypes from '../_util/vue-types';
import { ConfigConsumer, ConfigConsumerProps } from '../config-provider';
import { getComponentFromProp } from '../_util/props-util';
import LocaleReceiver from '../locale-provider/LocaleReceiver';
import emptyImg from './empty.svg';
export const TransferLocale = () => {
return {
description: PropTypes.string,
};
};
export const EmptyProps = () => {
return {
prefixCls: PropTypes.string,
image: PropTypes.any,
description: PropTypes.any,
};
};
const Empty = {
name: 'AEmpty',
props: {
...EmptyProps(),
},
methods: {
renderEmpty(contentLocale) {
const {
prefixCls: customizePrefixCls,
...restProps
} = this.$props;
// todo
// const prefixCls = getPrefixCls('empty', customizePrefixCls);
const prefixCls = customizePrefixCls || 'ant-empty';
const image = getComponentFromProp(this, 'image');
const description = getComponentFromProp(this, 'description');
const des = description || contentLocale.description;
const alt = typeof des === 'string' ? des : 'empty';
let imageNode = null;
if (!image) {
imageNode = <img alt={alt} src={emptyImg} />;
} else if (typeof image === 'string') {
imageNode = <img alt={alt} src={image} />;
} else {
imageNode = image;
}
return (
<div class={prefixCls} {...restProps}>
<div class={`${prefixCls}-image`}>{imageNode}</div>
<p class={`${prefixCls}-description`}>{des}</p>
{this.$slots.default && <div class={`${prefixCls}-footer`}>{this.$slots.default[0]}</div>}
</div>
);
},
},
render() {
return (
<LocaleReceiver componentName="Empty" scopedSlots={{ default: this.renderEmpty }} />
);
},
};
/* istanbul ignore next */
Empty.install = function(Vue) {
Vue.component(Empty.name, Empty);
};
export default Empty;

View File

@ -0,0 +1,2 @@
import '../../style/index.less';
import './index.less';

View File

@ -0,0 +1,52 @@
@import '../../style/themes/default';
@import '../../style/mixins/index';
@empty-prefix-cls: ~'@{ant-prefix}-empty';
.@{empty-prefix-cls} {
margin: 0 8px;
font-size: @empty-font-size;
line-height: 22px;
text-align: center;
&-image {
height: 100px;
margin-bottom: 8px;
img {
height: 100%;
}
}
&-description {
margin: 0;
}
&-footer {
margin-top: 16px;
}
// antd internal empty style
&-small {
margin: 8px 0;
.@{empty-prefix-cls}-image {
height: 35px;
}
}
&-normal {
margin: 32px 0;
.@{empty-prefix-cls}-image {
height: 40px;
}
}
}
// Patch for popup adjust
.@{ant-prefix}-select-dropdown--multiple .@{ant-prefix}-select-dropdown-menu-item {
.@{empty-prefix-cls}-small {
margin-left: @control-padding-horizontal + 20;
}
}

View File

@ -131,6 +131,8 @@ import { default as Comment } from './comment';
import { default as ConfigProvider } from './config-provider';
import { default as Empty } from './empty';
const components = [
Affix,
Anchor,
@ -186,6 +188,7 @@ const components = [
Skeleton,
Comment,
ConfigProvider,
Empty,
];
const install = function(Vue) {
@ -266,6 +269,7 @@ export {
Skeleton,
Comment,
ConfigProvider,
Empty,
};
export default {

View File

@ -31,10 +31,12 @@ import fiFI from '../fi_FI';
import frBE from '../fr_BE';
import frFR from '../fr_FR';
import heIL from '../he_IL';
import hiIN from '../hi_IN';
import huHU from '../hu_HU';
import isIS from '../is_IS';
import itIT from '../it_IT';
import jaJP from '../ja_JP';
import knIN from '../kn_IN';
import koKR from '../ko_KR';
import kuIQ from '../ku_IQ';
import mnMN from '../mn_MN';
@ -75,10 +77,12 @@ const locales = [
frBE,
frFR,
heIL,
hiIN,
huHU,
isIS,
itIT,
jaJP,
knIN,
koKR,
kuIQ,
mnMN,

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'الفلاتر',
filterConfirm: 'تأكيد',
filterReset: 'إعادة ضبط',
emptyText: 'لا توجد بيانات',
selectAll: 'اختيار الكل',
selectInvert: 'إلغاء الاختيار',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'إلغاء',
},
Transfer: {
notFoundContent: 'لا يوجد محتوى',
searchPlaceholder: 'ابحث هنا',
itemUnit: 'عنصر',
itemsUnit: 'عناصر',
},
Select: {
notFoundContent: 'لايوجد محتوى',
},
Upload: {
uploading: 'جاري الرفع...',
removeFile: 'احذف الملف',
uploadError: 'مشكلة فى الرفع',
previewFile: 'استعرض الملف',
},
Empty: {
description: 'لا توجد بيانات',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Филтриране',
filterConfirm: 'Добре',
filterReset: 'Нулриане',
emptyText: 'Няма данни',
selectAll: 'Избор на текуща страница',
selectInvert: 'Обръщане',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Отказ',
},
Transfer: {
notFoundContent: 'Няма намерени',
searchPlaceholder: 'Търсене',
itemUnit: 'избор',
itemsUnit: 'избори',
},
Select: {
notFoundContent: 'Няма намерени',
},
Upload: {
uploading: 'Качване...',
removeFile: 'Премахване',
uploadError: 'Грешка при качването',
previewFile: 'Преглед',
},
Empty: {
description: 'Няма данни',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filtrar Menu',
filterConfirm: 'OK',
filterReset: 'Restablir',
emptyText: 'Sense dades',
},
Modal: {
okText: 'OK',
@ -25,12 +24,11 @@ export default {
cancelText: 'Cancel·lar',
},
Transfer: {
notFoundContent: 'No trobat',
searchPlaceholder: 'Cercar aquí',
itemUnit: 'item',
itemsUnit: 'items',
},
Select: {
notFoundContent: 'No trobat',
Empty: {
description: 'Sense dades',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filtr',
filterConfirm: 'Potvrdit',
filterReset: 'Obnovit',
emptyText: 'Žádná data',
},
Modal: {
okText: 'Ok',
@ -25,18 +24,17 @@ export default {
cancelText: 'Storno',
},
Transfer: {
notFoundContent: 'Nenalezeno',
searchPlaceholder: 'Vyhledávání',
itemUnit: 'položka',
itemsUnit: 'položek',
},
Select: {
notFoundContent: 'Nenalezeno',
},
Upload: {
uploading: 'Nahrávání...',
removeFile: 'Odstranit soubor',
uploadError: 'Chyba při nahrávání',
previewFile: 'Zobrazit soubor',
},
Empty: {
description: 'Žádná data',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filtermenu',
filterConfirm: 'OK',
filterReset: 'Nulstil',
emptyText: 'Ingen data',
selectAll: 'Vælg alle',
selectInvert: 'Inverter valg',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Afbryd',
},
Transfer: {
notFoundContent: 'Intet fundet',
searchPlaceholder: 'Søg her',
itemUnit: 'element',
itemsUnit: 'elementer',
},
Select: {
notFoundContent: 'Intet fundet',
},
Upload: {
uploading: 'Uploader...',
removeFile: 'Fjern fil',
uploadError: 'Fejl ved upload',
previewFile: 'Forhåndsvisning',
},
Empty: {
description: 'Ingen data',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filter-Menü',
filterConfirm: 'OK',
filterReset: 'Zurücksetzen',
emptyText: 'Keine Daten',
selectAll: 'Selektiere Alle',
selectInvert: 'Selektion Invertieren',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Abbrechen',
},
Transfer: {
notFoundContent: 'Nicht gefunden',
searchPlaceholder: 'Suchen',
itemUnit: 'Eintrag',
itemsUnit: 'Einträge',
},
Select: {
notFoundContent: 'Nicht gefunden',
},
Upload: {
uploading: 'Hochladen...',
removeFile: 'Datei entfernen',
uploadError: 'Fehler beim Hochladen',
previewFile: 'Dateivorschau',
},
Empty: {
description: 'Keine Daten',
},
};

View File

@ -9,7 +9,6 @@ export default {
DatePicker,
TimePicker,
Calendar,
// locales for all comoponents
global: {
placeholder: 'Please select',
},
@ -17,7 +16,6 @@ export default {
filterTitle: 'Filter menu',
filterConfirm: 'OK',
filterReset: 'Reset',
emptyText: 'No data',
selectAll: 'Select current page',
selectInvert: 'Invert current page',
sortTitle: 'Sort',
@ -33,18 +31,20 @@ export default {
},
Transfer: {
titles: ['', ''],
notFoundContent: 'Not Found',
searchPlaceholder: 'Search here',
itemUnit: 'item',
itemsUnit: 'items',
},
Select: {
notFoundContent: 'Not Found',
},
Upload: {
uploading: 'Uploading...',
removeFile: 'Remove file',
uploadError: 'Upload error',
previewFile: 'Preview file',
},
Empty: {
description: 'No Data',
},
Icon: {
icon: 'icon',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Μενού φίλτρων',
filterConfirm: 'ΟΚ',
filterReset: 'Επαναφορά',
emptyText: 'Δεν υπάρχουν δεδομένα',
selectAll: 'Επιλογή τρέχουσας σελίδας',
selectInvert: 'Αντιστροφή τρέχουσας σελίδας',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Άκυρο',
},
Transfer: {
notFoundContent: 'Δεν βρέθηκε',
searchPlaceholder: 'Αναζήτηση',
itemUnit: 'αντικείμενο',
itemsUnit: 'αντικείμενα',
},
Select: {
notFoundContent: 'Δεν βρέθηκε',
},
Upload: {
uploading: 'Μεταφόρτωση...',
removeFile: 'Αφαίρεση αρχείου',
uploadError: 'Σφάλμα μεταφόρτωσης',
previewFile: 'Προεπισκόπηση αρχείου',
},
Empty: {
description: 'Δεν υπάρχουν δεδομένα',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filter menu',
filterConfirm: 'OK',
filterReset: 'Reset',
emptyText: 'No data',
selectAll: 'Select current page',
selectInvert: 'Invert current page',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Cancel',
},
Transfer: {
notFoundContent: 'Not Found',
searchPlaceholder: 'Search here',
itemUnit: 'item',
itemsUnit: 'items',
},
Select: {
notFoundContent: 'Not Found',
},
Upload: {
uploading: 'Uploading...',
removeFile: 'Remove file',
uploadError: 'Upload error',
previewFile: 'Preview file',
},
Empty: {
description: 'No data',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filtrar menú',
filterConfirm: 'Aceptar',
filterReset: 'Reiniciar',
emptyText: 'No hay datos',
selectAll: 'Seleccionar todo',
selectInvert: 'Invertir selección',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Cancelar',
},
Transfer: {
notFoundContent: 'No encontrado',
searchPlaceholder: 'Buscar aquí',
itemUnit: 'elemento',
itemsUnit: 'elementos',
},
Select: {
notFoundContent: 'No encontrado',
},
Upload: {
uploading: 'Subiendo...',
removeFile: 'Eliminar archivo',
uploadError: 'Error al subir el archivo',
previewFile: 'Vista previa',
},
Empty: {
description: 'No hay datos',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filtri menüü',
filterConfirm: 'OK',
filterReset: 'Nulli',
emptyText: 'Andmed puuduvad',
selectAll: 'Vali kõik',
selectInvert: 'Inverteeri valik',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Tühista',
},
Transfer: {
notFoundContent: 'Ei leitud',
searchPlaceholder: 'Otsi siit',
itemUnit: 'kogus',
itemsUnit: 'kogus',
},
Select: {
notFoundContent: 'Ei leitud',
},
Upload: {
uploading: 'Üleslaadimine...',
removeFile: 'Eemalda fail',
uploadError: 'Üleslaadimise tõrge',
previewFile: 'Faili eelvaade',
},
Empty: {
description: 'Andmed puuduvad',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'منوی فیلتر',
filterConfirm: 'تایید',
filterReset: 'پاک کردن',
emptyText: 'داده‌ای موجود نیست',
selectAll: 'انتخاب صفحه‌ی کنونی',
selectInvert: 'معکوس کردن انتخاب‌ها در صفحه ی کنونی',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'لغو',
},
Transfer: {
notFoundContent: 'داده‌ای موجود نیست',
searchPlaceholder: 'جستجو',
itemUnit: '',
itemsUnit: '',
},
Select: {
notFoundContent: 'داده‌ای موجود نیست',
},
Upload: {
uploading: 'در حال آپلود...',
removeFile: 'حذف فایل',
uploadError: 'خطا در آپلود',
previewFile: 'مشاهده‌ی فایل',
},
Empty: {
description: 'داده‌ای موجود نیست',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Suodatus valikko',
filterConfirm: 'OK',
filterReset: 'Tyhjennä',
emptyText: 'Ei kohteita',
selectAll: 'Valitse kaikki',
selectInvert: 'Valitse päinvastoin',
sortTitle: 'Lajittele',
@ -28,18 +27,17 @@ export default {
cancelText: 'Peruuta',
},
Transfer: {
notFoundContent: 'Ei löytynyt',
searchPlaceholder: 'Etsi täältä',
itemUnit: 'kohde',
itemsUnit: 'kohdetta',
},
Select: {
notFoundContent: 'Ei löytynyt',
},
Upload: {
uploading: 'Lähetetään...',
removeFile: 'Poista tiedosto',
uploadError: 'Virhe lähetyksessä',
previewFile: 'Esikatsele tiedostoa',
},
Empty: {
description: 'Ei kohteita',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filtrer',
filterConfirm: 'OK',
filterReset: 'Réinitialiser',
emptyText: 'Aucune donnée',
},
Modal: {
okText: 'OK',
@ -25,12 +24,11 @@ export default {
cancelText: 'Annuler',
},
Transfer: {
notFoundContent: 'Pas de résultat',
searchPlaceholder: 'Recherche',
itemUnit: 'élément',
itemsUnit: 'éléments',
},
Select: {
notFoundContent: 'Pas de résultat',
Empty: {
description: 'Aucune donnée',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filtrer',
filterConfirm: 'OK',
filterReset: 'Réinitialiser',
emptyText: 'Aucune donnée',
},
Modal: {
okText: 'OK',
@ -25,12 +24,11 @@ export default {
cancelText: 'Annuler',
},
Transfer: {
notFoundContent: 'Pas de résultat',
searchPlaceholder: 'Recherche',
itemUnit: 'élément',
itemsUnit: 'éléments',
},
Select: {
notFoundContent: 'Pas de résultat',
Empty: {
description: 'Aucune donnée',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'תפריט סינון',
filterConfirm: 'אישור',
filterReset: 'איפוס',
emptyText: 'אין מידע',
selectAll: 'בחר הכל',
selectInvert: 'הפוך בחירה',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'ביטול',
},
Transfer: {
notFoundContent: 'לא נמצא',
searchPlaceholder: 'חפש כאן',
itemUnit: 'פריט',
itemsUnit: 'פריטים',
},
Select: {
notFoundContent: 'לא נמצא',
},
Upload: {
uploading: 'מעלה...',
removeFile: 'הסר קובץ',
uploadError: 'שגיאת העלאה',
previewFile: 'הצג קובץ',
},
Empty: {
description: 'אין מידע',
},
};

View File

@ -0,0 +1,50 @@
import Pagination from '../vc-pagination/locale/hi_IN';
import DatePicker from '../date-picker/locale/hi_IN';
import TimePicker from '../time-picker/locale/hi_IN';
import Calendar from '../calendar/locale/hi_IN';
export default {
locale: 'hi',
Pagination,
DatePicker,
TimePicker,
Calendar,
// locales for all comoponents
global: {
placeholder: 'कृपया चुनें',
},
Table: {
filterTitle: 'सूची बंद करें',
filterConfirm: 'अच्छी तरह से',
filterReset: 'रीसेट',
emptyText: 'कोई जानकारी नहीं',
selectAll: 'वर्तमान पृष्ठ का चयन करें',
selectInvert: 'वर्तमान पृष्ठ घुमाएं',
sortTitle: 'द्वारा क्रमबद्ध करें',
},
Modal: {
okText: 'अच्छी तरह से',
cancelText: 'रद्द करना',
justOkText: 'अच्छी तरह से',
},
Popconfirm: {
okText: 'अच्छी तरह से',
cancelText: 'रद्द करना',
},
Transfer: {
titles: ['', ''],
notFoundContent: 'नहीं मिला',
searchPlaceholder: 'यहां खोजें',
itemUnit: 'तत्त्व',
itemsUnit: 'विषय-वस्तु',
},
Select: {
notFoundContent: 'नहीं मिला',
},
Upload: {
uploading: 'अपलोडिंग...',
removeFile: 'फ़ाइल निकालें',
uploadError: 'अपलोड में त्रुटि',
previewFile: 'फ़ाइल पूर्वावलोकन',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Szűrők',
filterConfirm: 'Alkalmazás',
filterReset: 'Visszaállítás',
emptyText: 'Nincs adat',
selectAll: 'Jelenlegi oldal kiválasztása',
selectInvert: 'Jelenlegi oldal inverze',
sortTitle: 'Rendezés',
@ -28,18 +27,17 @@ export default {
cancelText: 'Visszavonás',
},
Transfer: {
notFoundContent: 'Nem található',
searchPlaceholder: 'Keresés',
itemUnit: 'elem',
itemsUnit: 'elemek',
},
Select: {
notFoundContent: 'Nem található',
},
Upload: {
uploading: 'Feltöltés...',
removeFile: 'Fájl eltávolítása',
uploadError: 'Feltöltési hiba',
previewFile: 'Fájl előnézet',
},
Empty: {
description: 'Nincs adat',
},
};

View File

@ -10,37 +10,35 @@ export default {
TimePicker,
Calendar,
Table: {
filterTitle: 'Menu filter',
filterConfirm: 'baik',
filterReset: 'Setel ulang',
emptyText: 'Tidak ada data',
selectAll: 'Pilih halaman saat ini',
selectInvert: 'Balikkan halaman saat ini',
sortTitle: 'Menyortir',
filterTitle: 'Saring',
filterConfirm: 'OK',
filterReset: 'Hapus',
selectAll: 'Pilih semua di halaman ini',
selectInvert: 'Balikkan pilihan di halaman ini',
sortTitle: 'Urutkan',
},
Modal: {
okText: 'baik',
cancelText: 'Membatalkan',
justOkText: 'baik',
okText: 'OK',
cancelText: 'Batal',
justOkText: 'OK',
},
Popconfirm: {
okText: 'baik',
cancelText: 'Membatalkan',
okText: 'OK',
cancelText: 'Batal',
},
Transfer: {
titles: ['', ''],
notFoundContent: 'Tidak ditemukan',
searchPlaceholder: 'Cari di sini',
itemUnit: 'barang',
searchPlaceholder: 'Cari',
itemUnit: 'item',
itemsUnit: 'item',
},
Select: {
notFoundContent: 'Tidak ditemukan',
},
Upload: {
uploading: 'Mengunggah...',
removeFile: 'Hapus file',
uploadError: 'Kesalahan pengunggahan',
previewFile: 'File pratinjau',
},
Empty: {
description: 'Tidak ada data',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Afmarkanir',
filterConfirm: 'Staðfesta',
filterReset: 'Núllstilla',
emptyText: 'Engin gögn',
selectAll: 'Velja allt',
selectInvert: 'Viðsnúa vali',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Hætta við',
},
Transfer: {
notFoundContent: 'Engar færslur',
searchPlaceholder: 'Leita hér',
itemUnit: 'færsla',
itemsUnit: 'færslur',
},
Select: {
notFoundContent: 'Ekkert finnst',
},
Upload: {
uploading: 'Hleð upp...',
removeFile: 'Fjarlægja skrá',
uploadError: 'Villa við að hlaða upp',
previewFile: 'Forskoða skrá',
},
Empty: {
description: 'Engin gögn',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Menù Filtro',
filterConfirm: 'OK',
filterReset: 'Reset',
emptyText: 'Nessun dato',
selectAll: 'Seleziona pagina corrente',
selectInvert: 'Inverti selezione nella pagina corrente',
sortTitle: 'Ordina',
@ -28,18 +27,17 @@ export default {
cancelText: 'Annulla',
},
Transfer: {
notFoundContent: 'Non trovato',
searchPlaceholder: 'Cerca qui',
itemUnit: 'articolo',
itemsUnit: 'elementi',
},
Select: {
notFoundContent: 'Non trovato',
},
Upload: {
uploading: 'Caricamento...',
removeFile: 'Rimuovi il file',
uploadError: 'Errore di caricamento',
previewFile: 'Anteprima file',
},
Empty: {
description: 'Nessun dato',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'メニューをフィルター',
filterConfirm: 'OK',
filterReset: 'リセット',
emptyText: 'データがありません',
selectAll: 'すべてを選択',
selectInvert: '選択を反転',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'キャンセル',
},
Transfer: {
notFoundContent: '結果はありません',
searchPlaceholder: 'ここを検索',
itemUnit: 'アイテム',
itemsUnit: 'アイテム',
},
Select: {
notFoundContent: '結果はありません',
},
Upload: {
uploading: 'アップロード中...',
removeFile: 'ファイルを削除',
uploadError: 'アップロードエラー',
previewFile: 'ファイルをプレビュー',
},
Empty: {
description: 'データがありません',
},
};

View File

@ -0,0 +1,50 @@
import Pagination from '../vc-pagination/locale/kn_IN';
import DatePicker from '../date-picker/locale/kn_IN';
import TimePicker from '../time-picker/locale/kn_IN';
import Calendar from '../calendar/locale/kn_IN';
export default {
locale: 'kn',
Pagination,
DatePicker,
TimePicker,
Calendar,
// locales for all comoponents
global: {
placeholder: 'ದಯವಿಟ್ಟು ಆರಿಸಿ',
},
Table: {
filterTitle: 'ಪಟ್ಟಿ ಸೋಸಿ',
filterConfirm: 'ಸರಿ',
filterReset: 'ಮರುಹೊಂದಿಸಿ',
emptyText: 'ಮಾಹಿತಿ ಇಲ್ಲ',
selectAll: 'ಪ್ರಸ್ತುತ ಪುಟವನ್ನು ಆಯ್ಕೆಮಾಡಿ',
selectInvert: 'ಪ್ರಸ್ತುತ ಪುಟವನ್ನು ತಿರುಗಿಸಿ',
sortTitle: 'ವಿಂಗಡಿಸಿ',
},
Modal: {
okText: 'ಸರಿ',
cancelText: 'ರದ್ದು',
justOkText: 'ಸರಿ',
},
Popconfirm: {
okText: 'ಸರಿ',
cancelText: 'ರದ್ದು',
},
Transfer: {
titles: ['', ''],
notFoundContent: 'ದೊರೆತಿಲ್ಲ',
searchPlaceholder: 'ಇಲ್ಲಿ ಹುಡುಕಿ',
itemUnit: 'ವಿಷಯ',
itemsUnit: 'ವಿಷಯಗಳು',
},
Select: {
notFoundContent: 'ದೊರೆತಿಲ್ಲ',
},
Upload: {
uploading: 'ಏರಿಸಿ...',
removeFile: 'ಫೈಲ್ ತೆಗೆದುಹಾಕಿ',
uploadError: 'ಏರಿಸುವ ದೋಷ',
previewFile: 'ಫೈಲ್ ಮುನ್ನೋಟ',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: '필터 메뉴',
filterConfirm: '확인',
filterReset: '초기화',
emptyText: '데이터 없음',
selectAll: '모두 선택',
selectInvert: '선택 반전',
},
@ -27,18 +26,17 @@ export default {
cancelText: '취소',
},
Transfer: {
notFoundContent: '데이터 없음',
searchPlaceholder: '여기에 검색하세요',
itemUnit: '개',
itemsUnit: '개',
},
Select: {
notFoundContent: '데이터 없음',
},
Upload: {
uploading: '업로드 중...',
removeFile: '파일 삭제',
uploadError: '업로드 실패',
previewFile: '파일 미리보기',
},
Empty: {
description: '데이터 없음',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Menuê peldanka',
filterConfirm: 'Temam',
filterReset: 'Jê bibe',
emptyText: 'Agahî tune',
selectAll: 'Hemî hilbijêre',
selectInvert: 'Hilbijartinan veguhere',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Betal ke',
},
Transfer: {
notFoundContent: 'Peyda Nebû',
searchPlaceholder: 'Lêgerîn',
itemUnit: 'tişt',
itemsUnit: 'tişt',
},
Select: {
notFoundContent: 'Peyda Nebû',
},
Upload: {
uploading: 'Bardike...',
removeFile: 'Pelê rabike',
uploadError: 'Xeta barkirine',
previewFile: 'Pelê pêşbibîne',
},
Empty: {
description: 'Agahî tune',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Хайх цэс',
filterConfirm: 'OK',
filterReset: 'Цэвэрлэх',
emptyText: 'Мэдээлэл байхгүй байна',
selectAll: 'Бүгдийг сонгох',
selectInvert: 'Бусдыг сонгох',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Цуцлах',
},
Transfer: {
notFoundContent: 'Олдсонгүй',
searchPlaceholder: 'Хайх',
itemUnit: 'Зүйл',
itemsUnit: 'Зүйлүүд',
},
Select: {
notFoundContent: 'Олдсонгүй',
},
Upload: {
uploading: 'Хуулж байна...',
removeFile: 'Файл устгах',
uploadError: 'Хуулахад алдаа гарлаа',
previewFile: 'Файлыг түргэн үзэх',
},
Empty: {
description: 'Мэдээлэл байхгүй байна',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filtermeny',
filterConfirm: 'OK',
filterReset: 'Nullstill',
emptyText: 'Ingen data',
selectAll: 'Velg alle',
selectInvert: 'Inverter valg',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Avbryt',
},
Transfer: {
notFoundContent: 'Ingen treff',
searchPlaceholder: 'Søk her',
itemUnit: 'element',
itemsUnit: 'elementer',
},
Select: {
notFoundContent: 'Ingen treff',
},
Upload: {
uploading: 'Laster opp...',
removeFile: 'Fjern fil',
uploadError: 'Feil ved opplastning',
previewFile: 'Forhåndsvisning',
},
Empty: {
description: 'Ingen data',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'फिल्टर मेनु',
filterConfirm: 'हो',
filterReset: 'रीसेट',
emptyText: 'डाटा छैन',
selectAll: 'सबै छान्नुुहोस्',
selectInvert: 'छनौट उल्टाउनुहोस',
},
@ -28,18 +27,17 @@ export default {
},
Transfer: {
titles: ['', ''],
notFoundContent: 'भेट्टिएन',
searchPlaceholder: 'यहाँ खोज्नुहोस्',
itemUnit: 'वस्तु',
itemsUnit: 'वस्तुहरू',
},
Select: {
notFoundContent: 'भेट्टिएन',
},
Upload: {
uploading: 'अपलोड गर्दै...',
removeFile: 'फाइल हटाउनुहोस्',
uploadError: 'अप्लोडमा समस्या भयो',
previewFile: 'फाइल पूर्वावलोकन गर्नुहोस्',
},
Empty: {
description: 'डाटा छैन',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'FilterMenu',
filterConfirm: 'OK',
filterReset: 'Reset',
emptyText: 'Geen gegevens',
selectAll: 'Selecteer huidige pagina',
selectInvert: 'Selecteer huidige pagina',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Annuleer',
},
Transfer: {
notFoundContent: 'Niet gevonden',
searchPlaceholder: 'Zoek hier',
itemUnit: 'item',
itemsUnit: 'items',
},
Select: {
notFoundContent: 'Niet gevonden',
},
Upload: {
uploading: 'Uploaden...',
removeFile: 'Bestand verwijderen',
uploadError: 'Upload fout',
previewFile: 'Preview bestand',
},
Empty: {
description: 'Geen gegevens',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filteren',
filterConfirm: 'OK',
filterReset: 'Reset',
emptyText: 'Geen gegevens',
selectAll: 'Selecteer huidige pagina',
selectInvert: 'Deselecteer huidige pagina',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Annuleren',
},
Transfer: {
notFoundContent: 'Niet gevonden',
searchPlaceholder: 'Zoeken',
itemUnit: 'item',
itemsUnit: 'items',
},
Select: {
notFoundContent: 'Niet gevonden',
},
Upload: {
uploading: 'Uploaden...',
removeFile: 'Verwijder bestand',
uploadError: 'Fout tijdens uploaden',
previewFile: 'Bekijk bestand',
},
Empty: {
description: 'Geen gegevens',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Menu filtra',
filterConfirm: 'OK',
filterReset: 'Wyczyść',
emptyText: 'Brak danych',
selectAll: 'Zaznacz bieżącą stronę',
selectInvert: 'Odwróć zaznaczenie',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Anuluj',
},
Transfer: {
notFoundContent: 'Nie znaleziono',
searchPlaceholder: 'Szukaj',
itemUnit: 'obiekt',
itemsUnit: 'obiekty',
},
Select: {
notFoundContent: 'Nie znaleziono',
},
Upload: {
uploading: 'Wysyłanie...',
removeFile: 'Usuń plik',
uploadError: 'Błąd wysyłania',
previewFile: 'Podejrzyj plik',
},
Empty: {
description: 'Brak danych',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filtro',
filterConfirm: 'OK',
filterReset: 'Resetar',
emptyText: 'Não há dados',
selectAll: 'Selecionar página atual',
selectInvert: 'Inverter seleção',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Cancelar',
},
Transfer: {
notFoundContent: 'Não encontrado',
searchPlaceholder: 'Procurar',
itemUnit: 'item',
itemsUnit: 'items',
},
Select: {
notFoundContent: 'Não encontrado',
},
Upload: {
uploading: 'Enviando...',
removeFile: 'Remover arquivo',
uploadError: 'Erro no envio',
previewFile: 'Visualizar arquivo',
},
Empty: {
description: 'Não há dados',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filtro',
filterConfirm: 'Aplicar',
filterReset: 'Reiniciar',
emptyText: 'Sem resultados',
selectAll: 'Selecionar página atual',
selectInvert: 'Inverter seleção',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Cancelar',
},
Transfer: {
notFoundContent: 'Sem resultados',
searchPlaceholder: 'Procurar...',
itemUnit: 'item',
itemsUnit: 'itens',
},
Select: {
notFoundContent: 'Sem resultados',
},
Upload: {
uploading: 'A carregar...',
removeFile: 'Remover',
uploadError: 'Erro ao carregar',
previewFile: 'Pré-visualizar',
},
Empty: {
description: 'Sem resultados',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Фильтр',
filterConfirm: 'OK',
filterReset: 'Сбросить',
emptyText: 'Нет данных',
selectAll: 'Выбрать всё',
selectInvert: 'Инвертировать выбор',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Отмена',
},
Transfer: {
notFoundContent: 'Ничего не найдено',
searchPlaceholder: 'Поиск',
itemUnit: 'элем.',
itemsUnit: 'элем.',
},
Select: {
notFoundContent: 'Ничего не найдено',
},
Upload: {
uploading: 'Загрузка...',
removeFile: 'Удалить файл',
uploadError: 'При загрузке произошла ошибка',
previewFile: 'Предпросмотр файла',
},
Empty: {
description: 'Нет данных',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filter',
filterConfirm: 'OK',
filterReset: 'Obnoviť',
emptyText: 'Žiadne dáta',
selectAll: 'Vybrať všetko',
selectInvert: 'Vybrať opačné',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Zrušiť',
},
Transfer: {
notFoundContent: 'Nenájdené',
searchPlaceholder: 'Vyhľadávanie',
itemUnit: 'položka',
itemsUnit: 'položiek',
},
Select: {
notFoundContent: 'Nenájdené',
},
Upload: {
uploading: 'Nahrávanie...',
removeFile: 'Odstrániť súbor',
uploadError: 'Chyba pri nahrávaní',
previewFile: 'Zobraziť súbor',
},
Empty: {
description: 'Žiadne dáta',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filter',
filterConfirm: 'Filtriraj',
filterReset: 'Pobriši filter',
emptyText: 'Ni podatkov',
selectAll: 'Izberi vse na trenutni strani',
selectInvert: 'Obrni izbor na trenutni strani',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Prekliči',
},
Transfer: {
notFoundContent: 'Ni rezultatov iskanja',
searchPlaceholder: 'Išči tukaj',
itemUnit: 'Objekt',
itemsUnit: 'Objektov',
},
Select: {
notFoundContent: 'Ni bilo mogoče najti',
},
Upload: {
uploading: 'Nalaganje...',
removeFile: 'Odstrani datoteko',
uploadError: 'Napaka pri nalaganju',
previewFile: 'Predogled datoteke',
},
Empty: {
description: 'Ni podatkov',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filter',
filterConfirm: 'Primeni filter',
filterReset: 'Resetuj filter',
emptyText: 'Nema podataka',
selectAll: 'Obeleži sve na trenutnoj strani',
selectInvert: 'Obrni selekciju na trenutnoj stranici',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Otkaži',
},
Transfer: {
notFoundContent: 'Nisu pronađeni rezultati pretrage',
searchPlaceholder: 'Pretražite ovde',
itemUnit: 'stavka',
itemsUnit: 'stavki',
},
Select: {
notFoundContent: 'Nije pronađeno',
},
Upload: {
uploading: 'Slanje...',
removeFile: 'Ukloni fajl',
uploadError: 'Greška prilikom slanja',
previewFile: 'Pogledaj fajl',
},
Empty: {
description: 'Nema podataka',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Filtermeny',
filterConfirm: 'OK',
filterReset: 'Rensa',
emptyText: 'Ingen information',
},
Modal: {
okText: 'OK',
@ -25,12 +24,11 @@ export default {
cancelText: 'Avbryt',
},
Transfer: {
notFoundContent: 'Info saknas',
searchPlaceholder: 'Sök',
itemUnit: 'element',
itemsUnit: 'element',
},
Select: {
notFoundContent: 'Info saknas',
Empty: {
description: 'Ingen information',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'ตัวกรอง',
filterConfirm: 'ยืนยัน',
filterReset: 'รีเซ็ต',
emptyText: 'ไม่มีข้อมูล',
selectAll: 'เลือกทั้งหมดในหน้านี้',
selectInvert: 'เลือกสถานะตรงกันข้าม',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'ยกเลิก',
},
Transfer: {
notFoundContent: 'ไม่พบข้อมูล',
searchPlaceholder: 'ค้นหา',
itemUnit: 'ชิ้น',
itemsUnit: 'ชิ้น',
},
Select: {
notFoundContent: 'ไม่พบข้อมูล',
},
Upload: {
uploading: 'กำลังอัปโหลด...',
removeFile: 'ลบไฟล์',
uploadError: 'เกิดข้อผิดพลาดในการอัปโหลด',
previewFile: 'ดูตัวอย่างไฟล์',
},
Empty: {
description: 'ไม่มีข้อมูล',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Menü Filtrele',
filterConfirm: 'Tamam',
filterReset: 'Sıfırla',
emptyText: 'Veri Yok',
selectAll: 'Hepsini Seç',
selectInvert: 'Tersini Seç',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'İptal',
},
Transfer: {
notFoundContent: 'Bulunamadı',
searchPlaceholder: 'Arama',
itemUnit: 'Öğe',
itemsUnit: 'Öğeler',
},
Select: {
notFoundContent: 'Bulunamadı',
},
Upload: {
uploading: 'Yükleniyor...',
removeFile: `Dosyayı kaldır`,
uploadError: 'Yükleme Hatası',
previewFile: `Dosyayı Önizle`,
},
Empty: {
description: 'Veri Yok',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Фільтрувати',
filterConfirm: 'OK',
filterReset: 'Скинути',
emptyText: 'Даних немає',
selectAll: 'Обрати всі',
selectInvert: 'Інвертувати вибір',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Скасувати',
},
Transfer: {
notFoundContent: 'Нічого не знайдено',
searchPlaceholder: 'Введіть текст для пошуку',
itemUnit: 'item',
itemsUnit: 'items',
},
Select: {
notFoundContent: 'Нічого не знайдено',
},
Upload: {
uploading: 'Завантаження ...',
removeFile: 'Видалити файл',
uploadError: 'Помилка завантаження',
previewFile: 'Попередній перегляд файлу',
},
Empty: {
description: 'Даних немає',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: 'Bộ ',
filterConfirm: 'OK',
filterReset: 'Tạo Lại',
emptyText: 'Trống',
selectAll: 'Chọn Tất Cả',
selectInvert: 'Chọn Ngược Lại',
},
@ -27,18 +26,17 @@ export default {
cancelText: 'Huỷ',
},
Transfer: {
notFoundContent: 'Không Tìm Thấy',
searchPlaceholder: 'Tìm ở đây',
itemUnit: 'mục',
itemsUnit: 'mục',
},
Select: {
notFoundContent: 'Không Tìm Thấy',
},
Upload: {
uploading: 'Đang tải lên...',
removeFile: 'Gỡ bỏ tập tin',
uploadError: 'Lỗi tải lên',
previewFile: 'Xem thử tập tin',
},
Empty: {
description: 'Trống',
},
};

View File

@ -17,7 +17,6 @@ export default {
filterTitle: '筛选',
filterConfirm: '确定',
filterReset: '重置',
emptyText: '暂无数据',
selectAll: '全选当页',
selectInvert: '反选当页',
sortTitle: '排序',
@ -32,18 +31,20 @@ export default {
okText: '确定',
},
Transfer: {
notFoundContent: '无匹配结果',
searchPlaceholder: '请输入搜索内容',
itemUnit: '项',
itemsUnit: '项',
},
Select: {
notFoundContent: '无匹配结果',
},
Upload: {
uploading: '文件上传中',
removeFile: '删除文件',
uploadError: '上传错误',
previewFile: '预览文件',
},
Empty: {
description: '暂无数据',
},
Icon: {
icon: '图标',
},
};

View File

@ -13,7 +13,6 @@ export default {
filterTitle: '篩選器',
filterConfirm: '確 定',
filterReset: '重 置',
emptyText: '目前尚無資料',
selectAll: '全部選取',
selectInvert: '反向選取',
},
@ -27,18 +26,17 @@ export default {
cancelText: '取 消',
},
Transfer: {
notFoundContent: '查無此資料',
searchPlaceholder: '搜尋資料',
itemUnit: '項目',
itemsUnit: '項目',
},
Select: {
notFoundContent: '查無此資料',
},
Upload: {
uploading: '正在上傳...',
removeFile: '刪除檔案',
uploadError: '上傳失敗',
previewFile: '檔案預覽',
},
Empty: {
description: '無此資料',
},
};

View File

@ -53,3 +53,4 @@ import './drawer/style';
import './skeleton/style';
import './comment/style';
import './config-provider/style';
import './empty/style';

View File

@ -58,6 +58,7 @@ import {
Skeleton,
Comment,
ConfigProvider,
Empty,
} from 'ant-design-vue';
Vue.prototype.$message = message;
@ -123,6 +124,7 @@ Vue.use(Upload);
Vue.use(Skeleton);
Vue.use(Comment);
Vue.use(ConfigProvider);
Vue.use(Empty);
/* v1.1.2 registration methods */
// Vue.component(Affix.name, Affix) // a-affix

View File

@ -23,6 +23,12 @@ export default {
type: 'Other',
title: 'ConfigProvider',
},
Empty: {
category: 'Components',
subtitle: '空状态',
type: 'Data Display',
title: 'Empty',
},
breadcrumb: {
category: 'Components',
subtitle: '面包屑',