/**
 * title: "日期与时间选择交互"
 * description: "通过format属性控制日期格式。"
 */
import React from 'react';
import { DatePicker } from '@alicloud/console-components';
import moment from 'moment';
var titleStyle = {
    margin: '4px 0 4px',
    color: '#1D1D1F',
    height: 20,
};
var contentStyle = {
    display: 'grid',
    gridTemplateColumns: 'repeat(2, 1fr)',
    gap: 36,
};
var startValue = moment('2020-07-25', 'YYYY-MM-DD', true);
export default (function () {
    return (React.createElement("div", { style: contentStyle },
        React.createElement("div", null,
            React.createElement("div", { style: titleStyle }, "\u7B80\u77ED"),
            "\u6708+\u65E5\u00A0",
            React.createElement(DatePicker, { defaultValue: startValue, format: "MM-DD" }),
            React.createElement("br", null),
            React.createElement("br", null),
            "\u5E74+\u6708\u00A0",
            React.createElement(DatePicker, { defaultValue: startValue, format: "YYYY-MM" })),
        React.createElement("div", null,
            React.createElement("div", { style: titleStyle }, "\u6807\u51C6"),
            "\u5E74+\u6708+\u65E5\uFF08\u4E2D\uFF09\u00A0",
            React.createElement(DatePicker, { defaultValue: startValue, format: "YYYY-MM-DD" }),
            React.createElement("br", null),
            React.createElement("br", null),
            "\u5E74+\u6708+\u65E5\uFF08\u82F1\uFF09\u00A0",
            React.createElement(DatePicker, { defaultValue: startValue })),
        React.createElement("div", null,
            React.createElement("div", { style: titleStyle }, "\u5B8C\u6574"),
            "\u5E74+\u6708+\u65E5\uFF08\u4E2D\uFF09\u00A0",
            React.createElement(DatePicker, { defaultValue: startValue, format: "YYYY\u5E74MM\u6708DD\u65E5" }),
            React.createElement("br", null),
            React.createElement("br", null),
            "\u5E74+\u6708+\u65E5\uFF08\u82F1\uFF09\u00A0",
            React.createElement(DatePicker, { defaultValue: startValue }))));
});
