(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker"],{

/***/ 325:
/*!**********************************************************************************************************************************!*\
  !*** D:/exe/HBuilderX/HBuilderProjects/diacrisis/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue ***!
  \**********************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _time_picker_vue_vue_type_template_id_60a1244c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./time-picker.vue?vue&type=template&id=60a1244c& */ 326);
/* harmony import */ var _time_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./time-picker.vue?vue&type=script&lang=js& */ 328);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _time_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _time_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _time_picker_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./time-picker.vue?vue&type=style&index=0&lang=css& */ 330);
/* harmony import */ var _plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);

var renderjs





/* normalize component */

var component = Object(_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
  _time_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _time_picker_vue_vue_type_template_id_60a1244c___WEBPACK_IMPORTED_MODULE_0__["render"],
  _time_picker_vue_vue_type_template_id_60a1244c___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  null,
  null,
  false,
  _time_picker_vue_vue_type_template_id_60a1244c___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

component.options.__file = "uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 326:
/*!*****************************************************************************************************************************************************************!*\
  !*** D:/exe/HBuilderX/HBuilderProjects/diacrisis/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue?vue&type=template&id=60a1244c& ***!
  \*****************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_template_id_60a1244c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../../plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./time-picker.vue?vue&type=template&id=60a1244c& */ 327);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_template_id_60a1244c___WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_template_id_60a1244c___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_template_id_60a1244c___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_template_id_60a1244c___WEBPACK_IMPORTED_MODULE_0__["components"]; });



/***/ }),

/***/ 327:
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/exe/HBuilderX/HBuilderProjects/diacrisis/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue?vue&type=template&id=60a1244c& ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  var l0 =
    _vm.visible && _vm.dateShow
      ? _vm.__map(_vm.years, function(item, index) {
          var $orig = _vm.__get_orig(item)

          var m0 = _vm.lessThanTen(item)
          return {
            $orig: $orig,
            m0: m0
          }
        })
      : null
  var l1 =
    _vm.visible && _vm.dateShow
      ? _vm.__map(_vm.months, function(item, index) {
          var $orig = _vm.__get_orig(item)

          var m1 = _vm.lessThanTen(item)
          return {
            $orig: $orig,
            m1: m1
          }
        })
      : null
  var l2 =
    _vm.visible && _vm.dateShow
      ? _vm.__map(_vm.days, function(item, index) {
          var $orig = _vm.__get_orig(item)

          var m2 = _vm.lessThanTen(item)
          return {
            $orig: $orig,
            m2: m2
          }
        })
      : null
  var l3 =
    _vm.visible && _vm.timeShow
      ? _vm.__map(_vm.hours, function(item, index) {
          var $orig = _vm.__get_orig(item)

          var m3 = _vm.lessThanTen(item)
          return {
            $orig: $orig,
            m3: m3
          }
        })
      : null
  var l4 =
    _vm.visible && _vm.timeShow
      ? _vm.__map(_vm.minutes, function(item, index) {
          var $orig = _vm.__get_orig(item)

          var m4 = _vm.lessThanTen(item)
          return {
            $orig: $orig,
            m4: m4
          }
        })
      : null
  var l5 =
    _vm.visible && _vm.timeShow && !_vm.hideSecond
      ? _vm.__map(_vm.seconds, function(item, index) {
          var $orig = _vm.__get_orig(item)

          var m5 = _vm.lessThanTen(item)
          return {
            $orig: $orig,
            m5: m5
          }
        })
      : null
  _vm.$mp.data = Object.assign(
    {},
    {
      $root: {
        l0: l0,
        l1: l1,
        l2: l2,
        l3: l3,
        l4: l4,
        l5: l5
      }
    }
  )
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true



/***/ }),

/***/ 328:
/*!***********************************************************************************************************************************************************!*\
  !*** D:/exe/HBuilderX/HBuilderProjects/diacrisis/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue?vue&type=script&lang=js& ***!
  \***********************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../../plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./time-picker.vue?vue&type=script&lang=js& */ 329);
/* harmony import */ var _plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 329:
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/exe/HBuilderX/HBuilderProjects/diacrisis/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue?vue&type=script&lang=js& ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
























































































var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 4);


