"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.VMSelect = exports.VMRangePicker = void 0;
var _antd = require("antd");
var _zh_CN = _interopRequireDefault(require("antd/es/date-picker/locale/zh_CN"));
require("moment/locale/zh-cn");
var _react = _interopRequireDefault(require("react"));
var _useSettings3 = _interopRequireDefault(require("../vm-hooks/useSettings"));
require("./style");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var RangePicker = _antd.DatePicker.RangePicker;
/**
 * 二次封装的日期选择器
 * @param props
 * @returns
 */
var VMRangePicker = function VMRangePicker(props) {
  var _useSettings = (0, _useSettings3["default"])(),
    theme = _useSettings.theme;
  return /*#__PURE__*/_react["default"].createElement(RangePicker, Object.assign({
    className: "vm-range-picker ".concat(theme),
    dropdownClassName: "vm-range-picker-dropdown ".concat(theme),
    allowClear: false
  }, props, {
    locale: _zh_CN["default"]
  }));
};
exports.VMRangePicker = VMRangePicker;
var VMSelect = function VMSelect(props) {
  var _useSettings2 = (0, _useSettings3["default"])(),
    theme = _useSettings2.theme;
  return /*#__PURE__*/_react["default"].createElement(_antd.Select, Object.assign({
    className: "vm-select ".concat(theme),
    dropdownClassName: "vm-select-dropdown ".concat(theme)
  }, props), props.children);
};
exports.VMSelect = VMSelect;
//# sourceMappingURL=index.js.map
