From 2ea1fb48a4dcb6d6315f9cef686e4667cf8fc9ac Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 25 Dec 2015 01:21:46 +0800 Subject: [PATCH] rm onSelect --- components/date-picker/index.jsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/components/date-picker/index.jsx b/components/date-picker/index.jsx index 7b0a72ff01..0621175e02 100644 --- a/components/date-picker/index.jsx +++ b/components/date-picker/index.jsx @@ -16,7 +16,6 @@ function createPicker(TheCalendar, defaultFormat) { format: defaultFormat || 'yyyy-MM-dd', transitionName: 'slide-up', popupStyle: {}, - onSelect: null, // 向前兼容 onChange() { }, // onChange 可用于 Validator locale: {}, @@ -44,13 +43,6 @@ function createPicker(TheCalendar, defaultFormat) { this.setState({ value }); } const timeValue = value ? new Date(value.getTime()) : null; - // onSelect 为向前兼容. - if (this.props.onSelect) { - require('util-deprecate')( - this.props.onSelect, - 'onSelect property of Datepicker is deprecated, use onChange instead' - )(timeValue); - } this.props.onChange(timeValue); }, render() {