X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=src%2FTimePicker.jsx;h=86faa714e09af9a9ab1b64cfcd127987db3f4106;hb=deaa6062ea2e274d50d58c70251c1237c0c03c67;hp=f9b92078c9be3714681704795ced2c28339c41fa;hpb=6fc4e0e8e2f7bd8bbcbb759a69bc7b94930f131c;p=github%2Ffretlink%2Ftime-picker.git diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index f9b9207..86faa71 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx @@ -1,9 +1,9 @@ -import React, {PropTypes} from 'react'; +import React, { PropTypes } from 'react'; import Trigger from 'rc-trigger'; import Panel from './module/Panel'; import placements from './util/placements'; import CommonMixin from './mixin/CommonMixin'; -import {getFormatter} from './util/index'; +import { getFormatter } from './util/index'; function noop() { } @@ -45,6 +45,7 @@ const Picker = React.createClass({ getDefaultProps() { return { + prefixCls: 'rc-time-picker', defaultOpen: false, style: {}, className: '', @@ -80,7 +81,7 @@ const Picker = React.createClass({ }); } if (open !== undefined) { - this.setState({open}); + this.setState({ open }); } }, @@ -147,8 +148,11 @@ const Picker = React.createClass({ }, getPanelElement() { - const { prefixCls, defaultValue, locale, placeholder, disabledHours, - disabledMinutes, disabledSeconds, hideDisabledOptions, allowEmpty, showHour, showSecond } = this.props; + const { + prefixCls, defaultValue, locale, placeholder, disabledHours, + disabledMinutes, disabledSeconds, hideDisabledOptions, + allowEmpty, showHour, showSecond, + } = this.props; return ( - +