import React from 'react';
import { DatePicker } from '@alicloud/console-components';
import moment from 'moment';
var startValue = moment('2017-11-20', 'YYYY-MM-DD', true);
var endValue = moment('2017-12-15', 'YYYY-MM-DD', true);
export default (function () {
    var handleDateChange = function (val) {
        console.log(val.map(function (item) { return item.format('YYYY-MM-DD'); }));
    };
    return (React.createElement(DatePicker.RangePicker, { defaultValue: [startValue, endValue], 
        // format='YYYY-MM-DD'
        onChange: handleDateChange }));
});
