UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

77 lines (62 loc) 2.32 kB
import _objectSpread from "@babel/runtime/helpers/objectSpread2"; import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/createClass"; import _get from "@babel/runtime/helpers/get"; import _inherits from "@babel/runtime/helpers/inherits"; import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; function _createSuper(Derived) { function isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } return function () { var Super = _getPrototypeOf(Derived), result; if (isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } import DatePicker from '../date-picker/DatePicker'; import { ViewMode } from '../date-picker/enum'; var DateTimePicker = /*#__PURE__*/ function (_DatePicker) { _inherits(DateTimePicker, _DatePicker); var _super = _createSuper(DateTimePicker); function DateTimePicker() { _classCallCheck(this, DateTimePicker); return _super.apply(this, arguments); } _createClass(DateTimePicker, [{ key: "getWrapperClassNames", value: function getWrapperClassNames() { var prefixCls = this.prefixCls; return _get(_getPrototypeOf(DateTimePicker.prototype), "getWrapperClassNames", this).call(this, "".concat(prefixCls, "-date-time-picker-wrapper")); } }, { key: "getLimitWithType", value: function getLimitWithType(limit, _minOrMax) { return limit; } }]); return DateTimePicker; }(DatePicker); export { DateTimePicker as default }; DateTimePicker.displayName = 'DateTimePicker'; DateTimePicker.defaultProps = _objectSpread({}, DatePicker.defaultProps, { mode: ViewMode.dateTime }); //# sourceMappingURL=DateTimePicker.js.map