diff --git a/components/datepicker/demo/dialog.md b/components/datepicker/demo/dialog.md new file mode 100644 index 0000000000..7a14b53695 --- /dev/null +++ b/components/datepicker/demo/dialog.md @@ -0,0 +1,45 @@ +# 结合弹出层 + +- order: 10 + +弹出层内的时间选择 + +--- + +````jsx +import { Modal, Button, Datepicker } from 'antd'; + +const App = React.createClass({ + getInitialState() { + return { visible: false }; + }, + showModal() { + this.setState({ + visible: true + }); + }, + handleOk() { + console.log('点击了确定'); + this.setState({ + visible: false + }); + }, + handleCancel() { + this.setState({ + visible: false + }); + }, + render() { + return