mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 13:08:41 +08:00
docs: Calendar Custom Render - English Translation (#3265)
This commit is contained in:
parent
e76f604e25
commit
bf105e64c9
@ -18,11 +18,11 @@ import { Calendar } from 'antd';
|
|||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
|
||||||
function dateCellRender(value) {
|
function dateCellRender(value) {
|
||||||
return <div>自定义日数据 {value.date()}</div>;
|
return <div>Custom date data {value.date()}</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
function monthCellRender(value) {
|
function monthCellRender(value) {
|
||||||
return <div>自定义月数据 {value.month()}</div>;
|
return <div>Custom monthly data {value.month()}</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
|
Loading…
Reference in New Issue
Block a user