aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 );