mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
Merge branch 'master' of github.com:ant-design/ant-design
This commit is contained in:
commit
6c7cce486b
@ -64,7 +64,7 @@ const DateRange = React.createClass({
|
||||
showTime
|
||||
format="YYYY-MM-DD HH:mm:ss"
|
||||
value={this.state.startValue}
|
||||
placeholder="开始日期"
|
||||
placeholder="Start"
|
||||
onChange={this.onStartChange}
|
||||
onOpenChange={this.handleStartOpenChange}
|
||||
/>
|
||||
@ -73,7 +73,7 @@ const DateRange = React.createClass({
|
||||
showTime
|
||||
format="YYYY-MM-DD HH:mm:ss"
|
||||
value={this.state.endValue}
|
||||
placeholder="结束日期"
|
||||
placeholder="End"
|
||||
onChange={this.onEndChange}
|
||||
open={this.state.endOpen}
|
||||
onOpenChange={this.handleEndOpenChange}
|
||||
|
@ -17,10 +17,10 @@ This property provide an additional time selection. When `showTime` is an Object
|
||||
import { DatePicker } from 'antd';
|
||||
|
||||
function onChange(value) {
|
||||
console.log('选择了时间:', value);
|
||||
console.log('Selected Time: ', value);
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
<DatePicker showTime format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" onChange={onChange} />
|
||||
<DatePicker showTime format="YYYY-MM-DD HH:mm:ss" placeholder="Select Time" onChange={onChange} />
|
||||
, mountNode);
|
||||
````
|
||||
|
@ -17,8 +17,8 @@ With text and icon.
|
||||
import { Switch, Icon } from 'antd';
|
||||
|
||||
ReactDOM.render(<div>
|
||||
<Switch checkedChildren="开" unCheckedChildren="关" />
|
||||
<Switch checkedChildren="On" unCheckedChildren="Off" />
|
||||
<Switch checkedChildren={'开'} unCheckedChildren={'关'} />
|
||||
<Switch checkedChildren="1" unCheckedChildren="0" />
|
||||
<Switch checkedChildren={<Icon type="check" />} unCheckedChildren={<Icon type="cross" />} />
|
||||
</div>, mountNode);
|
||||
````
|
||||
|
Loading…
Reference in New Issue
Block a user