diff options
author | MG12 <wuzhao.mail@gmail.com> | 2015-11-17 23:29:27 +0800 |
---|---|---|
committer | MG12 <wuzhao.mail@gmail.com> | 2015-11-17 23:29:27 +0800 |
commit | 15bb18d90f02d146141cdde45a5a2b5a6a575202 (patch) | |
tree | 1b03ceb96373ad2047760e0714c9b6836550c3b7 /src/TimePicker.jsx | |
parent | 4acbf95c7d2693d73b0c8c021ad892b6529d4c06 (diff) | |
download | time-picker-15bb18d90f02d146141cdde45a5a2b5a6a575202.tar.gz time-picker-15bb18d90f02d146141cdde45a5a2b5a6a575202.tar.zst time-picker-15bb18d90f02d146141cdde45a5a2b5a6a575202.zip |
fix bugs0.3.3
Diffstat (limited to 'src/TimePicker.jsx')
-rw-r--r-- | src/TimePicker.jsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index 27a793e..f0a3316 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx | |||
@@ -2,7 +2,7 @@ import React, {PropTypes} from 'react'; | |||
2 | import ReactDOM from 'react-dom'; | 2 | import ReactDOM from 'react-dom'; |
3 | import Trigger from 'rc-trigger'; | 3 | import Trigger from 'rc-trigger'; |
4 | import {createChainedFunction} from 'rc-util'; | 4 | import {createChainedFunction} from 'rc-util'; |
5 | import Panel from 'rc-time-picker/src/module/Panel'; | 5 | import Panel from './module/Panel'; |
6 | import placements from './util/placements'; | 6 | import placements from './util/placements'; |
7 | import CommonMixin from './mixin/CommonMixin'; | 7 | import CommonMixin from './mixin/CommonMixin'; |
8 | 8 | ||
@@ -85,9 +85,10 @@ const Picker = React.createClass({ | |||
85 | }, | 85 | }, |
86 | 86 | ||
87 | getPanel() { | 87 | getPanel() { |
88 | const { value, locale, formatter, placeholder, hourOptions, minuteOptions, secondOptions } = this.props; | 88 | const { prefixCls, value, locale, formatter, placeholder, hourOptions, minuteOptions, secondOptions } = this.props; |
89 | return ( | 89 | return ( |
90 | <Panel | 90 | <Panel |
91 | prefixCls={prefixCls} | ||
91 | defaultValue={value} | 92 | defaultValue={value} |
92 | locale={locale} | 93 | locale={locale} |
93 | formatter={formatter} | 94 | formatter={formatter} |
@@ -147,6 +148,7 @@ const Picker = React.createClass({ | |||
147 | > | 148 | > |
148 | <span className={`${prefixCls}-picker`}> | 149 | <span className={`${prefixCls}-picker`}> |
149 | <input ref="picker" type="text" placeholder="请选择时间" readOnly disabled={disabled} value={value && formatter.format(value)} /> | 150 | <input ref="picker" type="text" placeholder="请选择时间" readOnly disabled={disabled} value={value && formatter.format(value)} /> |
151 | <span className={`${prefixCls}-picker-icon`} /> | ||
150 | </span> | 152 | </span> |
151 | </Trigger> | 153 | </Trigger> |
152 | ); | 154 | ); |