afc163
7 years ago
39 changed files with 484 additions and 32 deletions
@ -0,0 +1,2 @@ |
|||
import el_GR from '../../date-picker/locale/el_GR'; |
|||
export default el_GR; |
@ -0,0 +1,2 @@ |
|||
import fa_IR from '../../date-picker/locale/fa_IR'; |
|||
export default fa_IR; |
@ -0,0 +1,2 @@ |
|||
import nb_NO from '../../date-picker/locale/nb_NO'; |
|||
export default nb_NO; |
@ -0,0 +1,19 @@ |
|||
import CalendarLocale from 'rc-calendar/lib/locale/el_GR'; |
|||
import TimePickerLocale from '../../time-picker/locale/el_GR'; |
|||
|
|||
// Merge into a locale object
|
|||
const locale = { |
|||
lang: { |
|||
placeholder: 'Επιλέξτε ημερομηνία', |
|||
rangePlaceholder: ['Αρχική ημερομηνία', 'Τελική ημερομηνία'], |
|||
...CalendarLocale, |
|||
}, |
|||
timePickerLocale: { |
|||
...TimePickerLocale, |
|||
}, |
|||
}; |
|||
|
|||
// All settings at:
|
|||
// https://github.com/ant-design/ant-design/issues/424
|
|||
|
|||
export default locale; |
@ -0,0 +1,19 @@ |
|||
import CalendarLocale from 'rc-calendar/lib/locale/fa_IR'; |
|||
import TimePickerLocale from '../../time-picker/locale/fa_IR'; |
|||
|
|||
// Merge into a locale object
|
|||
const locale = { |
|||
lang: { |
|||
placeholder: 'انتخاب تاریخ', |
|||
rangePlaceholder: ['تاریخ شروع', 'تاریخ پایان'], |
|||
...CalendarLocale, |
|||
}, |
|||
timePickerLocale: { |
|||
...TimePickerLocale, |
|||
}, |
|||
}; |
|||
|
|||
// All settings at:
|
|||
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|||
|
|||
export default locale; |
@ -0,0 +1,19 @@ |
|||
import CalendarLocale from 'rc-calendar/lib/locale/nb_NO'; |
|||
import TimePickerLocale from '../../time-picker/locale/nb_NO'; |
|||
|
|||
// Merge into a locale object
|
|||
const locale = { |
|||
lang: { |
|||
placeholder: 'Velg dato', |
|||
rangePlaceholder: ['Startdato', 'Sluttdato'], |
|||
...CalendarLocale, |
|||
}, |
|||
timePickerLocale: { |
|||
...TimePickerLocale, |
|||
}, |
|||
}; |
|||
|
|||
// All settings at:
|
|||
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|||
|
|||
export default locale; |
@ -0,0 +1,47 @@ |
|||
import moment from 'moment'; |
|||
moment.locale('el'); |
|||
|
|||
import Pagination from 'rc-pagination/lib/locale/el_GR'; |
|||
import DatePicker from '../date-picker/locale/el_GR'; |
|||
import TimePicker from '../time-picker/locale/el_GR'; |
|||
import Calendar from '../calendar/locale/el_GR'; |
|||
|
|||
export default { |
|||
locale: 'el', |
|||
Pagination, |
|||
DatePicker, |
|||
TimePicker, |
|||
Calendar, |
|||
Table: { |
|||
filterTitle: 'Μενού φίλτρων', |
|||
filterConfirm: 'ΟΚ', |
|||
filterReset: 'Επαναφορά', |
|||
emptyText: 'Δεν υπάρχουν δεδομένα', |
|||
selectAll: 'Επιλογή τρέχουσας σελίδας', |
|||
selectInvert: 'Αντιστροφή τρέχουσας σελίδας', |
|||
}, |
|||
Modal: { |
|||
okText: 'ΟΚ', |
|||
cancelText: 'Άκυρο', |
|||
justOkText: 'ΟΚ', |
|||
}, |
|||
Popconfirm: { |
|||
okText: 'ΟΚ', |
|||
cancelText: 'Άκυρο', |
|||
}, |
|||
Transfer: { |
|||
notFoundContent: 'Δεν βρέθηκε', |
|||
searchPlaceholder: 'Αναζήτηση', |
|||
itemUnit: 'αντικείμενο', |
|||
itemsUnit: 'αντικείμενα', |
|||
}, |
|||
Select: { |
|||
notFoundContent: 'Δεν βρέθηκε', |
|||
}, |
|||
Upload: { |
|||
uploading: 'Μεταφόρτωση...', |
|||
removeFile: 'Αφαίρεση αρχείου', |
|||
uploadError: 'Σφάλμα μεταφόρτωσης', |
|||
previewFile: 'Προεπισκόπηση αρχείου', |
|||
}, |
|||
}; |
@ -0,0 +1,47 @@ |
|||
import moment from 'moment'; |
|||
moment.locale('fa'); |
|||
|
|||
import Pagination from 'rc-pagination/lib/locale/fa_IR'; |
|||
import DatePicker from '../date-picker/locale/fa_IR'; |
|||
import TimePicker from '../time-picker/locale/fa_IR'; |
|||
import Calendar from '../calendar/locale/fa_IR'; |
|||
|
|||
export default { |
|||
locale: 'fa', |
|||
Pagination, |
|||
DatePicker, |
|||
TimePicker, |
|||
Calendar, |
|||
Table: { |
|||
filterTitle: 'منوی فیلتر', |
|||
filterConfirm: 'تایید', |
|||
filterReset: 'پاک کردن', |
|||
emptyText: 'دادهای موجود نیست', |
|||
selectAll: 'انتخاب صفحهی کنونی', |
|||
selectInvert: 'معکوس کردن انتخابها در صفحه ی کنونی', |
|||
}, |
|||
Modal: { |
|||
okText: 'تایید', |
|||
cancelText: 'لغو', |
|||
justOkText: 'تایید', |
|||
}, |
|||
Popconfirm: { |
|||
okText: 'تایید', |
|||
cancelText: 'لغو', |
|||
}, |
|||
Transfer: { |
|||
notFoundContent: 'دادهای موجود نیست', |
|||
searchPlaceholder: 'جستجو', |
|||
itemUnit: '', |
|||
itemsUnit: '', |
|||
}, |
|||
Select: { |
|||
notFoundContent: 'دادهای موجود نیست', |
|||
}, |
|||
Upload: { |
|||
uploading: 'در حال آپلود...', |
|||
removeFile: 'حذف فایل', |
|||
uploadError: 'خطا در آپلود', |
|||
previewFile: 'مشاهدهی فایل', |
|||
}, |
|||
}; |
@ -0,0 +1,47 @@ |
|||
import moment from 'moment'; |
|||
moment.locale('nb'); |
|||
|
|||
import Pagination from 'rc-pagination/lib/locale/nb_NO'; |
|||
import DatePicker from '../date-picker/locale/nb_NO'; |
|||
import TimePicker from '../time-picker/locale/nb_NO'; |
|||
import Calendar from '../calendar/locale/nb_NO'; |
|||
|
|||
export default { |
|||
locale: 'nb', |
|||
DatePicker, |
|||
TimePicker, |
|||
Calendar, |
|||
Pagination, |
|||
Table: { |
|||
filterTitle: 'Filtermeny', |
|||
filterConfirm: 'OK', |
|||
filterReset: 'Nullstill', |
|||
emptyText: 'Ingen data', |
|||
selectAll: 'Velg alle', |
|||
selectInvert: 'Inverter valg', |
|||
}, |
|||
Modal: { |
|||
okText: 'OK', |
|||
cancelText: 'Avbryt', |
|||
justOkText: 'OK', |
|||
}, |
|||
Popconfirm: { |
|||
okText: 'OK', |
|||
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', |
|||
}, |
|||
}; |
@ -0,0 +1,32 @@ |
|||
--- |
|||
order: 4 |
|||
title: |
|||
zh-CN: 单选组合 - 配合 name 使用 |
|||
en-US: RadioGroup with name |
|||
--- |
|||
|
|||
## zh-CN |
|||
|
|||
可以为 RadioGroup 配置 `name` 参数,为组合内的 input 元素赋予相同的 `name` 属性,使浏览器把 RadioGroup 下的 Radio 真正看作是一组(例如可以通过方向键始终**在同一组内**更改选项)。 |
|||
|
|||
## en-US |
|||
|
|||
Passing the `name` property to all `input[type="radio"]` that are in the same RadioGroup. It is usually used to let the browser see your RadioGroup as a real "group" and keep the default behavior. For example, using left/right keyboard arrow to change your selection that in the same RadioGroup. |
|||
|
|||
```jsx |
|||
import { Radio } from 'antd'; |
|||
const RadioGroup = Radio.Group; |
|||
|
|||
function App() { |
|||
return ( |
|||
<RadioGroup name="radiogroup" defaultValue={1}> |
|||
<Radio value={1}>A</Radio> |
|||
<Radio value={2}>B</Radio> |
|||
<Radio value={3}>C</Radio> |
|||
<Radio value={4}>D</Radio> |
|||
</RadioGroup> |
|||
); |
|||
} |
|||
|
|||
ReactDOM.render(<App />, mountNode); |
|||
``` |
@ -0,0 +1,5 @@ |
|||
const locale = { |
|||
placeholder: 'Επιλέξτε ώρα', |
|||
}; |
|||
|
|||
export default locale; |
@ -0,0 +1,5 @@ |
|||
const locale = { |
|||
placeholder: 'انتخاب زمان', |
|||
}; |
|||
|
|||
export default locale; |
@ -0,0 +1,5 @@ |
|||
const locale = { |
|||
placeholder: 'Velg tid', |
|||
}; |
|||
|
|||
export default locale; |
Loading…
Reference in new issue