ant-design/components/calendar/demo/notice-calendar.md

30 lines
547 B
Markdown
Raw Normal View History

## zh-CN
2017-01-13 17:11:26 +08:00
一个复杂的应用示例,用 `dateCellRender``monthCellRender` 函数来自定义需要渲染的数据。
2016-08-15 11:23:19 +08:00
## en-US
2017-01-13 17:11:26 +08:00
This component can be rendered by using `dateCellRender` and `monthCellRender` with the data you need.
2015-11-13 22:34:49 +08:00
2019-05-07 14:57:32 +08:00
```css
2015-11-13 22:34:49 +08:00
.events {
margin: 0;
padding: 0;
list-style: none;
2015-11-13 22:34:49 +08:00
}
2017-10-16 20:12:21 +08:00
.events .ant-badge-status {
width: 100%;
2015-11-13 22:34:49 +08:00
overflow: hidden;
font-size: 12px;
2015-11-13 22:34:49 +08:00
white-space: nowrap;
2017-10-16 20:12:21 +08:00
text-overflow: ellipsis;
2015-11-13 22:34:49 +08:00
}
.notes-month {
2017-10-16 20:12:21 +08:00
font-size: 28px;
text-align: center;
2015-11-13 22:34:49 +08:00
}
.notes-month section {
font-size: 28px;
}
2019-05-07 14:57:32 +08:00
```