From 96d366afb6e5b4821c87af25cfbfbc8a4eccc2d7 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 8 Dec 2015 16:42:27 +0800 Subject: Add className prop --- src/TimePicker.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index 2694cb0..2354db8 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx @@ -32,6 +32,7 @@ const Picker = React.createClass({ formatter: PropTypes.any, showHour: PropTypes.bool, style: PropTypes.object, + className: PropTypes.string, showSecond: PropTypes.bool, hourOptions: PropTypes.array, minuteOptions: PropTypes.array, @@ -47,6 +48,7 @@ const Picker = React.createClass({ return { defaultOpen: false, style: {}, + className: '', gregorianCalendarLocale: defaultGregorianCalendarLocale, align: {}, allowEmpty: true, @@ -193,7 +195,7 @@ const Picker = React.createClass({ }, render() { - const { prefixCls, placeholder, placement, align, disabled, transitionName, style, showHour, showSecond, getPopupContainer } = this.props; + const { prefixCls, placeholder, placement, align, disabled, transitionName, style, className, showHour, showSecond, getPopupContainer } = this.props; const { open, value } = this.state; let popupClassName; if (!showHour || !showSecond) { @@ -214,7 +216,7 @@ const Picker = React.createClass({ popupVisible={open} onPopupVisibleChange={this.onVisibleChange} > - +