/**
 * title: "日期选择交互"
 * description: "可以通过 defaultValue 属性为日期选择器提供初值，所提供的初值必须为 moment 对象。"
 */
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" }),
        React.createElement("div", { style: titleStyle }, "\u5B8C\u6210\u9009\u62E9"),
        React.createElement(DatePicker, { onChange: onChange, defaultValue: startValue, format: "YYYY-MM-DD" }),
        React.createElement("div", { style: titleStyle }, "\u7981\u7528"),
        React.createElement(DatePicker, { onChange: onChange, disabled: true })));
});
