"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * title: "日期选择交互"
 * description: "可以通过 defaultValue 属性为日期选择器提供初值，所提供的初值必须为 moment 对象。"
 */
var react_1 = __importDefault(require("react"));
var console_components_1 = require("@alicloud/console-components");
var moment_1 = __importDefault(require("moment"));
var titleStyle = {
    margin: '40px 0 4px',
    color: '#1D1D1F',
    height: 20,
};
var onChange = function (val) { return console.log(val); };
var startValue = (0, moment_1.default)('2017-11-20', 'YYYY-MM-DD', true);
exports.default = (function () {
    return (react_1.default.createElement("div", null,
        react_1.default.createElement("div", { style: titleStyle }, "\u9ED8\u8BA4"),
        react_1.default.createElement(console_components_1.DatePicker, { onChange: onChange, format: "YYYY-MM-DD" }),
        react_1.default.createElement("div", { style: titleStyle }, "\u5B8C\u6210\u9009\u62E9"),
        react_1.default.createElement(console_components_1.DatePicker, { onChange: onChange, defaultValue: startValue, format: "YYYY-MM-DD" }),
        react_1.default.createElement("div", { style: titleStyle }, "\u7981\u7528"),
        react_1.default.createElement(console_components_1.DatePicker, { onChange: onChange, disabled: true })));
});
