mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 04:58:55 +08:00
parent
34ad5152ec
commit
945adc9985
@ -42,7 +42,7 @@ class App extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
handleChange = date => {
|
handleChange = date => {
|
||||||
message.info(`您选择的日期是: ${date.format('YYYY-MM-DD')}`);
|
message.info(`您选择的日期是: ${date ? date.format('YYYY-MM-DD') : '未选择'}`);
|
||||||
this.setState({ date });
|
this.setState({ date });
|
||||||
};
|
};
|
||||||
render() {
|
render() {
|
||||||
|
Loading…
Reference in New Issue
Block a user