u-calendar.js.map 38 KB

1
  1. {"version":3,"sources":["webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-calendar/u-calendar.vue?0f27","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-calendar/u-calendar.vue?a765","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-calendar/u-calendar.vue?52ec","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-calendar/u-calendar.vue?d54c","uni-app:///uview-ui/components/u-calendar/u-calendar.vue","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-calendar/u-calendar.vue?7d6a","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/uview-ui/components/u-calendar/u-calendar.vue?ef28"],"names":[],"mappings":"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YA,mBAZA;AAaA,iBAbA;AAcA,gBAdA;AAeA,iBAfA;AAgBA,eAhBA;AAiBA,eAjBA;AAkBA,oBAlBA;AAmBA,mBAnBA;AAoBA,iBApBA;AAqBA,mBArBA;AAsBA,eAtBA;AAuBA,eAvBA;AAwBA,oDAxBA;;AA0BA,GA7MA;AA8MA;AACA,cADA,wBACA;AACA;AACA,KAHA;AAIA,WAJA,qBAIA;AACA;AACA;AACA,KAPA,EA9MA;;AAuNA;AACA,cADA,sBACA,GADA,EACA;AACA;AACA,KAHA,EAvNA;;AA4NA,SA5NA,qBA4NA;AACA;AACA,GA9NA;AA+NA;AACA,YADA,oBACA,KADA,EACA,IADA,EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAxBA;AAyBA,mBAzBA,2BAyBA,IAzBA,EAyBA;AACA;AACA,KA3BA;AA4BA,gBA5BA,wBA4BA,IA5BA,EA4BA;AACA;AACA,KA9BA;AA+BA,QA/BA,kBA+BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAlDA;AAmDA;AACA,YApDA,oBAoDA,IApDA,EAoDA;AACA;AACA;AACA,sCADA;AAEA,oCAFA;AAGA,kCAHA;;AAKA,KA3DA;AA4DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAvEA;AAwEA;AACA;AACA,KA1EA;AA2EA;AACA;AACA,KA7EA;AA8EA;AACA,eA/EA,uBA+EA,IA/EA,EA+EA,KA/EA,EA+EA;AACA;AACA;AACA,KAlFA;AAmFA,cAnFA,sBAmFA,IAnFA,EAmFA,KAnFA,EAmFA;AACA;AACA;AACA,KAtFA;AAuFA,cAvFA,sBAuFA,IAvFA,EAuFA;AACA;AACA;AACA;AACA,2BADA;AAEA,sBAFA;;AAIA;AACA;AACA;AACA,KAjGA;AAkGA,sBAlGA,8BAkGA,KAlGA,EAkGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OATA,MASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KArHA;AAsHA,qBAtHA,6BAsHA,KAtHA,EAsHA;AACA;AACA;AACA;AACA;AACA;AACA,KA5HA;AA6HA,cA7HA,wBA6HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAtIA;AAuIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAXA,MAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KApKA;AAqKA,SArKA,mBAqKA;AACA;AACA;AACA,KAxKA;AAyKA,eAzKA,uBAyKA,IAzKA,EAyKA;AACA;AACA;AACA;AACA,KA7KA;AA8KA,UA9KA,kBA8KA,IA9KA,EA8KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBADA;AAEA,sBAFA;AAGA,kBAHA;AAIA,oBAJA;AAKA,wBALA;AAMA,wBANA;AAOA;AACA;AARA;AAUA,OAxBA,MAwBA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,mCADA;AAEA,qCAFA;AAGA,iCAHA;AAIA,8BAJA;AAKA,8BALA;AAMA,+BANA;AAOA,iCAPA;AAQA,6BARA;AASA,0BATA;AAUA,0BAVA;;AAYA;AACA,KAlOA,EA/NA,E;;;;;;;;;;;;;AC7FA;AAAA;AAAA;AAAA;AAA8nC,CAAgB,wmCAAG,EAAC,C;;;;;;;;;;;ACAlpC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"uview-ui/components/u-calendar/u-calendar.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./u-calendar.vue?vue&type=template&id=5b667d40&scoped=true&\"\nvar renderjs\nimport script from \"./u-calendar.vue?vue&type=script&lang=js&\"\nexport * from \"./u-calendar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./u-calendar.vue?vue&type=style&index=0&id=5b667d40&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5b667d40\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"uview-ui/components/u-calendar/u-calendar.vue\"\nexport default component.exports","export * from \"-!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&\"","var components\ntry {\n components = {\n uPopup: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-popup/u-popup\" */ \"@/uview-ui/components/u-popup/u-popup.vue\"\n )\n },\n uIcon: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-icon/u-icon\" */ \"@/uview-ui/components/u-icon/u-icon.vue\"\n )\n },\n uButton: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-button/u-button\" */ \"@/uview-ui/components/u-button/u-button.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var l0 = _vm.__map(_vm.daysArr, function(item, index) {\n var $orig = _vm.__get_orig(item)\n\n var m0 = _vm.openDisAbled(_vm.year, _vm.month, index + 1)\n var m1 = _vm.getColor(index, 1)\n var m2 = _vm.getColor(index, 2)\n var m3 = _vm.filterAvailable(_vm.year + \"-\" + _vm.month + \"-\" + (index + 1))\n var m4 = _vm.filterActive(_vm.year + \"-\" + _vm.month + \"-\" + (index + 1))\n return {\n $orig: $orig,\n m0: m0,\n m1: m1,\n m2: m2,\n m3: m3,\n m4: m4\n }\n })\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l0: l0\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!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&\"; export default mod; export * from \"-!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&\"","<template>\r\n\t<u-popup closeable :maskCloseAble=\"maskCloseAble\" :mode=\"popupMode\" :mask=\"popupMask\" :popup=\"false\" v-model=\"value\" length=\"auto\"\r\n\t :safeAreaInsetBottom=\"safeAreaInsetBottom\" @close=\"close\" :z-index=\"uZIndex\" :border-radius=\"borderRadius\" :closeable=\"closeable\">\r\n\t\t<view class=\"u-calendar\">\r\n\t\t\t<view class=\"u-calendar__header\">\r\n\t\t\t\t<view class=\"u-calendar__header__text\" v-if=\"!$slots['tooltip']\">\r\n\t\t\t\t\t{{toolTip}}\r\n\t\t\t\t</view>\r\n\t\t\t\t<slot v-else name=\"tooltip\" />\r\n\t\t\t</view>\r\n\t\t\t<view class=\"u-calendar__action u-flex u-row-center\">\r\n\t\t\t\t<view class=\"u-calendar__action__icon\">\r\n\t\t\t\t\t<u-icon v-if=\"changeYear\" name=\"arrow-left-double\" :color=\"yearArrowColor\" @click=\"changeYearHandler(0)\"></u-icon>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"u-calendar__action__icon\">\r\n\t\t\t\t\t<u-icon v-if=\"changeMonth\" name=\"arrow-left\" :color=\"monthArrowColor\" @click=\"changeMonthHandler(0)\"></u-icon>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"u-calendar__action__text\">{{ showTitle }}</view>\r\n\t\t\t\t<view class=\"u-calendar__action__icon\">\r\n\t\t\t\t\t<u-icon v-if=\"changeMonth\" name=\"arrow-right\" :color=\"monthArrowColor\" @click=\"changeMonthHandler(1)\"></u-icon>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"u-calendar__action__icon\">\r\n\t\t\t\t\t<u-icon v-if=\"changeYear\" name=\"arrow-right-double\" :color=\"yearArrowColor\" @click=\"changeYearHandler(1)\"></u-icon>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"u-calendar__week-day\">\r\n\t\t\t\t<view class=\"u-calendar__week-day__text\" v-for=\"(item, index) in weekDayZh\" :key=\"index\">{{item}}</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"u-calendar__content\">\r\n\t\t\t\t<!-- 前置空白部分 -->\r\n\t\t\t\t<block v-for=\"(item, index) in weekdayArr\" :key=\"index\">\r\n\t\t\t\t\t<view class=\"u-calendar__content__item\"></view>\r\n\t\t\t\t</block>\r\n\t\t\t\t<view class=\"u-calendar__content__item\" :class=\"{\r\n\t\t\t\t\t'u-hover-class':openDisAbled(year,month,index+1),\r\n\t\t\t\t\t'u-calendar__content--start-date': (mode == 'range' && startDate==`${year}-${month}-${index+1}`) || mode== 'date',\r\n\t\t\t\t\t'u-calendar__content--end-date':(mode== 'range' && endDate==`${year}-${month}-${index+1}`) || mode == 'date'\r\n\t\t\t\t}\"\r\n\t\t\t\t :style=\"{backgroundColor: getColor(index,1)}\" v-for=\"(item, index) in daysArr\" :key=\"index\" @tap=\"dateClick(index)\">\r\n\t\t\t\t\t<view class=\"u-calendar__content__item__inner\" :style=\"{color: getColor(index,2)}\">\r\n\t\t\t\t\t\t<view>{{ index + 1 }}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"u-calendar__content__item__tips\" :style=\"{color:activeColor}\" v-if=\"filterAvailable(`${year}-${month}-${index+1}`)\">{{availableText}}</view>\r\n\t\t\t\t\t<view class=\"u-calendar__content__item__tips\" :style=\"{color:activeColor}\" v-if=\"filterActive(`${year}-${month}-${index+1}`)\">{{activeText}}</view>\r\n\t\t\t\t\t<view class=\"u-calendar__content__item__tips\" :style=\"{color:activeColor}\" v-if=\"mode== 'range' && startDate==`${year}-${month}-${index+1}` && startDate!=endDate\">{{startText}}</view>\r\n\t\t\t\t\t<view class=\"u-calendar__content__item__tips\" :style=\"{color:activeColor}\" v-if=\"mode== 'range' && endDate==`${year}-${month}-${index+1}`\">{{endText}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"u-calendar__content__bg-month\">{{month}}</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"u-calendar__bottom\" v-if=\"handleStatus\">\r\n\t\t\t\t<view class=\"u-calendar__bottom__choose\">\r\n\t\t\t\t\t<text>{{mode == 'date' ? activeDate : startDate}}</text>\r\n\t\t\t\t\t<text v-if=\"endDate\">至{{endDate}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"u-calendar__bottom__btn\">\r\n\t\t\t\t\t<u-button :type=\"btnType\" shape=\"circle\" size=\"default\" @click=\"btnFix(false)\">确定</u-button>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</u-popup>\r\n</template>\r\n<script>\r\n\t/**\r\n\t * calendar 日历\r\n\t * @description 此组件用于单个选择日期,范围选择日期等,日历被包裹在底部弹起的容器中。\r\n\t * @tutorial http://uviewui.com/components/calendar.html\r\n\t * @property {String} mode 选择日期的模式,date-为单个日期,range-为选择日期范围\r\n\t * @property {Boolean} v-model 布尔值变量,用于控制日历的弹出与收起\r\n\t * @property {Boolean} safe-area-inset-bottom 是否开启底部安全区适配(默认false)\r\n\t * @property {Boolean} change-year 是否显示顶部的切换年份方向的按钮(默认true)\r\n\t * @property {Boolean} change-month 是否显示顶部的切换月份方向的按钮(默认true)\r\n\t * @property {String Number} max-year 可切换的最大年份(默认2050)\r\n\t * @property {String Number} min-year 最小可选日期(默认1950)\r\n\t * @property {String Number} min-date 可切换的最小年份(默认1950-01-01)\r\n\t * @property {String Number} max-date 最大可选日期(默认当前日期)\r\n\t * @property {String Number} 弹窗顶部左右两边的圆角值,单位rpx(默认20)\r\n\t * @property {Boolean} mask-close-able 是否允许通过点击遮罩关闭日历(默认true)\r\n\t * @property {String} month-arrow-color 月份切换按钮箭头颜色(默认#606266)\r\n\t * @property {String} year-arrow-color 年份切换按钮箭头颜色(默认#909399)\r\n\t * @property {String} color 日期字体的默认颜色(默认#303133)\r\n\t * @property {String} active-bg-color 起始/结束日期按钮的背景色(默认#2979ff)\r\n\t * @property {String Number} z-index 弹出时的z-index值(默认10075)\r\n\t * @property {String} active-color 起始/结束日期按钮的字体颜色(默认#ffffff)\r\n\t * @property {String} range-bg-color 起始/结束日期之间的区域的背景颜色(默认rgba(41,121,255,0.13))\r\n\t * @property {String} range-color 选择范围内字体颜色(默认#2979ff)\r\n\t * @property {String} start-text 起始日期底部的提示文字(默认 '开始')\r\n\t * @property {String} end-text 结束日期底部的提示文字(默认 '结束')\r\n\t * @property {String} btn-type 底部确定按钮的主题(默认 'primary')\r\n\t * @property {String} toolTip 顶部提示文字,如设置名为tooltip的slot,此参数将失效(默认 '选择日期')\r\n\t * @property {Boolean} closeable 是否显示右上角的关闭图标(默认true)\r\n\t * @example <u-calendar v-model=\"show\" :mode=\"mode\"></u-calendar>\r\n\t */\r\n\r\n\texport default {\r\n\t\tname: 'u-calendar',\r\n\t\tprops: {\r\n\t\t\tsafeAreaInsetBottom: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\t// 是否允许通过点击遮罩关闭Picker\r\n\t\t\tmaskCloseAble: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\t// 通过双向绑定控制组件的弹出与收起\r\n\t\t\tvalue: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\t// 弹出的z-index值\r\n\t\t\tzIndex: {\r\n\t\t\t\ttype: [String, Number],\r\n\t\t\t\tdefault: 0\r\n\t\t\t},\r\n\t\t\t// 是否允许切换年份\r\n\t\t\tchangeYear: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\t// 是否允许切换月份\r\n\t\t\tchangeMonth: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\t// date-单个日期选择,range-开始日期+结束日期选择\r\n\t\t\tmode: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: 'date'\r\n\t\t\t},\r\n\t\t\t// 可切换的最大年份\r\n\t\t\tmaxYear: {\r\n\t\t\t\ttype: [Number, String],\r\n\t\t\t\tdefault: 2050\r\n\t\t\t},\r\n\t\t\t// 可切换的最小年份\r\n\t\t\tminYear: {\r\n\t\t\t\ttype: [Number, String],\r\n\t\t\t\tdefault: 1950\r\n\t\t\t},\r\n\t\t\t// 最小可选日期(不在范围内日期禁用不可选)\r\n\t\t\tminDate: {\r\n\t\t\t\ttype: [Number, String],\r\n\t\t\t\tdefault: '1950-01-01'\r\n\t\t\t},\r\n\t\t\t/**\r\n\t\t\t * 最大可选日期\r\n\t\t\t * 默认最大值为今天,之后的日期不可选\r\n\t\t\t * 2030-12-31\r\n\t\t\t * */\r\n\t\t\tmaxDate: {\r\n\t\t\t\ttype: [Number, String],\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\t// 弹窗顶部左右两边的圆角值\r\n\t\t\tborderRadius: {\r\n\t\t\t\ttype: [String, Number],\r\n\t\t\t\tdefault: 20\r\n\t\t\t},\r\n\t\t\t// 月份切换按钮箭头颜色\r\n\t\t\tmonthArrowColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#606266'\r\n\t\t\t},\r\n\t\t\t// 年份切换按钮箭头颜色\r\n\t\t\tyearArrowColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#909399'\r\n\t\t\t},\r\n\t\t\t// 默认日期字体颜色\r\n\t\t\tcolor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#303133'\r\n\t\t\t},\r\n\t\t\t// 选中|起始结束日期背景色\r\n\t\t\tactiveBgColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#2979ff'\r\n\t\t\t},\r\n\t\t\t// 选中|起始结束日期字体颜色\r\n\t\t\tactiveColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#ffffff'\r\n\t\t\t},\r\n\t\t\t// 范围内日期背景色\r\n\t\t\trangeBgColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: 'rgba(41,121,255,0.13)'\r\n\t\t\t},\r\n\t\t\t// 范围内日期字体颜色\r\n\t\t\trangeColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#2979ff'\r\n\t\t\t},\r\n\t\t\t// mode=range时生效,起始日期自定义文案\r\n\t\t\tstartText: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '开始'\r\n\t\t\t},\r\n\t\t\t// mode=range时生效,结束日期自定义文案\r\n\t\t\tendText: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '结束'\r\n\t\t\t},\r\n\t\t\t//按钮样式类型\r\n\t\t\tbtnType: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: 'primary'\r\n\t\t\t},\r\n\t\t\t// 当前选中日期带选中效果\r\n\t\t\tisActiveCurrent: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\t// 切换年月是否触发事件 mode=date时生效\r\n\t\t\tisChange: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\t// 是否显示右上角的关闭图标\r\n\t\t\tcloseable: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\t// 顶部的提示文字\r\n\t\t\ttoolTip: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '选择日期'\r\n\t\t\t},\r\n\t\t\t// 可用提示背景色\r\n\t\t\tavailableBgColor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#fcbd71'\r\n\t\t\t},\r\n\t\t\t// 可用提示文字\r\n\t\t\tavailableText: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '可用'\r\n\t\t\t},\r\n\t\t\t// 可用日期列表\r\n\t\t\tavailable: {\r\n\t\t\t\ttype: Array,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn []\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 可用提示文字\r\n\t\t\tactiveText: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\t// 激活列表\r\n\t\t\tactiveList: {\r\n\t\t\t\ttype: Array,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn []\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\thandleStatus: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\tpopupMask: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\tpopupMode: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: 'bottom'\r\n\t\t\t}\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\t// 星期几,值为1-7\r\n\t\t\t\tweekday: 1,\r\n\t\t\t\tweekdayArr: [],\r\n\t\t\t\t// 当前月有多少天\r\n\t\t\t\tdays: 0,\r\n\t\t\t\tdaysArr: [],\r\n\t\t\t\tshowTitle: '',\r\n\t\t\t\tyear: 2020,\r\n\t\t\t\tmonth: 0,\r\n\t\t\t\tday: 0,\r\n\t\t\t\tstartYear: 0,\r\n\t\t\t\tstartMonth: 0,\r\n\t\t\t\tstartDay: 0,\r\n\t\t\t\tendYear: 0,\r\n\t\t\t\tendMonth: 0,\r\n\t\t\t\tendDay: 0,\r\n\t\t\t\ttoday: '',\r\n\t\t\t\tactiveDate: '',\r\n\t\t\t\tstartDate: '',\r\n\t\t\t\tendDate: '',\r\n\t\t\t\tisStart: true,\r\n\t\t\t\tmin: null,\r\n\t\t\t\tmax: null,\r\n\t\t\t\tweekDayZh: ['日', '一', '二', '三', '四', '五', '六']\r\n\t\t\t};\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\tdataChange() {\r\n\t\t\t\treturn `${this.mode}-${this.minDate}-${this.maxDate}`;\r\n\t\t\t},\r\n\t\t\tuZIndex() {\r\n\t\t\t\t// 如果用户有传递z-index值,优先使用\r\n\t\t\t\treturn this.zIndex ? this.zIndex : this.$u.zIndex.popup;\r\n\t\t\t}\r\n\t\t},\r\n\t\twatch: {\r\n\t\t\tdataChange(val) {\r\n\t\t\t\tthis.init()\r\n\t\t\t}\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\tthis.init()\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tgetColor(index, type) {\r\n\t\t\t\tlet color = type == 1 ? '' : this.color;\r\n\t\t\t\tlet day = index + 1\r\n\t\t\t\tlet date = `${this.year}-${this.month}-${day}`\r\n\t\t\t\tlet timestamp = new Date(date.replace(/\\-/g, '/')).getTime();\r\n\t\t\t\tlet start = this.startDate.replace(/\\-/g, '/')\r\n\t\t\t\tlet end = this.endDate.replace(/\\-/g, '/')\r\n\t\t\t\tif ((this.isActiveCurrent && this.activeDate == date) || this.startDate == date || this.endDate == date) {\r\n\t\t\t\t\tcolor = type == 1 ? this.activeBgColor : this.activeColor;\r\n\t\t\t\t} else if (this.endDate && timestamp > new Date(start).getTime() && timestamp < new Date(end).getTime()) {\r\n\t\t\t\t\tcolor = type == 1 ? this.rangeBgColor : this.rangeColor;\r\n\t\t\t\t}\r\n\t\t\t\tif (this.available.length && !(this.isActiveCurrent && this.activeDate == date)) {\r\n\t\t\t\t\tif (this.filterAvailable(`${this.year}-${this.month}-${day}`)) {\r\n\t\t\t\t\t\treturn type == 1 ? this.availableBgColor : this.activeColor;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (this.activeList.length && !(this.isActiveCurrent && this.activeDate == date)) {\r\n\t\t\t\t\tif (this.filterActive(`${this.year}-${this.month}-${day}`)) {\r\n\t\t\t\t\t\treturn type == 1 ? this.activeBgColor : this.activeColor;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn color;\r\n\t\t\t},\r\n\t\t\tfilterAvailable(date) {\r\n\t\t\t\treturn this.available.filter(site => site == date).length\r\n\t\t\t},\r\n\t\t\tfilterActive(date) {\r\n\t\t\t\treturn this.activeList.filter(site => site == date).length\r\n\t\t\t},\r\n\t\t\tinit() {\r\n\t\t\t\tlet now = new Date();\r\n\t\t\t\tthis.year = now.getFullYear();\r\n\t\t\t\tthis.month = now.getMonth() + 1;\r\n\t\t\t\tthis.day = now.getDate();\r\n\t\t\t\tthis.today = `${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate()}`;\r\n\t\t\t\tthis.activeDate = this.today;\r\n\t\t\t\tthis.min = this.initDate(this.minDate);\r\n\t\t\t\tthis.max = this.initDate(this.maxDate || this.today);\r\n\t\t\t\tthis.startDate = \"\";\r\n\t\t\t\tthis.startYear = 0;\r\n\t\t\t\tthis.startMonth = 0;\r\n\t\t\t\tthis.startDay = 0;\r\n\t\t\t\tthis.endYear = 0;\r\n\t\t\t\tthis.endMonth = 0;\r\n\t\t\t\tthis.endDay = 0;\r\n\t\t\t\tthis.endDate = \"\";\r\n\t\t\t\tthis.isStart = true;\r\n\t\t\t\tthis.changeData();\r\n\t\t\t},\r\n\t\t\t//日期处理\r\n\t\t\tinitDate(date) {\r\n\t\t\t\tlet fdate = date.split('-');\r\n\t\t\t\treturn {\r\n\t\t\t\t\tyear: Number(fdate[0] || 1920),\r\n\t\t\t\t\tmonth: Number(fdate[1] || 1),\r\n\t\t\t\t\tday: Number(fdate[2] || 1)\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\topenDisAbled: function(year, month, day) {\r\n\t\t\t\tlet bool = true;\r\n\t\t\t\tlet date = `${year}/${month}/${day}`;\r\n\t\t\t\t// let today = this.today.replace(/\\-/g, '/');\r\n\t\t\t\tlet min = `${this.min.year}/${this.min.month}/${this.min.day}`;\r\n\t\t\t\tlet max = `${this.max.year}/${this.max.month}/${this.max.day}`;\r\n\t\t\t\tlet timestamp = new Date(date).getTime();\r\n\t\t\t\tif (timestamp >= new Date(min).getTime() && timestamp <= new Date(max).getTime()) {\r\n\t\t\t\t\tbool = false;\r\n\t\t\t\t}\r\n\t\t\t\treturn bool;\r\n\t\t\t},\r\n\t\t\tgenerateArray: function(start, end) {\r\n\t\t\t\treturn Array.from(new Array(end + 1).keys()).slice(start);\r\n\t\t\t},\r\n\t\t\tformatNum: function(num) {\r\n\t\t\t\treturn num < 10 ? '0' + num : num + '';\r\n\t\t\t},\r\n\t\t\t//一个月有多少天\r\n\t\t\tgetMonthDay(year, month) {\r\n\t\t\t\tlet days = new Date(year, month, 0).getDate();\r\n\t\t\t\treturn days;\r\n\t\t\t},\r\n\t\t\tgetWeekday(year, month) {\r\n\t\t\t\tlet date = new Date(`${year}/${month}/01 00:00:00`);\r\n\t\t\t\treturn date.getDay();\r\n\t\t\t},\r\n\t\t\tcheckRange(year) {\r\n\t\t\t\tlet overstep = false;\r\n\t\t\t\tif (year < this.minYear || year > this.maxYear) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: \"日期超出范围啦~\",\r\n\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t})\r\n\t\t\t\t\toverstep = true;\r\n\t\t\t\t}\r\n\t\t\t\treturn overstep;\r\n\t\t\t},\r\n\t\t\tchangeMonthHandler(isAdd) {\r\n\t\t\t\tif (isAdd) {\r\n\t\t\t\t\tlet month = this.month + 1;\r\n\t\t\t\t\tlet year = month > 12 ? this.year + 1 : this.year;\r\n\t\t\t\t\tif (!this.checkRange(year)) {\r\n\t\t\t\t\t\tthis.month = month > 12 ? 1 : month;\r\n\t\t\t\t\t\tthis.year = year;\r\n\t\t\t\t\t\tthis.changeData();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlet month = this.month - 1;\r\n\t\t\t\t\tlet year = month < 1 ? this.year - 1 : this.year;\r\n\t\t\t\t\tif (!this.checkRange(year)) {\r\n\t\t\t\t\t\tthis.month = month < 1 ? 12 : month;\r\n\t\t\t\t\t\tthis.year = year;\r\n\t\t\t\t\t\tthis.changeData();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tchangeYearHandler(isAdd) {\r\n\t\t\t\tlet year = isAdd ? this.year + 1 : this.year - 1;\r\n\t\t\t\tif (!this.checkRange(year)) {\r\n\t\t\t\t\tthis.year = year;\r\n\t\t\t\t\tthis.changeData();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tchangeData() {\r\n\t\t\t\tthis.days = this.getMonthDay(this.year, this.month);\r\n\t\t\t\tthis.daysArr = this.generateArray(1, this.days)\r\n\t\t\t\tthis.weekday = this.getWeekday(this.year, this.month);\r\n\t\t\t\tthis.weekdayArr = this.generateArray(1, this.weekday)\r\n\t\t\t\tthis.showTitle = `${this.year}年${this.month}月`;\r\n\t\t\t\tif (this.isChange && this.mode == 'date') {\r\n\t\t\t\t\tthis.btnFix(true);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tdateClick: function(day) {\r\n\t\t\t\tday += 1;\r\n\t\t\t\tif (!this.openDisAbled(this.year, this.month, day)) {\r\n\t\t\t\t\tthis.day = day;\r\n\t\t\t\t\tlet date = `${this.year}-${this.month}-${day}`;\r\n\t\t\t\t\tif (this.mode == 'date') {\r\n\t\t\t\t\t\tthis.activeDate = date;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tlet compare = new Date(date.replace(/\\-/g, '/')).getTime() < new Date(this.startDate.replace(/\\-/g, '/')).getTime()\r\n\t\t\t\t\t\tif (this.isStart || compare) {\r\n\t\t\t\t\t\t\tthis.startDate = date;\r\n\t\t\t\t\t\t\tthis.startYear = this.year;\r\n\t\t\t\t\t\t\tthis.startMonth = this.month;\r\n\t\t\t\t\t\t\tthis.startDay = this.day;\r\n\t\t\t\t\t\t\tthis.endYear = 0;\r\n\t\t\t\t\t\t\tthis.endMonth = 0;\r\n\t\t\t\t\t\t\tthis.endDay = 0;\r\n\t\t\t\t\t\t\tthis.endDate = \"\";\r\n\t\t\t\t\t\t\tthis.activeDate = \"\";\r\n\t\t\t\t\t\t\tthis.isStart = false;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthis.endDate = date;\r\n\t\t\t\t\t\t\tthis.endYear = this.year;\r\n\t\t\t\t\t\t\tthis.endMonth = this.month;\r\n\t\t\t\t\t\t\tthis.endDay = this.day;\r\n\t\t\t\t\t\t\tthis.isStart = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tclose() {\r\n\t\t\t\t// 修改通过v-model绑定的父组件变量的值为false,从而隐藏日历弹窗\r\n\t\t\t\tthis.$emit('input', false);\r\n\t\t\t},\r\n\t\t\tgetWeekText(date) {\r\n\t\t\t\tdate = new Date(`${date.replace(/\\-/g, '/')} 00:00:00`);\r\n\t\t\t\tlet week = date.getDay();\r\n\t\t\t\treturn '星期' + ['日', '一', '二', '三', '四', '五', '六'][week];\r\n\t\t\t},\r\n\t\t\tbtnFix(show) {\r\n\t\t\t\tif (!show) {\r\n\t\t\t\t\tthis.close();\r\n\t\t\t\t}\r\n\t\t\t\tif (this.mode == 'date') {\r\n\t\t\t\t\tlet arr = this.activeDate.split('-')\r\n\t\t\t\t\tlet year = this.isChange ? this.year : Number(arr[0]);\r\n\t\t\t\t\tlet month = this.isChange ? this.month : Number(arr[1]);\r\n\t\t\t\t\tlet day = this.isChange ? this.day : Number(arr[2]);\r\n\t\t\t\t\t//当前月有多少天\r\n\t\t\t\t\tlet days = this.getMonthDay(year, month);\r\n\t\t\t\t\tlet result = `${year}-${this.formatNum(month)}-${this.formatNum(day)}`;\r\n\t\t\t\t\tlet weekText = this.getWeekText(result);\r\n\t\t\t\t\tlet isToday = false;\r\n\t\t\t\t\tif (`${year}-${month}-${day}` == this.today) {\r\n\t\t\t\t\t\t//今天\r\n\t\t\t\t\t\tisToday = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.$emit('change', {\r\n\t\t\t\t\t\tyear: year,\r\n\t\t\t\t\t\tmonth: month,\r\n\t\t\t\t\t\tday: day,\r\n\t\t\t\t\t\tdays: days,\r\n\t\t\t\t\t\tresult: result,\r\n\t\t\t\t\t\tweek: weekText,\r\n\t\t\t\t\t\tisToday: isToday,\r\n\t\t\t\t\t\t// switch: show //是否是切换年月操作\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (!this.startDate || !this.endDate) return;\r\n\t\t\t\t\tlet startMonth = this.formatNum(this.startMonth);\r\n\t\t\t\t\tlet startDay = this.formatNum(this.startDay);\r\n\t\t\t\t\tlet startDate = `${this.startYear}-${startMonth}-${startDay}`;\r\n\t\t\t\t\tlet startWeek = this.getWeekText(startDate)\r\n\r\n\t\t\t\t\tlet endMonth = this.formatNum(this.endMonth);\r\n\t\t\t\t\tlet endDay = this.formatNum(this.endDay);\r\n\t\t\t\t\tlet endDate = `${this.endYear}-${endMonth}-${endDay}`;\r\n\t\t\t\t\tlet endWeek = this.getWeekText(endDate);\r\n\t\t\t\t\tthis.$emit('change', {\r\n\t\t\t\t\t\tstartYear: this.startYear,\r\n\t\t\t\t\t\tstartMonth: this.startMonth,\r\n\t\t\t\t\t\tstartDay: this.startDay,\r\n\t\t\t\t\t\tstartDate: startDate,\r\n\t\t\t\t\t\tstartWeek: startWeek,\r\n\t\t\t\t\t\tendYear: this.endYear,\r\n\t\t\t\t\t\tendMonth: this.endMonth,\r\n\t\t\t\t\t\tendDay: this.endDay,\r\n\t\t\t\t\t\tendDate: endDate,\r\n\t\t\t\t\t\tendWeek: endWeek\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n\t@import \"../../libs/css/style.components.scss\";\r\n\r\n\t.u-calendar {\r\n\t\tcolor: $u-content-color;\r\n\r\n\t\t&__header {\r\n\t\t\twidth: 100%;\r\n\t\t\tbox-sizing: border-box;\r\n\t\t\tfont-size: 30rpx;\r\n\t\t\tbackground-color: #fff;\r\n\t\t\tcolor: $u-main-color;\r\n\r\n\t\t\t&__text {\r\n\t\t\t\tmargin-top: 30rpx;\r\n\t\t\t\tpadding: 0 60rpx;\r\n\t\t\t\t@include vue-flex;\r\n\t\t\t\tjustify-content: center;\r\n\t\t\t\talign-items: center;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&__action {\r\n\t\t\tpadding: 40rpx 0 40rpx 0;\r\n\r\n\t\t\t&__icon {\r\n\t\t\t\tmargin: 0 16rpx;\r\n\t\t\t}\r\n\r\n\t\t\t&__text {\r\n\t\t\t\tpadding: 0 16rpx;\r\n\t\t\t\tcolor: $u-main-color;\r\n\t\t\t\tfont-size: 32rpx;\r\n\t\t\t\tline-height: 32rpx;\r\n\t\t\t\tfont-weight: bold;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&__week-day {\r\n\t\t\t@include vue-flex;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: center;\r\n\t\t\tpadding: 6px 0;\r\n\t\t\toverflow: hidden;\r\n\r\n\t\t\t&__text {\r\n\t\t\t\tflex: 1;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&__content {\r\n\t\t\twidth: 100%;\r\n\t\t\t@include vue-flex;\r\n\t\t\tflex-wrap: wrap;\r\n\t\t\tpadding: 6px 0;\r\n\t\t\tbox-sizing: border-box;\r\n\t\t\tbackground-color: #fff;\r\n\t\t\tposition: relative;\r\n\r\n\t\t\t&--end-date {\r\n\t\t\t\tborder-top-right-radius: 8rpx;\r\n\t\t\t\tborder-bottom-right-radius: 8rpx;\r\n\t\t\t}\r\n\r\n\t\t\t&--start-date {\r\n\t\t\t\tborder-top-left-radius: 8rpx;\r\n\t\t\t\tborder-bottom-left-radius: 8rpx;\r\n\t\t\t}\r\n\r\n\t\t\t&__item {\r\n\t\t\t\twidth: 14.2857%;\r\n\t\t\t\t@include vue-flex;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\tjustify-content: center;\r\n\t\t\t\tpadding: 6px 0;\r\n\t\t\t\toverflow: hidden;\r\n\t\t\t\tposition: relative;\r\n\t\t\t\tz-index: 2;\r\n\r\n\t\t\t\t&__inner {\r\n\t\t\t\t\theight: 84rpx;\r\n\t\t\t\t\t@include vue-flex;\r\n\t\t\t\t\talign-items: center;\r\n\t\t\t\t\tjustify-content: center;\r\n\t\t\t\t\tflex-direction: column;\r\n\t\t\t\t\tfont-size: 32rpx;\r\n\t\t\t\t\tposition: relative;\r\n\t\t\t\t\tborder-radius: 50%;\r\n\r\n\t\t\t\t\t&__desc {\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\tfont-size: 24rpx;\r\n\t\t\t\t\t\tline-height: 24rpx;\r\n\t\t\t\t\t\ttransform: scale(0.75);\r\n\t\t\t\t\t\ttransform-origin: center center;\r\n\t\t\t\t\t\tposition: absolute;\r\n\t\t\t\t\t\tleft: 0;\r\n\t\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\t\tbottom: 2rpx;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t&__tips {\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\tfont-size: 24rpx;\r\n\t\t\t\t\tline-height: 24rpx;\r\n\t\t\t\t\tposition: absolute;\r\n\t\t\t\t\tleft: 0;\r\n\t\t\t\t\ttransform: scale(0.8);\r\n\t\t\t\t\ttransform-origin: center center;\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\tbottom: 8rpx;\r\n\t\t\t\t\tz-index: 2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t&__bg-month {\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tfont-size: 130px;\r\n\t\t\t\tline-height: 130px;\r\n\t\t\t\tleft: 50%;\r\n\t\t\t\ttop: 50%;\r\n\t\t\t\ttransform: translate(-50%, -50%);\r\n\t\t\t\tcolor: #e4e7ed;\r\n\t\t\t\tz-index: 1;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&__bottom {\r\n\t\t\twidth: 100%;\r\n\t\t\t@include vue-flex;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: center;\r\n\t\t\tflex-direction: column;\r\n\t\t\tbackground-color: #fff;\r\n\t\t\tpadding: 0 40rpx 30rpx;\r\n\t\t\tbox-sizing: border-box;\r\n\t\t\tfont-size: 24rpx;\r\n\t\t\tcolor: $u-tips-color;\r\n\r\n\t\t\t&__choose {\r\n\t\t\t\theight: 50rpx;\r\n\t\t\t}\r\n\r\n\t\t\t&__btn {\r\n\t\t\t\twidth: 100%;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>\r\n","import mod from \"-!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&\"; export default mod; export * from \"-!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&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1631761633134\n var cssReload = require(\"E:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}