"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var console_components_1 = require("@alicloud/console-components");
var moment_1 = __importDefault(require("moment"));
var startValue = (0, moment_1.default)('2017-11-20', 'YYYY-MM-DD', true);
var endValue = (0, moment_1.default)('2017-12-15', 'YYYY-MM-DD', true);
exports.default = (function () {
    var handleDateChange = function (val) {
        console.log(val.map(function (item) { return item.format('YYYY-MM-DD'); }));
    };
    return (react_1.default.createElement(console_components_1.DatePicker.RangePicker, { defaultValue: [startValue, endValue], 
        // format='YYYY-MM-DD'
        onChange: handleDateChange }));
});
