/**
 * title: "日期与时间选择交互"
 * description: "如果需要同时选择时间，可以通过 showTime 属性开启，showTime 支持传入 TimePickerPanel 的属性，例如 format, defaultValue 等。"
 */
import React from 'react';
import { DatePicker } from '@alicloud/console-components';
import moment from 'moment';
var titleStyle = {
    margin: '40px 0 4px',
    color: '#1D1D1F',
    height: 20,
};
var onChange = function (val) { return console.log(val); };
var startValue = moment('2017-11-20', 'YYYY-MM-DD', true);
export default (function () {
    return (React.createElement("div", null,
        React.createElement("div", { style: titleStyle }, "\u9ED8\u8BA4"),
        React.createElement(DatePicker, { onChange: onChange, format: "YYYY-MM-DD", showTime: true }),
        React.createElement("div", { style: titleStyle }, "\u5B8C\u6210\u9009\u62E9"),
        React.createElement(DatePicker, { onChange: onChange, defaultValue: startValue, format: "YYYY-MM-DD", showTime: true }),
        React.createElement("div", { style: titleStyle }, "\u7981\u7528"),
        React.createElement(DatePicker, { onChange: onChange, disabled: true, showTime: true })));
});
