aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/TimePicker.jsx
diff options
context:
space:
mode:
authorMG12 <wuzhao.mail@gmail.com>2015-11-17 23:29:27 +0800
committerMG12 <wuzhao.mail@gmail.com>2015-11-17 23:29:27 +0800
commit15bb18d90f02d146141cdde45a5a2b5a6a575202 (patch)
tree1b03ceb96373ad2047760e0714c9b6836550c3b7 /src/TimePicker.jsx
parent4acbf95c7d2693d73b0c8c021ad892b6529d4c06 (diff)
downloadtime-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.jsx6
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';
2import ReactDOM from 'react-dom'; 2import ReactDOM from 'react-dom';
3import Trigger from 'rc-trigger'; 3import Trigger from 'rc-trigger';
4import {createChainedFunction} from 'rc-util'; 4import {createChainedFunction} from 'rc-util';
5import Panel from 'rc-time-picker/src/module/Panel'; 5import Panel from './module/Panel';
6import placements from './util/placements'; 6import placements from './util/placements';
7import CommonMixin from './mixin/CommonMixin'; 7import 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 );