import Header from './Header';
import Combobox from './Combobox';
import moment from 'moment';
+import classNames from 'classnames';
function noop() {
}
propTypes: {
clearText: PropTypes.string,
prefixCls: PropTypes.string,
+ className: PropTypes.string,
defaultOpenValue: PropTypes.object,
value: PropTypes.object,
placeholder: PropTypes.string,
render() {
const {
- prefixCls, placeholder, disabledHours, disabledMinutes,
+ prefixCls, className, placeholder, disabledHours, disabledMinutes,
disabledSeconds, hideDisabledOptions, allowEmpty, showHour, showSecond,
format, defaultOpenValue, clearText, onEsc,
} = this.props;
const secondOptions = generateOptions(60, disabledSecondOptions, hideDisabledOptions);
return (
- <div className={`${prefixCls}-inner`}>
+ <div className={classNames({ [`${prefixCls}-inner`]: true, [className]: className })}>
<Header
clearText={clearText}
prefixCls={prefixCls}