(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["uview-ui/components/u-calendar/u-calendar"],{ /***/ 449: /*!*************************************************************************************!*\ !*** D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-calendar/u-calendar.vue ***! \*************************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _u_calendar_vue_vue_type_template_id_5b667d40_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./u-calendar.vue?vue&type=template&id=5b667d40&scoped=true& */ 450); /* harmony import */ var _u_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./u-calendar.vue?vue&type=script&lang=js& */ 452); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _u_calendar_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 _u_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var _u_calendar_vue_vue_type_style_index_0_id_5b667d40_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./u-calendar.vue?vue&type=style&index=0&id=5b667d40&scoped=true&lang=scss& */ 454); /* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 10); var renderjs /* normalize component */ var component = Object(_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])( _u_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], _u_calendar_vue_vue_type_template_id_5b667d40_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"], _u_calendar_vue_vue_type_template_id_5b667d40_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], false, null, "5b667d40", null, false, _u_calendar_vue_vue_type_template_id_5b667d40_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"], renderjs ) component.options.__file = "uview-ui/components/u-calendar/u-calendar.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ 450: /*!********************************************************************************************************************************!*\ !*** D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-calendar/u-calendar.vue?vue&type=template&id=5b667d40&scoped=true& ***! \********************************************************************************************************************************/ /*! exports provided: render, staticRenderFns, recyclableRender, components */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_template_id_5b667d40_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./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!./u-calendar.vue?vue&type=template&id=5b667d40&scoped=true& */ 451); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_template_id_5b667d40_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_template_id_5b667d40_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_template_id_5b667d40_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_template_id_5b667d40_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; }); /***/ }), /***/ 451: /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-calendar/u-calendar.vue?vue&type=template&id=5b667d40&scoped=true& ***! \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! 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 try { components = { uPopup: function() { return __webpack_require__.e(/*! import() | uview-ui/components/u-popup/u-popup */ "uview-ui/components/u-popup/u-popup").then(__webpack_require__.bind(null, /*! @/uview-ui/components/u-popup/u-popup.vue */ 404)) }, uIcon: function() { return __webpack_require__.e(/*! import() | uview-ui/components/u-icon/u-icon */ "uview-ui/components/u-icon/u-icon").then(__webpack_require__.bind(null, /*! @/uview-ui/components/u-icon/u-icon.vue */ 309)) }, uButton: function() { return __webpack_require__.e(/*! import() | uview-ui/components/u-button/u-button */ "uview-ui/components/u-button/u-button").then(__webpack_require__.bind(null, /*! @/uview-ui/components/u-button/u-button.vue */ 338)) } } } catch (e) { if ( e.message.indexOf("Cannot find module") !== -1 && e.message.indexOf(".vue") !== -1 ) { console.error(e.message) console.error("1. 排查组件名称拼写是否正确") console.error( "2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom" ) console.error( "3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件" ) } else { throw e } } var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h var l0 = _vm.__map(_vm.daysArr, function(item, index) { var $orig = _vm.__get_orig(item) var m0 = _vm.openDisAbled(_vm.year, _vm.month, index + 1) var m1 = _vm.getColor(index, 1) var m2 = _vm.getColor(index, 2) var m3 = _vm.filterAvailable(_vm.year + "-" + _vm.month + "-" + (index + 1)) var m4 = _vm.filterActive(_vm.year + "-" + _vm.month + "-" + (index + 1)) return { $orig: $orig, m0: m0, m1: m1, m2: m2, m3: m3, m4: m4 } }) _vm.$mp.data = Object.assign( {}, { $root: { l0: l0 } } ) } var recyclableRender = false var staticRenderFns = [] render._withStripped = true /***/ }), /***/ 452: /*!**************************************************************************************************************!*\ !*** D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-calendar/u-calendar.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 _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./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!./u-calendar.vue?vue&type=script&lang=js& */ 453); /* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_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 _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (_E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), /***/ 453: /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-calendar/u-calendar.vue?vue&type=script&lang=js& ***! \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /** * calendar 日历 * @description 此组件用于单个选择日期,范围选择日期等,日历被包裹在底部弹起的容器中。 * @tutorial http://uviewui.com/components/calendar.html * @property {String} mode 选择日期的模式,date-为单个日期,range-为选择日期范围 * @property {Boolean} v-model 布尔值变量,用于控制日历的弹出与收起 * @property {Boolean} safe-area-inset-bottom 是否开启底部安全区适配(默认false) * @property {Boolean} change-year 是否显示顶部的切换年份方向的按钮(默认true) * @property {Boolean} change-month 是否显示顶部的切换月份方向的按钮(默认true) * @property {String Number} max-year 可切换的最大年份(默认2050) * @property {String Number} min-year 最小可选日期(默认1950) * @property {String Number} min-date 可切换的最小年份(默认1950-01-01) * @property {String Number} max-date 最大可选日期(默认当前日期) * @property {String Number} 弹窗顶部左右两边的圆角值,单位rpx(默认20) * @property {Boolean} mask-close-able 是否允许通过点击遮罩关闭日历(默认true) * @property {String} month-arrow-color 月份切换按钮箭头颜色(默认#606266) * @property {String} year-arrow-color 年份切换按钮箭头颜色(默认#909399) * @property {String} color 日期字体的默认颜色(默认#303133) * @property {String} active-bg-color 起始/结束日期按钮的背景色(默认#2979ff) * @property {String Number} z-index 弹出时的z-index值(默认10075) * @property {String} active-color 起始/结束日期按钮的字体颜色(默认#ffffff) * @property {String} range-bg-color 起始/结束日期之间的区域的背景颜色(默认rgba(41,121,255,0.13)) * @property {String} range-color 选择范围内字体颜色(默认#2979ff) * @property {String} start-text 起始日期底部的提示文字(默认 '开始') * @property {String} end-text 结束日期底部的提示文字(默认 '结束') * @property {String} btn-type 底部确定按钮的主题(默认 'primary') * @property {String} toolTip 顶部提示文字,如设置名为tooltip的slot,此参数将失效(默认 '选择日期') * @property {Boolean} closeable 是否显示右上角的关闭图标(默认true) * @example */var _default2 = { name: 'u-calendar', props: { safeAreaInsetBottom: { type: Boolean, default: false }, // 是否允许通过点击遮罩关闭Picker maskCloseAble: { type: Boolean, default: true }, // 通过双向绑定控制组件的弹出与收起 value: { type: Boolean, default: false }, // 弹出的z-index值 zIndex: { type: [String, Number], default: 0 }, // 是否允许切换年份 changeYear: { type: Boolean, default: true }, // 是否允许切换月份 changeMonth: { type: Boolean, default: true }, // date-单个日期选择,range-开始日期+结束日期选择 mode: { type: String, default: 'date' }, // 可切换的最大年份 maxYear: { type: [Number, String], default: 2050 }, // 可切换的最小年份 minYear: { type: [Number, String], default: 1950 }, // 最小可选日期(不在范围内日期禁用不可选) minDate: { type: [Number, String], default: '1950-01-01' }, /** * 最大可选日期 * 默认最大值为今天,之后的日期不可选 * 2030-12-31 * */ maxDate: { type: [Number, String], default: '' }, // 弹窗顶部左右两边的圆角值 borderRadius: { type: [String, Number], default: 20 }, // 月份切换按钮箭头颜色 monthArrowColor: { type: String, default: '#606266' }, // 年份切换按钮箭头颜色 yearArrowColor: { type: String, default: '#909399' }, // 默认日期字体颜色 color: { type: String, default: '#303133' }, // 选中|起始结束日期背景色 activeBgColor: { type: String, default: '#2979ff' }, // 选中|起始结束日期字体颜色 activeColor: { type: String, default: '#ffffff' }, // 范围内日期背景色 rangeBgColor: { type: String, default: 'rgba(41,121,255,0.13)' }, // 范围内日期字体颜色 rangeColor: { type: String, default: '#2979ff' }, // mode=range时生效,起始日期自定义文案 startText: { type: String, default: '开始' }, // mode=range时生效,结束日期自定义文案 endText: { type: String, default: '结束' }, //按钮样式类型 btnType: { type: String, default: 'primary' }, // 当前选中日期带选中效果 isActiveCurrent: { type: Boolean, default: true }, // 切换年月是否触发事件 mode=date时生效 isChange: { type: Boolean, default: false }, // 是否显示右上角的关闭图标 closeable: { type: Boolean, default: true }, // 顶部的提示文字 toolTip: { type: String, default: '选择日期' }, // 可用提示背景色 availableBgColor: { type: String, default: '#fcbd71' }, // 可用提示文字 availableText: { type: String, default: '可用' }, // 可用日期列表 available: { type: Array, default: function _default() { return []; } }, // 可用提示文字 activeText: { type: String, default: '' }, // 激活列表 activeList: { type: Array, default: function _default() { return []; } }, handleStatus: { type: Boolean, default: true }, popupMask: { type: Boolean, default: true }, popupMode: { type: String, default: 'bottom' } }, data: function data() { return { // 星期几,值为1-7 weekday: 1, weekdayArr: [], // 当前月有多少天 days: 0, daysArr: [], showTitle: '', year: 2020, month: 0, day: 0, startYear: 0, startMonth: 0, startDay: 0, endYear: 0, endMonth: 0, endDay: 0, today: '', activeDate: '', startDate: '', endDate: '', isStart: true, min: null, max: null, weekDayZh: ['日', '一', '二', '三', '四', '五', '六'] }; }, computed: { dataChange: function dataChange() { return "".concat(this.mode, "-").concat(this.minDate, "-").concat(this.maxDate); }, uZIndex: function uZIndex() { // 如果用户有传递z-index值,优先使用 return this.zIndex ? this.zIndex : this.$u.zIndex.popup; } }, watch: { dataChange: function dataChange(val) { this.init(); } }, created: function created() { this.init(); }, methods: { getColor: function getColor(index, type) { var color = type == 1 ? '' : this.color; var day = index + 1; var date = "".concat(this.year, "-").concat(this.month, "-").concat(day); var timestamp = new Date(date.replace(/\-/g, '/')).getTime(); var start = this.startDate.replace(/\-/g, '/'); var end = this.endDate.replace(/\-/g, '/'); if (this.isActiveCurrent && this.activeDate == date || this.startDate == date || this.endDate == date) { color = type == 1 ? this.activeBgColor : this.activeColor; } else if (this.endDate && timestamp > new Date(start).getTime() && timestamp < new Date(end).getTime()) { color = type == 1 ? this.rangeBgColor : this.rangeColor; } if (this.available.length && !(this.isActiveCurrent && this.activeDate == date)) { if (this.filterAvailable("".concat(this.year, "-").concat(this.month, "-").concat(day))) { return type == 1 ? this.availableBgColor : this.activeColor; } } if (this.activeList.length && !(this.isActiveCurrent && this.activeDate == date)) { if (this.filterActive("".concat(this.year, "-").concat(this.month, "-").concat(day))) { return type == 1 ? this.activeBgColor : this.activeColor; } } return color; }, filterAvailable: function filterAvailable(date) { return this.available.filter(function (site) {return site == date;}).length; }, filterActive: function filterActive(date) { return this.activeList.filter(function (site) {return site == date;}).length; }, init: function init() { var now = new Date(); this.year = now.getFullYear(); this.month = now.getMonth() + 1; this.day = now.getDate(); this.today = "".concat(now.getFullYear(), "-").concat(now.getMonth() + 1, "-").concat(now.getDate()); this.activeDate = this.today; this.min = this.initDate(this.minDate); this.max = this.initDate(this.maxDate || this.today); this.startDate = ""; this.startYear = 0; this.startMonth = 0; this.startDay = 0; this.endYear = 0; this.endMonth = 0; this.endDay = 0; this.endDate = ""; this.isStart = true; this.changeData(); }, //日期处理 initDate: function initDate(date) { var fdate = date.split('-'); return { year: Number(fdate[0] || 1920), month: Number(fdate[1] || 1), day: Number(fdate[2] || 1) }; }, openDisAbled: function openDisAbled(year, month, day) { var bool = true; var date = "".concat(year, "/").concat(month, "/").concat(day); // let today = this.today.replace(/\-/g, '/'); var min = "".concat(this.min.year, "/").concat(this.min.month, "/").concat(this.min.day); var max = "".concat(this.max.year, "/").concat(this.max.month, "/").concat(this.max.day); var timestamp = new Date(date).getTime(); if (timestamp >= new Date(min).getTime() && timestamp <= new Date(max).getTime()) { bool = false; } return bool; }, generateArray: function generateArray(start, end) { return Array.from(new Array(end + 1).keys()).slice(start); }, formatNum: function formatNum(num) { return num < 10 ? '0' + num : num + ''; }, //一个月有多少天 getMonthDay: function getMonthDay(year, month) { var days = new Date(year, month, 0).getDate(); return days; }, getWeekday: function getWeekday(year, month) { var date = new Date("".concat(year, "/").concat(month, "/01 00:00:00")); return date.getDay(); }, checkRange: function checkRange(year) { var overstep = false; if (year < this.minYear || year > this.maxYear) { uni.showToast({ title: "日期超出范围啦~", icon: 'none' }); overstep = true; } return overstep; }, changeMonthHandler: function changeMonthHandler(isAdd) { if (isAdd) { var month = this.month + 1; var year = month > 12 ? this.year + 1 : this.year; if (!this.checkRange(year)) { this.month = month > 12 ? 1 : month; this.year = year; this.changeData(); } } else { var _month = this.month - 1; var _year = _month < 1 ? this.year - 1 : this.year; if (!this.checkRange(_year)) { this.month = _month < 1 ? 12 : _month; this.year = _year; this.changeData(); } } }, changeYearHandler: function changeYearHandler(isAdd) { var year = isAdd ? this.year + 1 : this.year - 1; if (!this.checkRange(year)) { this.year = year; this.changeData(); } }, changeData: function changeData() { this.days = this.getMonthDay(this.year, this.month); this.daysArr = this.generateArray(1, this.days); this.weekday = this.getWeekday(this.year, this.month); this.weekdayArr = this.generateArray(1, this.weekday); this.showTitle = "".concat(this.year, "\u5E74").concat(this.month, "\u6708"); if (this.isChange && this.mode == 'date') { this.btnFix(true); } }, dateClick: function dateClick(day) { day += 1; if (!this.openDisAbled(this.year, this.month, day)) { this.day = day; var date = "".concat(this.year, "-").concat(this.month, "-").concat(day); if (this.mode == 'date') { this.activeDate = date; } else { var compare = new Date(date.replace(/\-/g, '/')).getTime() < new Date(this.startDate.replace(/\-/g, '/')).getTime(); if (this.isStart || compare) { this.startDate = date; this.startYear = this.year; this.startMonth = this.month; this.startDay = this.day; this.endYear = 0; this.endMonth = 0; this.endDay = 0; this.endDate = ""; this.activeDate = ""; this.isStart = false; } else { this.endDate = date; this.endYear = this.year; this.endMonth = this.month; this.endDay = this.day; this.isStart = true; } } } }, close: function close() { // 修改通过v-model绑定的父组件变量的值为false,从而隐藏日历弹窗 this.$emit('input', false); }, getWeekText: function getWeekText(date) { date = new Date("".concat(date.replace(/\-/g, '/'), " 00:00:00")); var week = date.getDay(); return '星期' + ['日', '一', '二', '三', '四', '五', '六'][week]; }, btnFix: function btnFix(show) { if (!show) { this.close(); } if (this.mode == 'date') { var arr = this.activeDate.split('-'); var year = this.isChange ? this.year : Number(arr[0]); var month = this.isChange ? this.month : Number(arr[1]); var day = this.isChange ? this.day : Number(arr[2]); //当前月有多少天 var days = this.getMonthDay(year, month); var result = "".concat(year, "-").concat(this.formatNum(month), "-").concat(this.formatNum(day)); var weekText = this.getWeekText(result); var isToday = false; if ("".concat(year, "-").concat(month, "-").concat(day) == this.today) { //今天 isToday = true; } this.$emit('change', { year: year, month: month, day: day, days: days, result: result, week: weekText, isToday: isToday // switch: show //是否是切换年月操作 }); } else { if (!this.startDate || !this.endDate) return; var startMonth = this.formatNum(this.startMonth); var startDay = this.formatNum(this.startDay); var startDate = "".concat(this.startYear, "-").concat(startMonth, "-").concat(startDay); var startWeek = this.getWeekText(startDate); var endMonth = this.formatNum(this.endMonth); var endDay = this.formatNum(this.endDay); var endDate = "".concat(this.endYear, "-").concat(endMonth, "-").concat(endDay); var endWeek = this.getWeekText(endDate); this.$emit('change', { startYear: this.startYear, startMonth: this.startMonth, startDay: this.startDay, startDate: startDate, startWeek: startWeek, endYear: this.endYear, endMonth: this.endMonth, endDay: this.endDay, endDate: endDate, endWeek: endWeek }); } } } };exports.default = _default2; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"])) /***/ }), /***/ 454: /*!***********************************************************************************************************************************************!*\ !*** D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-calendar/u-calendar.vue?vue&type=style&index=0&id=5b667d40&scoped=true&lang=scss& ***! \***********************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_style_index_0_id_5b667d40_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-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--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-calendar.vue?vue&type=style&index=0&id=5b667d40&scoped=true&lang=scss& */ 455); /* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_style_index_0_id_5b667d40_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_style_index_0_id_5b667d40_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_style_index_0_id_5b667d40_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_style_index_0_id_5b667d40_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (_E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_u_calendar_vue_vue_type_style_index_0_id_5b667d40_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), /***/ 455: /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-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--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./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:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-calendar/u-calendar.vue?vue&type=style&index=0&id=5b667d40&scoped=true&lang=scss& ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin if(false) { var cssReload; } /***/ }) }]); //# sourceMappingURL=../../../../.sourcemap/mp-weixin/uview-ui/components/u-calendar/u-calendar.js.map ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ 'uview-ui/components/u-calendar/u-calendar-create-component', { 'uview-ui/components/u-calendar/u-calendar-create-component':(function(module, exports, __webpack_require__){ __webpack_require__('1')['createComponent'](__webpack_require__(449)) }) }, [['uview-ui/components/u-calendar/u-calendar-create-component']] ]);