forked from ant-design/ant-design
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ant-design#1806 from forthedamn/translation-calendar
Translation calendar
- Loading branch information
Showing
7 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
category: Components | ||
type: Presentation | ||
cols: 1 | ||
title: Calendar | ||
--- | ||
|
||
When to use container for displaying data in calendar form. | ||
|
||
## When to use | ||
|
||
When data is in the form of date, such as schedule, timetable, prices calendar, Lunar calendar. This component also supports Year/Month switch. | ||
|
||
## API | ||
|
||
```html | ||
<Calendar | ||
dateCellRender={dateCellRender} | ||
monthCellRender={monthCellRender} | ||
onPanelChange={onPanelChange} | ||
/> | ||
``` | ||
|
||
| Property | Description | Type | Default | | ||
|--------------|----------------|----------|--------------| | ||
| value | set date | Date | current date | | ||
| defaultValue | set default date | Date | current date | | ||
| mode | can be set to month or year | string | month | | ||
| fullscreen | to set whether full-screen display | bool | true | | ||
| dateCellRender | to set the way of renderer the date cell| function([GregorianCalendar](https://github.com/yiminghe/gregorian-calendar/))| - | | ||
| monthCellRender | to set the way of renderer the month cell | function([GregorianCalendar](https://github.com/yiminghe/gregorian-calendar/)) | - | | ||
| locale | set locale | object | [defualt](https://github.com/ant-design/ant-design/issues/424) | | ||
| onPanelChange| the callback when panel change | function(date, mode) | - | |
File renamed without changes.