From 15bb18d90f02d146141cdde45a5a2b5a6a575202 Mon Sep 17 00:00:00 2001
From: MG12 <wuzhao.mail@gmail.com>
Date: Tue, 17 Nov 2015 23:29:27 +0800
Subject: fix bugs

---
 src/TimePicker.jsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/TimePicker.jsx')

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';
 import ReactDOM from 'react-dom';
 import Trigger from 'rc-trigger';
 import {createChainedFunction} from 'rc-util';
-import Panel from 'rc-time-picker/src/module/Panel';
+import Panel from './module/Panel';
 import placements from './util/placements';
 import CommonMixin from './mixin/CommonMixin';
 
@@ -85,9 +85,10 @@ const Picker = React.createClass({
   },
 
   getPanel() {
-    const { value, locale, formatter, placeholder, hourOptions, minuteOptions, secondOptions } = this.props;
+    const { prefixCls, value, locale, formatter, placeholder, hourOptions, minuteOptions, secondOptions } = this.props;
     return (
       <Panel
+        prefixCls={prefixCls}
         defaultValue={value}
         locale={locale}
         formatter={formatter}
@@ -147,6 +148,7 @@ const Picker = React.createClass({
       >
         <span className={`${prefixCls}-picker`}>
           <input ref="picker" type="text" placeholder="请选择时间" readOnly disabled={disabled} value={value && formatter.format(value)} />
+          <span className={`${prefixCls}-picker-icon`} />
         </span>
       </Trigger>
     );
-- 
cgit v1.2.3

