docs: update demo

This commit is contained in:
Benjy Cui 2016-10-21 15:18:13 +08:00
parent 1ed434a695
commit 6343e6b763
2 changed files with 3 additions and 2 deletions

View File

@ -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(

View File

@ -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>
);
},