diff options
Diffstat (limited to 'src/TimePicker.jsx')
-rw-r--r-- | src/TimePicker.jsx | 4 |
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> |