"use strict";

require("./demo7.css");

var _ = _interopRequireDefault(require(".."));

var _react = _interopRequireDefault(require("react"));

var _reactDom = _interopRequireDefault(require("react-dom"));

var _dayjs = _interopRequireDefault(require("dayjs"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var RangePicker = _["default"].RangePicker;
var RangePreset = {
  今天: [(0, _dayjs["default"])(), (0, _dayjs["default"])()],
  本月: [(0, _dayjs["default"])().startOf('month'), (0, _dayjs["default"])().endOf('month')]
};
var datePreset = {
  此刻: function 此刻() {
    return (0, _dayjs["default"])();
  }
};

function App() {
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "app"
  }, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_["default"], {
    preset: datePreset
  })), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_["default"], {
    preset: datePreset,
    showTime: true
  })), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(RangePicker, {
    preset: RangePreset
  })), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(RangePicker, {
    preset: RangePreset,
    showTime: true
  })));
}

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(App, null), document.getElementById('date-picker2-demo-7'));