add local

pull/165/head
tjz 2018-03-15 21:52:58 +08:00
parent 4b2f56a7a9
commit b41263b247
3 changed files with 11 additions and 9 deletions

View File

@ -205,7 +205,9 @@ export default {
<LocaleReceiver <LocaleReceiver
componentName='Calendar' componentName='Calendar'
defaultLocale={enUS} defaultLocale={enUS}
children={this.renderCalendar} scopedSlots={
{ default: this.renderCalendar }
}
/> />
) )
}, },

View File

@ -1,14 +1,14 @@
import Pagination from '../vc-pagination/locale/en_US' import Pagination from '../vc-pagination/locale/en_US'
// import DatePicker from '../date-picker/locale/en_US' import DatePicker from '../date-picker/locale/en_US'
import TimePicker from '../time-picker/locale/en_US' import TimePicker from '../time-picker/locale/en_US'
// import Calendar from '../calendar/locale/en_US' import Calendar from '../calendar/locale/en_US'
export default { export default {
locale: 'en', locale: 'en',
Pagination, Pagination,
// DatePicker, DatePicker,
TimePicker, TimePicker,
// Calendar, Calendar,
Table: { Table: {
filterTitle: 'Filter menu', filterTitle: 'Filter menu',
filterConfirm: 'OK', filterConfirm: 'OK',

View File

@ -1,14 +1,14 @@
import Pagination from '../vc-pagination/locale/zh_CN' import Pagination from '../vc-pagination/locale/zh_CN'
// import DatePicker from '../date-picker/locale/zh_CN' import DatePicker from '../date-picker/locale/zh_CN'
import TimePicker from '../time-picker/locale/zh_CN' import TimePicker from '../time-picker/locale/zh_CN'
// import Calendar from '../calendar/locale/zh_CN' import Calendar from '../calendar/locale/zh_CN'
export default { export default {
locale: 'zh-cn', locale: 'zh-cn',
Pagination, Pagination,
// DatePicker, DatePicker,
TimePicker, TimePicker,
// Calendar, Calendar,
Table: { Table: {
filterTitle: '筛选', filterTitle: '筛选',
filterConfirm: '确定', filterConfirm: '确定',