]> git.immae.eu Git - github/fretlink/time-picker.git/commitdiff
fix bugs 0.3.3
authorMG12 <wuzhao.mail@gmail.com>
Tue, 17 Nov 2015 15:29:27 +0000 (23:29 +0800)
committerMG12 <wuzhao.mail@gmail.com>
Tue, 17 Nov 2015 15:29:27 +0000 (23:29 +0800)
HISTORY.md
package.json
src/TimePicker.jsx

index 28516bcfb929c1a3d53ff5c3f4c99d7088dfc917..d6edd4e271e2b741ea967b37969142f5a18fe6b0 100644 (file)
@@ -3,6 +3,11 @@ History
 
 ---
 
+0.3.2 / 2015-11-17
+------------------
+
+`fix` fix some bugs.
+
 0.3.0 / 2015-11-17
 ------------------
 
index 520005e4653f96aafeda138eb9e2d55c87714d52..0ead0b1cc471443b014d915a3949d83936ef2fbd 100644 (file)
@@ -1,6 +1,6 @@
 {
   "name": "rc-time-picker",
-  "version": "0.3.0",
+  "version": "0.3.2",
   "description": "React TimePicker",
   "keywords": [
     "react",
index 27a793e60370bdde9cdd4eadb7ef034eca2632ab..f0a3316c1b2d86d7264c06d044623e20c0b21e59 100644 (file)
@@ -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>
     );