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