2018-03-13 14:40:13 +00:00
## API
**Note:** Part of the Calendar's locale is read from `value` . So, please set the locale of `moment` correctly.
2019-09-28 12:45:07 +00:00
```html
// The default locale is en-US, if you want to use other locale, just set locale in entry file
globally. // import moment from 'moment'; // import 'moment/locale/zh-cn'; //
moment.locale('zh-cn');
2018-03-13 14:40:13 +00:00
2019-09-28 12:45:07 +00:00
< a-calendar @panelChange =" onPanelChange " @select =" onSelect " >
2018-03-14 14:00:43 +00:00
< template slot = "dateCellRender" slot-scope = "value" > < / template >
2019-02-22 14:23:37 +00:00
< template slot = "monthCellRender" slot-scope = "value" > < / template >
2018-03-14 14:00:43 +00:00
< / a-calendar >
2019-09-28 12:45:07 +00:00
```
2018-03-14 14:00:43 +00:00
customize the progress dot by setting a scoped slot
2018-03-13 14:40:13 +00:00
| Property | Description | Type | Default |
2019-09-28 12:45:07 +00:00
| --- | --- | --- | --- |
2018-03-14 14:00:43 +00:00
| dateCellRender | Customize the display of the date cell by setting a scoped slot, the returned content will be appended to the cell | function(date: moment) | - |
| dateFullCellRender | Customize the display of the date cell by setting a scoped slot, the returned content will override the cell | function(date: moment) | - |
2018-03-13 14:40:13 +00:00
| defaultValue | The date selected by default | [moment ](http://momentjs.com/ ) | default date |
| disabledDate | Function that specifies the dates that cannot be selected | (currentDate: moment) => boolean | - |
| fullscreen | Whether to display in full-screen | boolean | `true` |
2019-01-08 06:45:11 +00:00
| locale | The calendar's locale | object | [default ](https://github.com/vueComponent/ant-design-vue/blob/master/components/date-picker/locale/example.json ) |
2018-03-13 14:40:13 +00:00
| mode | The display mode of the calendar | `month` \| `year` | `month` |
2018-03-14 14:00:43 +00:00
| monthCellRender | Customize the display of the month cell by setting a scoped slot, the returned content will be appended to the cell | function(date: moment) | - |
| monthFullCellRender | Customize the display of the month cell by setting a scoped slot, the returned content will override the cell | function(date: moment) | - |
2018-04-06 12:56:19 +00:00
| validRange | to set valid range | \[[moment ](http://momentjs.com/ ), [moment ](http://momentjs.com/ )] | - |
2018-03-14 14:00:43 +00:00
| value(v-model) | The current selected date | [moment ](http://momentjs.com/ ) | current date |
### events
2019-09-28 12:45:07 +00:00
| Events Name | Description | Arguments |
| ----------- | ------------------------------------ | ------------------------------------ |
| panelChange | Callback for when panel changes | function(date: moment, mode: string) | - |
| select | Callback for when a date is selected | function(date: moment) | - |
| change | Callback for when value change | function(date: moment) | - |