mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 05:29:37 +08:00
docs: update demo
This commit is contained in:
parent
1ed434a695
commit
6343e6b763
@ -16,8 +16,9 @@ This property provide an additional time selection. When `showTime` is an Object
|
||||
````jsx
|
||||
import { DatePicker } from 'antd';
|
||||
|
||||
function onChange(value) {
|
||||
function onChange(value, dateString) {
|
||||
console.log('Selected Time: ', value);
|
||||
console.log('Formatted Selected Time: ', dateString);
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
|
@ -41,8 +41,8 @@ let Demo = React.createClass({
|
||||
{getFieldDecorator('agreement')(
|
||||
<Checkbox>Remember me</Checkbox>
|
||||
)}
|
||||
<Button type="primary" htmlType="submit">Submit</Button>
|
||||
</FormItem>
|
||||
<Button type="primary" htmlType="submit">Submit</Button>
|
||||
</Form>
|
||||
);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user