提交 1c9b9e8c 编写于 作者: 羽航

fix little code style

上级 dd76fe65
......@@ -56,7 +56,7 @@ function createPicker(TheCalendar) {
});
let timeValue = new Date(v.getTime());
//onSelect为向前兼容.
if (this.props.onSelect !== null) {
if (this.props.onSelect) {
require('util-deprecate')(this.props.onSelect, 'onSelect property of Datepicker is deprecated, use onChange instead')(timeValue);
}
this.props.onChange(timeValue);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册