aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/TimePicker.jsx
diff options
context:
space:
mode:
authorMG12 <wuzhao.mail@gmail.com>2015-11-17 23:43:48 +0800
committerMG12 <wuzhao.mail@gmail.com>2015-11-17 23:43:48 +0800
commitaa2be65d742c42382b17c02d69a756762793ce39 (patch)
tree8078a36f395f0f1d601b98fc6c2c096d303828d5 /src/TimePicker.jsx
parent15bb18d90f02d146141cdde45a5a2b5a6a575202 (diff)
downloadtime-picker-aa2be65d742c42382b17c02d69a756762793ce39.tar.gz
time-picker-aa2be65d742c42382b17c02d69a756762793ce39.tar.zst
time-picker-aa2be65d742c42382b17c02d69a756762793ce39.zip
fix bug0.4.0
Diffstat (limited to 'src/TimePicker.jsx')
-rw-r--r--src/TimePicker.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx
index f0a3316..02ed5a2 100644
--- a/src/TimePicker.jsx
+++ b/src/TimePicker.jsx
@@ -130,7 +130,7 @@ const Picker = React.createClass({
130 }, 130 },
131 131
132 render() { 132 render() {
133 const { prefixCls, placement, align, disabled, transitionName, children, formatter } = this.props; 133 const { prefixCls, placeholder, placement, align, disabled, transitionName, children, formatter } = this.props;
134 const { open, value } = this.state; 134 const { open, value } = this.state;
135 135
136 return ( 136 return (
@@ -147,7 +147,7 @@ const Picker = React.createClass({
147 onPopupVisibleChange={this.onVisibleChange} 147 onPopupVisibleChange={this.onVisibleChange}
148 > 148 >
149 <span className={`${prefixCls}-picker`}> 149 <span className={`${prefixCls}-picker`}>
150 <input ref="picker" type="text" placeholder="请选择时间" readOnly disabled={disabled} value={value && formatter.format(value)} /> 150 <input ref="picker" type="text" placeholder={placeholder} readOnly disabled={disabled} value={value && formatter.format(value)} />
151 <span className={`${prefixCls}-picker-icon`} /> 151 <span className={`${prefixCls}-picker-icon`} />
152 </span> 152 </span>
153 </Trigger> 153 </Trigger>