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