mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
default placeholder
This commit is contained in:
parent
9322ca8e29
commit
4f9055a5fe
@ -15,7 +15,8 @@ module.exports = React.createClass({
|
||||
},
|
||||
getDefaultProps: function () {
|
||||
return {
|
||||
format: 'yyyy-MM-dd'
|
||||
format: 'yyyy-MM-dd',
|
||||
placeholder: '请选择日期'
|
||||
};
|
||||
},
|
||||
componentDidMount: function () {
|
||||
@ -48,7 +49,7 @@ module.exports = React.createClass({
|
||||
formatter={new DateTimeFormat(this.props.format)}
|
||||
value={this.state.value}
|
||||
onChange={this.props.onSelect}>
|
||||
<input placeholder="请选择日期" className="rc-calendar-picker-input" />
|
||||
<input placeholder={this.props.placeholder} className="rc-calendar-picker-input" />
|
||||
</DatePicker>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user