var _index = _interopRequireDefault(__webpack_require__(/*! ./i18n/index.js */ 295));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _initVueI18n = (0, _uniI18n.initVueI18n)(_index.default),t = _initVueI18n.t; /**
                                                                                  * DatetimePicker 时间选择器
                                                                                  * @description 可以同时选择日期和时间的选择器
                                                                                  * @tutorial https://ext.dcloud.net.cn/plugin?id=xxx
                                                                                  * @property {String} type = [datetime | date | time] 显示模式
                                                                                  * @property {Boolean} multiple = [true|false] 是否多选
                                                                                  * @property {String|Number} value 默认值
                                                                                  * @property {String|Number} start 起始日期或时间
                                                                                  * @property {String|Number} end 起始日期或时间
                                                                                  * @property {String} return-type = [timestamp | string]
                                                                                  * @event {Function} change  选中发生变化触发
                                                                                  */var _default = { name: 'UniDatetimePicker', components: {}, data: function data() {return { indicatorStyle: "height: 50px;", visible: false, fixNvueBug: {}, dateShow: true, timeShow: true, title: '日期和时间', // 输入框当前时间
      time: '', // 当前的年月日时分秒
      year: 1920, month: 0, day: 0, hour: 0, minute: 0, second: 0, // 起始时间
      startYear: 1920, startMonth: 1, startDay: 1, startHour: 0, startMinute: 0, startSecond: 0, // 结束时间
      endYear: 2120, endMonth: 12, endDay: 31, endHour: 23, endMinute: 59, endSecond: 59 };}, props: { type: { type: String, default: 'datetime' }, value: { type: [String, Number], default: '' }, modelValue: { type: [String, Number], default: '' }, start: { type: [Number, String], default: '' }, end: { type: [Number, String], default: '' }, returnType: { type: String, default: 'string' }, disabled: { type: [Boolean, String], default: false }, border: { type: [Boolean, String], default: true }, hideSecond: { type: [Boolean, String], default: false } }, watch: { value: { handler: function handler(newVal, oldVal) {if (newVal) {this.parseValue(this.fixIosDateFormat(newVal)); //兼容 iOS、safari 日期格式
          this.initTime(false);} else {this.time = '';
          this.parseValue(Date.now());
        }
      },
      immediate: true },

    type: {
      handler: function handler(newValue) {
        if (newValue === 'date') {
          this.dateShow = true;
          this.timeShow = false;
          this.title = '日期';
        } else if (newValue === 'time') {
          this.dateShow = false;
          this.timeShow = true;
          this.title = '时间';
        } else {
          this.dateShow = true;
          this.timeShow = true;
          this.title = '日期和时间';
        }
      },
      immediate: true },

    start: {
      handler: function handler(newVal) {
        this.parseDatetimeRange(this.fixIosDateFormat(newVal), 'start'); //兼容 iOS、safari 日期格式
      },
      immediate: true },

    end: {
      handler: function handler(newVal) {
        this.parseDatetimeRange(this.fixIosDateFormat(newVal), 'end'); //兼容 iOS、safari 日期格式
      },
      immediate: true },


    // 月、日、时、分、秒可选范围变化后，检查当前值是否在范围内，不在则当前值重置为可选范围第一项
    months: function months(newVal) {
      this.checkValue('month', this.month, newVal);
    },
    days: function days(newVal) {
      this.checkValue('day', this.day, newVal);
    },
    hours: function hours(newVal) {
      this.checkValue('hour', this.hour, newVal);
    },
    minutes: function minutes(newVal) {
      this.checkValue('minute', this.minute, newVal);
    },
    seconds: function seconds(newVal) {
      this.checkValue('second', this.second, newVal);
    } },

  computed: {
    // 当前年、月、日、时、分、秒选择范围
    years: function years() {
      return this.getCurrentRange('year');
    },

    months: function months() {
      return this.getCurrentRange('month');
    },

    days: function days() {
      return this.getCurrentRange('day');
    },

    hours: function hours() {
      return this.getCurrentRange('hour');
    },

    minutes: function minutes() {
      return this.getCurrentRange('minute');
    },

    seconds: function seconds() {
      return this.getCurrentRange('second');
    },

    // picker 当前值数组
    ymd: function ymd() {
      return [this.year - this.minYear, this.month - this.minMonth, this.day - this.minDay];
    },
    hms: function hms() {
      return [this.hour - this.minHour, this.minute - this.minMinute, this.second - this.minSecond];
    },

    // 当前 date 是 start
    currentDateIsStart: function currentDateIsStart() {
      return this.year === this.startYear && this.month === this.startMonth && this.day === this.startDay;
    },

    // 当前 date 是 end
    currentDateIsEnd: function currentDateIsEnd() {
      return this.year === this.endYear && this.month === this.endMonth && this.day === this.endDay;
    },

    // 当前年、月、日、时、分、秒的最小值和最大值
    minYear: function minYear() {
      return this.startYear;
    },
    maxYear: function maxYear() {
      return this.endYear;
    },
    minMonth: function minMonth() {
      if (this.year === this.startYear) {
        return this.startMonth;
      } else {
        return 1;
      }
    },
    maxMonth: function maxMonth() {
      if (this.year === this.endYear) {
        return this.endMonth;
      } else {
        return 12;
      }
    },
    minDay: function minDay() {
      if (this.year === this.startYear && this.month === this.startMonth) {
        return this.startDay;
      } else {
        return 1;
      }
    },
    maxDay: function maxDay() {
      if (this.year === this.endYear && this.month === this.endMonth) {
        return this.endDay;
      } else {
        return this.daysInMonth(this.year, this.month);
      }
    },
    minHour: function minHour() {
      if (this.type === 'datetime') {
        if (this.currentDateIsStart) {
          return this.startHour;
        } else {
          return 0;
        }
      }
      if (this.type === 'time') {
        return this.startHour;
      }
    },
    maxHour: function maxHour() {
      if (this.type === 'datetime') {
        if (this.currentDateIsEnd) {
          return this.endHour;
        } else {
          return 23;
        }
      }
      if (this.type === 'time') {
        return this.endHour;
      }
    },
    minMinute: function minMinute() {
      if (this.type === 'datetime') {
        if (this.currentDateIsStart && this.hour === this.startHour) {
          return this.startMinute;
        } else {
          return 0;
        }
      }
      if (this.type === 'time') {
        if (this.hour === this.startHour) {
          return this.startMinute;
        } else {
          return 0;
        }
      }
    },
    maxMinute: function maxMinute() {
      if (this.type === 'datetime') {
        if (this.currentDateIsEnd && this.hour === this.endHour) {
          return this.endMinute;
        } else {
          return 59;
        }
      }
      if (this.type === 'time') {
        if (this.hour === this.endHour) {
          return this.endMinute;
        } else {
          return 59;
        }
      }
    },
    minSecond: function minSecond() {
      if (this.type === 'datetime') {
        if (this.currentDateIsStart && this.hour === this.startHour && this.minute === this.startMinute) {
          return this.startSecond;
        } else {
          return 0;
        }
      }
      if (this.type === 'time') {
        if (this.hour === this.startHour && this.minute === this.startMinute) {
          return this.startSecond;
        } else {
          return 0;
        }
      }
    },
    maxSecond: function maxSecond() {
      if (this.type === 'datetime') {
        if (this.currentDateIsEnd && this.hour === this.endHour && this.minute === this.endMinute) {
          return this.endSecond;
        } else {
          return 59;
        }
      }
      if (this.type === 'time') {
        if (this.hour === this.endHour && this.minute === this.endMinute) {
          return this.endSecond;
        } else {
          return 59;
        }
      }
    },

    /**
        * for i18n
        */
    selectTimeText: function selectTimeText() {
      return t("uni-datetime-picker.selectTime");
    },
    okText: function okText() {
      return t("uni-datetime-picker.ok");
    },
    clearText: function clearText() {
      return t("uni-datetime-picker.clear");
    },
    cancelText: function cancelText() {
      return t("uni-datetime-picker.cancel");
    } },


  mounted: function mounted() {







  },

  methods: {
    /**
              * @param {Object} item
              * 小于 10 在前面加个 0
              */

    lessThanTen: function lessThanTen(item) {
      return item < 10 ? '0' + item : item;
    },

    /**
        * 解析时分秒字符串，例如：00:00:00
        * @param {String} timeString
        */
    parseTimeType: function parseTimeType(timeString) {
      if (timeString) {
        var timeArr = timeString.split(':');
        this.hour = Number(timeArr[0]);
        this.minute = Number(timeArr[1]);
        this.second = Number(timeArr[2]);
      }
    },

    /**
        * 解析选择器初始值，类型可以是字符串、时间戳，例如：2000-10-02、'08:30:00'、 1610695109000
        * @param {String | Number} datetime
        */
    initPickerValue: function initPickerValue(datetime) {
      var defaultValue = null;
      if (datetime) {
        defaultValue = this.compareValueWithStartAndEnd(datetime, this.start, this.end);
      } else {
        defaultValue = Date.now();
        defaultValue = this.compareValueWithStartAndEnd(defaultValue, this.start, this.end);
      }
      this.parseValue(defaultValue);
    },

    /**
        * 初始值规则：
        * - 用户设置初始值 value
        * 	- 设置了起始时间 start、终止时间 end，并 start < value < end，初始值为 value， 否则初始值为 start
        * 	- 只设置了起始时间 start，并 start < value，初始值为 value，否则初始值为 start
        * 	- 只设置了终止时间 end，并 value < end，初始值为 value，否则初始值为 end
        * 	- 无起始终止时间，则初始值为 value
        * - 无初始值 value，则初始值为当前本地时间 Date.now()
        * @param {Object} value
        * @param {Object} dateBase
        */
    compareValueWithStartAndEnd: function compareValueWithStartAndEnd(value, start, end) {
      var winner = null;
      value = this.superTimeStamp(value);
      start = this.superTimeStamp(start);
      end = this.superTimeStamp(end);

      if (start && end) {
        if (value < start) {
          winner = new Date(start);
        } else if (value > end) {
          winner = new Date(end);
        } else {
          winner = new Date(value);
        }
      } else if (start && !end) {
        winner = start <= value ? new Date(value) : new Date(start);
      } else if (!start && end) {
        winner = value <= end ? new Date(value) : new Date(end);
      } else {
        winner = new Date(value);
      }

      return winner;
    },

    /**
        * 转换为可比较的时间戳，接受日期、时分秒、时间戳
        * @param {Object} value
        */
    superTimeStamp: function superTimeStamp(value) {
      var dateBase = '';
      if (this.type === 'time' && value && typeof value === 'string') {
        var now = new Date();
        var year = now.getFullYear();
        var month = now.getMonth() + 1;
        var day = now.getDate();
        dateBase = year + '/' + month + '/' + day + ' ';
      }
      if (Number(value) && typeof value !== NaN) {
        value = parseInt(value);
        dateBase = 0;
      }
      return this.createTimeStamp(dateBase + value);
    },

    /**
        * 解析默认值 value，字符串、时间戳
        * @param {Object} defaultTime
        */
    parseValue: function parseValue(value) {
      if (!value) {
        return;
      }
      if (this.type === 'time' && typeof value === "string") {
        this.parseTimeType(value);
      } else {
        var defaultDate = null;
        defaultDate = new Date(value);
        if (this.type !== 'time') {
          this.year = defaultDate.getFullYear();
          this.month = defaultDate.getMonth() + 1;
          this.day = defaultDate.getDate();
        }
        if (this.type !== 'date') {
          this.hour = defaultDate.getHours();
          this.minute = defaultDate.getMinutes();
          this.second = defaultDate.getSeconds();
        }
      }
      if (this.hideSecond) {
        this.second = 0;
      }
    },

    /**
        * 解析可选择时间范围 start、end，年月日字符串、时间戳
        * @param {Object} defaultTime
        */
    parseDatetimeRange: function parseDatetimeRange(point, pointType) {
      // 时间为空，则重置为初始值
      if (!point) {
        if (pointType === 'start') {
          this.startYear = 1920;
          this.startMonth = 1;
          this.startDay = 1;
          this.startHour = 0;
          this.startMinute = 0;
          this.startSecond = 0;
        }
        if (pointType === 'end') {
          this.endYear = 2120;
          this.endMonth = 12;
          this.endDay = 31;
          this.endHour = 23;
          this.endMinute = 59;
          this.endSecond = 59;
        }
        return;
      }
      if (this.type === 'time') {
        var pointArr = point.split(':');
        this[pointType + 'Hour'] = Number(pointArr[0]);
        this[pointType + 'Minute'] = Number(pointArr[1]);
        this[pointType + 'Second'] = Number(pointArr[2]);
      } else {
        if (!point) {
          pointType === 'start' ? this.startYear = this.year - 60 : this.endYear = this.year + 60;
          return;
        }
        if (Number(point) && Number(point) !== NaN) {
          point = parseInt(point);
        }
        // datetime 的 end 没有时分秒, 则不限制
        var hasTime = /[0-9]:[0-9]/;
        if (this.type === 'datetime' && pointType === 'end' && typeof point === 'string' && !hasTime.test(
        point)) {
          point = point + ' 23:59:59';
        }
        var pointDate = new Date(point);
        this[pointType + 'Year'] = pointDate.getFullYear();
        this[pointType + 'Month'] = pointDate.getMonth() + 1;
        this[pointType + 'Day'] = pointDate.getDate();
        if (this.type === 'datetime') {
          this[pointType + 'Hour'] = pointDate.getHours();
          this[pointType + 'Minute'] = pointDate.getMinutes();
          this[pointType + 'Second'] = pointDate.getSeconds();
        }
      }
    },

    // 获取 年、月、日、时、分、秒 当前可选范围
    getCurrentRange: function getCurrentRange(value) {
      var range = [];
      for (var i = this['min' + this.capitalize(value)]; i <= this['max' + this.capitalize(value)]; i++) {
        range.push(i);
      }
      return range;
    },

    // 字符串首字母大写
    capitalize: function capitalize(str) {
      return str.charAt(0).toUpperCase() + str.slice(1);
    },

    // 检查当前值是否在范围内，不在则当前值重置为可选范围第一项
    checkValue: function checkValue(name, value, values) {
      if (values.indexOf(value) === -1) {
        this[name] = values[0];
      }
    },

    // 每个月的实际天数
    daysInMonth: function daysInMonth(year, month) {// Use 1 for January, 2 for February, etc.
      return new Date(year, month, 0).getDate();
    },

    //兼容 iOS、safari 日期格式
    fixIosDateFormat: function fixIosDateFormat(value) {
      if (typeof value === 'string') {
        value = value.replace(/-/g, '/');
      }
      return value;
    },

    /**
        * 生成时间戳
        * @param {Object} time
        */
    createTimeStamp: function createTimeStamp(time) {
      if (!time) return;
      if (typeof time === "number") {
        return time;
      } else {
        time = time.replace(/-/g, '/');
        if (this.type === 'date') {
          time = time + ' ' + '00:00:00';
        }
        return Date.parse(time);
      }
    },

    /**
        * 生成日期或时间的字符串
        */
    createDomSting: function createDomSting() {
      var yymmdd = this.year +
      '-' +
      this.lessThanTen(this.month) +
      '-' +
      this.lessThanTen(this.day);

      var hhmmss = this.lessThanTen(this.hour) +
      ':' +
      this.lessThanTen(this.minute);

      if (!this.hideSecond) {
        hhmmss = hhmmss + ':' + this.lessThanTen(this.second);
      }

      if (this.type === 'date') {
        return yymmdd;
      } else if (this.type === 'time') {
        return hhmmss;
      } else {
        return yymmdd + ' ' + hhmmss;
      }
    },

    /**
        * 初始化返回值，并抛出 change 事件
        */
    initTime: function initTime() {var emit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
      this.time = this.createDomSting();
      if (!emit) return;
      if (this.returnType === 'timestamp' && this.type !== 'time') {
        this.$emit('change', this.createTimeStamp(this.time));
        this.$emit('input', this.createTimeStamp(this.time));
        this.$emit('update:modelValue', this.createTimeStamp(this.time));
      } else {
        this.$emit('change', this.time);
        this.$emit('input', this.time);
        this.$emit('update:modelValue', this.time);
      }
    },

    /**
        * 用户选择日期或时间更新 data
        * @param {Object} e
        */
    bindDateChange: function bindDateChange(e) {
      var val = e.detail.value;
      this.year = this.years[val[0]];
      this.month = this.months[val[1]];
      this.day = this.days[val[2]];
    },
    bindTimeChange: function bindTimeChange(e) {
      var val = e.detail.value;
      this.hour = this.hours[val[0]];
      this.minute = this.minutes[val[1]];
      this.second = this.seconds[val[2]];
    },

    /**
        * 初始化弹出层
        */
    initTimePicker: function initTimePicker() {
      if (this.disabled) return;
      var value = this.fixIosDateFormat(this.value);
      this.initPickerValue(value);
      this.visible = !this.visible;
    },

    /**
        * 触发或关闭弹框
        */
    tiggerTimePicker: function tiggerTimePicker(e) {
      this.visible = !this.visible;
    },

    /**
        * 用户点击“清空”按钮，清空当前值
        */
    clearTime: function clearTime() {
      this.time = '';
      this.$emit('change', this.time);
      this.$emit('input', this.time);
      this.$emit('update:modelValue', this.time);
      this.tiggerTimePicker();
    },

    /**
        * 用户点击“确定”按钮
        */
    setTime: function setTime() {
      this.initTime();
      this.tiggerTimePicker();
    } } };exports.default = _default;

/***/ }),

/***/ 330:
/*!*******************************************************************************************************************************************************************!*\
  !*** D:/exe/HBuilderX/HBuilderProjects/diacrisis/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue?vue&type=style&index=0&lang=css& ***!
  \*******************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../../../plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../../../plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./time-picker.vue?vue&type=style&index=0&lang=css& */ 331);
/* harmony import */ var _plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_time_picker_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 331:
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/exe/HBuilderX/HBuilderProjects/diacrisis/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue?vue&type=style&index=0&lang=css& ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  

/***/ })

}]);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker-create-component',
    {
        'uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('1')['createComponent'](__webpack_require__(325))
        })
    },
    [['uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker-create-component']]
]);
