@nutui/nutui 2.3.4 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/.DS_Store +0 -0
- package/dist/assets/img/grid.png +0 -0
- package/dist/nutui.css +4 -2
- package/dist/nutui.css.map +1 -1
- package/dist/nutui.js +393 -154
- package/dist/nutui.js.map +1 -1
- package/dist/nutui.min.css +2 -2
- package/dist/nutui.min.js +3 -3
- package/dist/nutui.min.js.map +1 -1
- package/dist/nutui.scss +2 -1
- package/dist/packages/actionsheet/actionsheet.css +1 -1
- package/dist/packages/actionsheet/actionsheet.js +1 -1
- package/dist/packages/address/address.css +1 -1
- package/dist/packages/address/address.js +2 -2
- package/dist/packages/address/address.js.map +1 -1
- package/dist/packages/avatar/avatar.css +1 -1
- package/dist/packages/avatar/avatar.js +2 -2
- package/dist/packages/avatar/avatar.js.map +1 -1
- package/dist/packages/backtop/backtop.css +1 -1
- package/dist/packages/backtop/backtop.js +2 -2
- package/dist/packages/backtop/backtop.js.map +1 -1
- package/dist/packages/badge/badge.css +1 -1
- package/dist/packages/badge/badge.js +2 -2
- package/dist/packages/badge/badge.js.map +1 -1
- package/dist/packages/button/button.css +1 -1
- package/dist/packages/button/button.js +1 -1
- package/dist/packages/buttongroup/buttongroup.css +1 -1
- package/dist/packages/buttongroup/buttongroup.js +1 -1
- package/dist/packages/calendar/calendar.css +1 -1
- package/dist/packages/calendar/calendar.js +2 -2
- package/dist/packages/calendar/calendar.js.map +1 -1
- package/dist/packages/calendar/calendar.vue +1 -1
- package/dist/packages/cell/cell.css +1 -1
- package/dist/packages/cell/cell.js +2 -2
- package/dist/packages/cell/cell.js.map +1 -1
- package/dist/packages/checkbox/checkbox.css +1 -1
- package/dist/packages/checkbox/checkbox.js +2 -2
- package/dist/packages/checkboxgroup/checkboxgroup.css +1 -1
- package/dist/packages/checkboxgroup/checkboxgroup.js +2 -2
- package/dist/packages/checkboxgroup/checkboxgroup.js.map +1 -1
- package/dist/packages/circleprogress/circleprogress.css +1 -1
- package/dist/packages/circleprogress/circleprogress.js +2 -2
- package/dist/packages/circleprogress/circleprogress.js.map +1 -1
- package/dist/packages/col/col.css +1 -1
- package/dist/packages/col/col.js +1 -1
- package/dist/packages/collapse/collapse.css +1 -1
- package/dist/packages/collapse/collapse.js +2 -2
- package/dist/packages/collapse/collapse.js.map +1 -1
- package/dist/packages/collapseitem/collapseitem.css +1 -1
- package/dist/packages/collapseitem/collapseitem.js +2 -2
- package/dist/packages/collapseitem/collapseitem.js.map +1 -1
- package/dist/packages/countdown/countdown.css +1 -1
- package/dist/packages/countdown/countdown.js +2 -2
- package/dist/packages/countdown/countdown.js.map +1 -1
- package/dist/packages/countup/countup.css +2 -2
- package/dist/packages/countup/countup.js +2 -2
- package/dist/packages/countup/countup.js.map +1 -1
- package/dist/packages/countup/countup.scss +2 -1
- package/dist/packages/countup/countup.vue +22 -10
- package/dist/packages/coupon/coupon.css +1 -1
- package/dist/packages/coupon/coupon.js +2 -2
- package/dist/packages/coupon/coupon.js.map +1 -1
- package/dist/packages/datepicker/datepicker.css +1 -1
- package/dist/packages/datepicker/datepicker.js +2 -2
- package/dist/packages/datepicker/datepicker.js.map +1 -1
- package/dist/packages/dialog/dialog.css +1 -1
- package/dist/packages/dialog/dialog.js +2 -2
- package/dist/packages/dialog/dialog.js.map +1 -1
- package/dist/packages/drag/drag.css +1 -1
- package/dist/packages/drag/drag.js +2 -2
- package/dist/packages/drag/drag.js.map +1 -1
- package/dist/packages/elevator/elevator.css +1 -1
- package/dist/packages/elevator/elevator.js +2 -2
- package/dist/packages/elevator/elevator.js.map +1 -1
- package/dist/packages/fixednav/fixednav.css +1 -1
- package/dist/packages/fixednav/fixednav.js +2 -2
- package/dist/packages/fixednav/fixednav.js.map +1 -1
- package/dist/packages/flex/flex.css +1 -1
- package/dist/packages/flex/flex.js +2 -2
- package/dist/packages/flex/flex.js.map +1 -1
- package/dist/packages/icon/icon.css +1 -1
- package/dist/packages/icon/icon.js +1 -1
- package/dist/packages/imagepicker/imagepicker.css +1 -1
- package/dist/packages/imagepicker/imagepicker.js +2 -2
- package/dist/packages/imagepicker/imagepicker.js.map +1 -1
- package/dist/packages/infiniteloading/infiniteloading.css +1 -1
- package/dist/packages/infiniteloading/infiniteloading.js +2 -2
- package/dist/packages/infiniteloading/infiniteloading.js.map +1 -1
- package/dist/packages/infiniteloading/infiniteloading.vue +5 -1
- package/dist/packages/lazyload/lazyload.css +1 -1
- package/dist/packages/lazyload/lazyload.js +2 -2
- package/dist/packages/lazyload/lazyload.js.map +1 -1
- package/dist/packages/leftslip/leftslip.css +1 -1
- package/dist/packages/leftslip/leftslip.js +2 -2
- package/dist/packages/leftslip/leftslip.js.map +1 -1
- package/dist/packages/luckdraw/luckdraw.css +1 -1
- package/dist/packages/luckdraw/luckdraw.js +2 -2
- package/dist/packages/luckdraw/luckdraw.js.map +1 -1
- package/dist/packages/luckycard/luckycard.css +1 -1
- package/dist/packages/luckycard/luckycard.js +2 -2
- package/dist/packages/luckycard/luckycard.js.map +1 -1
- package/dist/packages/magic/magic.css +1 -1
- package/dist/packages/magic/magic.js +2 -2
- package/dist/packages/magic/magic.js.map +1 -1
- package/dist/packages/menu/menu.css +1 -1
- package/dist/packages/menu/menu.js +2 -2
- package/dist/packages/menu/menu.js.map +1 -1
- package/dist/packages/navbar/navbar.css +1 -1
- package/dist/packages/navbar/navbar.js +2 -2
- package/dist/packages/navbar/navbar.js.map +1 -1
- package/dist/packages/ninegrid/animation.scss +223 -0
- package/dist/packages/ninegrid/index.js +8 -0
- package/dist/packages/ninegrid/ninegrid.css +5 -0
- package/dist/packages/ninegrid/ninegrid.js +7 -0
- package/dist/packages/ninegrid/ninegrid.js.map +1 -0
- package/dist/packages/ninegrid/ninegrid.scss +132 -0
- package/dist/packages/ninegrid/ninegrid.vue +144 -0
- package/dist/packages/noticebar/noticebar.css +1 -1
- package/dist/packages/noticebar/noticebar.js +2 -2
- package/dist/packages/noticebar/noticebar.js.map +1 -1
- package/dist/packages/notify/notify.css +1 -1
- package/dist/packages/notify/notify.js +2 -2
- package/dist/packages/notify/notify.js.map +1 -1
- package/dist/packages/numberkeyboard/numberkeyboard.css +1 -1
- package/dist/packages/numberkeyboard/numberkeyboard.js +2 -2
- package/dist/packages/numberkeyboard/numberkeyboard.js.map +1 -1
- package/dist/packages/picker/picker.css +1 -1
- package/dist/packages/picker/picker.js +2 -2
- package/dist/packages/picker/picker.js.map +1 -1
- package/dist/packages/popup/popup.css +1 -1
- package/dist/packages/popup/popup.js +1 -1
- package/dist/packages/price/price.css +1 -1
- package/dist/packages/price/price.js +2 -2
- package/dist/packages/price/price.js.map +1 -1
- package/dist/packages/progress/progress.css +1 -1
- package/dist/packages/progress/progress.js +2 -2
- package/dist/packages/progress/progress.js.map +1 -1
- package/dist/packages/radio/radio.css +1 -1
- package/dist/packages/radio/radio.js +2 -2
- package/dist/packages/radio/radio.js.map +1 -1
- package/dist/packages/radiogroup/radiogroup.css +1 -1
- package/dist/packages/radiogroup/radiogroup.js +2 -2
- package/dist/packages/radiogroup/radiogroup.js.map +1 -1
- package/dist/packages/range/range.css +1 -1
- package/dist/packages/range/range.js +2 -2
- package/dist/packages/range/range.js.map +1 -1
- package/dist/packages/rate/rate.css +1 -1
- package/dist/packages/rate/rate.js +2 -2
- package/dist/packages/rate/rate.js.map +1 -1
- package/dist/packages/row/row.css +1 -1
- package/dist/packages/row/row.js +1 -1
- package/dist/packages/scroller/scroller.css +1 -1
- package/dist/packages/scroller/scroller.js +2 -2
- package/dist/packages/scroller/scroller.js.map +1 -1
- package/dist/packages/scroller/scroller.vue +5 -0
- package/dist/packages/scroller/vertical-scroll.vue +7 -2
- package/dist/packages/searchbar/searchbar.css +1 -1
- package/dist/packages/searchbar/searchbar.js +2 -2
- package/dist/packages/searchbar/searchbar.js.map +1 -1
- package/dist/packages/shortpassword/shortpassword.css +1 -1
- package/dist/packages/shortpassword/shortpassword.js +2 -2
- package/dist/packages/shortpassword/shortpassword.js.map +1 -1
- package/dist/packages/sidenavbar/sidenavbar.css +1 -1
- package/dist/packages/sidenavbar/sidenavbar.js +2 -2
- package/dist/packages/sidenavbar/sidenavbar.js.map +1 -1
- package/dist/packages/sidenavbaritem/sidenavbaritem.css +1 -1
- package/dist/packages/sidenavbaritem/sidenavbaritem.js +1 -1
- package/dist/packages/signature/signature.css +1 -1
- package/dist/packages/signature/signature.js +2 -2
- package/dist/packages/signature/signature.js.map +1 -1
- package/dist/packages/skeleton/skeleton.css +1 -1
- package/dist/packages/skeleton/skeleton.js +2 -2
- package/dist/packages/skeleton/skeleton.js.map +1 -1
- package/dist/packages/slider/slider.css +1 -1
- package/dist/packages/slider/slider.js +2 -2
- package/dist/packages/slider/slider.js.map +1 -1
- package/dist/packages/stepper/stepper.css +1 -1
- package/dist/packages/stepper/stepper.js +2 -2
- package/dist/packages/stepper/stepper.js.map +1 -1
- package/dist/packages/steps/steps.css +1 -1
- package/dist/packages/steps/steps.js +2 -2
- package/dist/packages/steps/steps.js.map +1 -1
- package/dist/packages/subsidenavbar/subsidenavbar.css +1 -1
- package/dist/packages/subsidenavbar/subsidenavbar.js +1 -1
- package/dist/packages/swiper/swiper.css +1 -1
- package/dist/packages/swiper/swiper.js +2 -2
- package/dist/packages/swiper/swiper.js.map +1 -1
- package/dist/packages/switch/switch.css +1 -1
- package/dist/packages/switch/switch.js +2 -2
- package/dist/packages/switch/switch.js.map +1 -1
- package/dist/packages/tab/tab.css +1 -1
- package/dist/packages/tab/tab.js +2 -2
- package/dist/packages/tab/tab.js.map +1 -1
- package/dist/packages/tab/tab.vue +1 -0
- package/dist/packages/tabbar/tabbar.css +1 -1
- package/dist/packages/tabbar/tabbar.js +2 -2
- package/dist/packages/tabbar/tabbar.js.map +1 -1
- package/dist/packages/tabbar/tabbar.vue +1 -1
- package/dist/packages/tabpanel/tabpanel.css +1 -1
- package/dist/packages/tabpanel/tabpanel.js +2 -2
- package/dist/packages/tabpanel/tabpanel.js.map +1 -1
- package/dist/packages/tabselect/tabselect.css +1 -1
- package/dist/packages/tabselect/tabselect.js +2 -2
- package/dist/packages/tabselect/tabselect.js.map +1 -1
- package/dist/packages/textbox/textbox.css +1 -1
- package/dist/packages/textbox/textbox.js +2 -2
- package/dist/packages/textbox/textbox.js.map +1 -1
- package/dist/packages/textinput/textinput.css +1 -1
- package/dist/packages/textinput/textinput.js +2 -2
- package/dist/packages/textinput/textinput.js.map +1 -1
- package/dist/packages/timeline/timeline.css +1 -1
- package/dist/packages/timeline/timeline.js +2 -2
- package/dist/packages/timeline/timeline.js.map +1 -1
- package/dist/packages/timelineitem/timelineitem.css +1 -1
- package/dist/packages/timelineitem/timelineitem.js +2 -2
- package/dist/packages/timelineitem/timelineitem.js.map +1 -1
- package/dist/packages/toast/toast.css +1 -1
- package/dist/packages/toast/toast.js +2 -2
- package/dist/packages/toast/toast.js.map +1 -1
- package/dist/packages/uploader/uploader.css +1 -1
- package/dist/packages/uploader/uploader.js +2 -2
- package/dist/packages/uploader/uploader.js.map +1 -1
- package/dist/packages/video/video.css +1 -1
- package/dist/packages/video/video.js +2 -2
- package/dist/packages/video/video.js.map +1 -1
- package/dist/types/nutui.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://[name]/webpack/universalModuleDefinition","webpack://[name]/webpack/bootstrap","webpack://[name]/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://[name]/./src/packages/avatar/avatar.vue?8071","webpack://[name]/./src/packages/avatar/avatar.vue?46a7","webpack://[name]/src/packages/avatar/avatar.vue","webpack://[name]/./src/packages/avatar/avatar.vue","webpack://[name]/./src/packages/avatar/index.js"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","props","size","type","String","default","shape","bgColor","bgIcon","bgImage","computed","styles","backgroundImage","backgroundColor","iconStyles","isShowText","$slots","data","methods","activeAvatar","$emit","event","_vm","_h","$createElement","_c","_self","class","style","on","staticClass","_v","_t","_e","Avatar","install","Vue","component"],"mappings":";;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,SAAU,GAAIH,GACK,iBAAZC,QACdA,QAAgB,OAAID,IAEpBD,EAAa,OAAIC,IARnB,CASoB,oBAATK,KAAuBA,KAAOC,MAAO,WAChD,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUR,QAGnC,IAAIC,EAASK,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHV,QAAS,IAUV,OANAW,EAAQH,GAAUI,KAAKX,EAAOD,QAASC,EAAQA,EAAOD,QAASO,GAG/DN,EAAOS,GAAI,EAGJT,EAAOD,QA0Df,OArDAO,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAASf,EAASgB,EAAMC,GAC3CV,EAAoBW,EAAElB,EAASgB,IAClCG,OAAOC,eAAepB,EAASgB,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEV,EAAoBgB,EAAI,SAASvB,GACX,oBAAXwB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAepB,EAASwB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAepB,EAAS,aAAc,CAAE0B,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AACE,MAAM,CAAC,aAAc,UAAYL,EAAIpB,KAAM,UAAYoB,EAAIhB,OAAOsB,MAAON,EAAU,OAAEO,GAAG,CAAC,MAAQP,EAAIH,eAAe,CAACM,EAAG,IAAI,CAACK,YAAY,OAAOF,MAAON,EAAc,aAAIA,EAAIS,GAAG,KAAMT,EAAc,WAAEG,EAAG,OAAO,CAACK,YAAY,QAAQ,CAACR,EAAIU,GAAG,YAAY,GAAGV,EAAIW,SACpV,IGUpB,EACA,KACA,KACA,M,eCXFC,EAAOC,QAAU,SAASC,GACxBA,EAAIC,UAAUH,EAAOzF,KAAMyF,IAGdA","file":"avatar/avatar.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"avatar\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"avatar\"] = factory();\n\telse\n\t\troot[\"avatar\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 192);\n","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:['nut-avatar', 'avatar-' + _vm.size, 'avatar-' + _vm.shape],style:(_vm.styles),on:{\"click\":_vm.activeAvatar}},[_c('i',{staticClass:\"icon\",style:(_vm.iconStyles)}),_vm._v(\" \"),(_vm.isShowText)?_c('span',{staticClass:\"text\"},[_vm._t(\"default\")],2):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./avatar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./avatar.vue?vue&type=script&lang=js&\"","<template>\n <div :style=\"styles\" :class=\"['nut-avatar', 'avatar-' + size, 'avatar-' + shape]\" @click=\"activeAvatar\">\n <i class=\"icon\" :style=\"iconStyles\"></i\n ><!--不使用icon组件,1:icon组件没有扩展维护;2:修改该图片不方便-->\n <span class=\"text\" v-if=\"isShowText\"><slot></slot></span>\n </div>\n</template>\n<script>\nexport default {\n name: 'nut-avatar',\n props: {\n size: {\n type: String,\n default: 'normal'\n },\n shape: {\n type: String,\n default: 'round'\n },\n bgColor: {\n type: String,\n default: '#eee'\n },\n bgIcon: {\n type: String,\n default:\n 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAMAAABNTyq8AAAASFBMVEUAAAAXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEdRCe4GAAAAF3RSTlMACSW88uTcQKeYWB7YOTB/xXdlkHFLzVTLks0AAAD+SURBVDjLjZILjoMwDAXzD5Q/LZ3733STbpYskoM6EkhBw7MdWV2JfYDQR9XGWArWtJzoOHGxkZOd56T11GdLzlrBz+rD7GEViwHJKRYgFexTrXp6Qi9IAaZ6miAIEqDrSQOC5L6Rxtp3YpbLdbDU0wKdID3A67Oah4cgpe916r78IUSdBRdKkNgV66H1sSJ3NGzW8x832s1clQ6RbqjO4Wjgzs5eJOxu9GVYs1sSrzrVGMXtGf+mHBxYrUS0BTf8Dj4mp2GNn8sYqHskMAGD2sCqGyxs+bXfSXsO8WDuJAO+bK1IXdH83FKkYHJsoIl6l6tf2s5bxVCSfMsJ8QdwfR4F9ZQcyQAAAABJRU5ErkJggg=='\n },\n bgImage: {\n type: String,\n default: ''\n }\n },\n computed: {\n styles() {\n return {\n backgroundImage: this.bgImage ? `url(${this.bgImage})` : null,\n backgroundColor: `${this.bgColor}`\n };\n },\n iconStyles() {\n return this.bgIcon ? { backgroundImage: `url(${this.bgIcon})` } : null;\n },\n isShowText() {\n return this.$slots.default;\n }\n },\n data() {\n return {};\n },\n methods: {\n activeAvatar() {\n this.$emit('active-avatar', event);\n }\n }\n};\n</script>\n","import { render, staticRenderFns } from \"./avatar.vue?vue&type=template&id=26710d56&\"\nimport script from \"./avatar.vue?vue&type=script&lang=js&\"\nexport * from \"./avatar.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Avatar from './avatar.vue';\nimport './avatar.scss';\n\nAvatar.install = function(Vue) {\n Vue.component(Avatar.name, Avatar);\n};\n\nexport default Avatar;\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://[name]/webpack/universalModuleDefinition","webpack://[name]/webpack/bootstrap","webpack://[name]/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://[name]/./src/packages/avatar/avatar.vue?8071","webpack://[name]/./src/packages/avatar/avatar.vue?46a7","webpack://[name]/src/packages/avatar/avatar.vue","webpack://[name]/./src/packages/avatar/avatar.vue","webpack://[name]/./src/packages/avatar/index.js"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","props","size","type","String","default","shape","bgColor","bgIcon","bgImage","computed","styles","backgroundImage","backgroundColor","iconStyles","isShowText","$slots","data","methods","activeAvatar","$emit","event","_vm","_h","$createElement","_c","_self","class","style","on","staticClass","_v","_t","_e","Avatar","install","Vue","component"],"mappings":";;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,SAAU,GAAIH,GACK,iBAAZC,QACdA,QAAgB,OAAID,IAEpBD,EAAa,OAAIC,IARnB,CASoB,oBAATK,KAAuBA,KAAOC,MAAO,WAChD,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUR,QAGnC,IAAIC,EAASK,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHV,QAAS,IAUV,OANAW,EAAQH,GAAUI,KAAKX,EAAOD,QAASC,EAAQA,EAAOD,QAASO,GAG/DN,EAAOS,GAAI,EAGJT,EAAOD,QA0Df,OArDAO,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAASf,EAASgB,EAAMC,GAC3CV,EAAoBW,EAAElB,EAASgB,IAClCG,OAAOC,eAAepB,EAASgB,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEV,EAAoBgB,EAAI,SAASvB,GACX,oBAAXwB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAepB,EAASwB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eA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AAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,aAAc,UAAYL,EAAIpB,KAAM,UAAYoB,EAAIhB,OAAOsB,MAAON,EAAU,OAAEO,GAAG,CAAC,MAAQP,EAAIH,eAAe,CAACM,EAAG,IAAI,CAACK,YAAY,OAAOF,MAAON,EAAc,aAAIA,EAAIS,GAAG,KAAMT,EAAc,WAAEG,EAAG,OAAO,CAACK,YAAY,QAAQ,CAACR,EAAIU,GAAG,YAAY,GAAGV,EAAIW,SACpV,IGUpB,EACA,KACA,KACA,M,eCXFC,EAAOC,QAAU,SAASC,GACxBA,EAAIC,UAAUH,EAAOzF,KAAMyF,IAGdA","file":"avatar/avatar.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"avatar\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"avatar\"] = factory();\n\telse\n\t\troot[\"avatar\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 193);\n","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:['nut-avatar', 'avatar-' + _vm.size, 'avatar-' + _vm.shape],style:(_vm.styles),on:{\"click\":_vm.activeAvatar}},[_c('i',{staticClass:\"icon\",style:(_vm.iconStyles)}),_vm._v(\" \"),(_vm.isShowText)?_c('span',{staticClass:\"text\"},[_vm._t(\"default\")],2):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./avatar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./avatar.vue?vue&type=script&lang=js&\"","<template>\n <div :style=\"styles\" :class=\"['nut-avatar', 'avatar-' + size, 'avatar-' + shape]\" @click=\"activeAvatar\">\n <i class=\"icon\" :style=\"iconStyles\"></i\n ><!--不使用icon组件,1:icon组件没有扩展维护;2:修改该图片不方便-->\n <span class=\"text\" v-if=\"isShowText\"><slot></slot></span>\n </div>\n</template>\n<script>\nexport default {\n name: 'nut-avatar',\n props: {\n size: {\n type: String,\n default: 'normal'\n },\n shape: {\n type: String,\n default: 'round'\n },\n bgColor: {\n type: String,\n default: '#eee'\n },\n bgIcon: {\n type: String,\n default:\n 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAMAAABNTyq8AAAASFBMVEUAAAAXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEcXIEdRCe4GAAAAF3RSTlMACSW88uTcQKeYWB7YOTB/xXdlkHFLzVTLks0AAAD+SURBVDjLjZILjoMwDAXzD5Q/LZ3733STbpYskoM6EkhBw7MdWV2JfYDQR9XGWArWtJzoOHGxkZOd56T11GdLzlrBz+rD7GEViwHJKRYgFexTrXp6Qi9IAaZ6miAIEqDrSQOC5L6Rxtp3YpbLdbDU0wKdID3A67Oah4cgpe916r78IUSdBRdKkNgV66H1sSJ3NGzW8x832s1clQ6RbqjO4Wjgzs5eJOxu9GVYs1sSrzrVGMXtGf+mHBxYrUS0BTf8Dj4mp2GNn8sYqHskMAGD2sCqGyxs+bXfSXsO8WDuJAO+bK1IXdH83FKkYHJsoIl6l6tf2s5bxVCSfMsJ8QdwfR4F9ZQcyQAAAABJRU5ErkJggg=='\n },\n bgImage: {\n type: String,\n default: ''\n }\n },\n computed: {\n styles() {\n return {\n backgroundImage: this.bgImage ? `url(${this.bgImage})` : null,\n backgroundColor: `${this.bgColor}`\n };\n },\n iconStyles() {\n return this.bgIcon ? { backgroundImage: `url(${this.bgIcon})` } : null;\n },\n isShowText() {\n return this.$slots.default;\n }\n },\n data() {\n return {};\n },\n methods: {\n activeAvatar() {\n this.$emit('active-avatar', event);\n }\n }\n};\n</script>\n","import { render, staticRenderFns } from \"./avatar.vue?vue&type=template&id=26710d56&\"\nimport script from \"./avatar.vue?vue&type=script&lang=js&\"\nexport * from \"./avatar.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Avatar from './avatar.vue';\nimport './avatar.scss';\n\nAvatar.install = function(Vue) {\n Vue.component(Avatar.name, Avatar);\n};\n\nexport default Avatar;\n"],"sourceRoot":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.7 - backtop.css, 78f455d4cba8a497b5f5, Wed Dec 22 2021 20:57:26 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/.nut-backtop{display:none;line-height:0;position:fixed;cursor:pointer;bottom:20px;right:10px;z-index:1111}.nut-backtop.show{display:block}.nut-backtop-main{-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;width:38px;height:38px;background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 31 39'%3E%3Cg fill-rule='evenodd'%3E%3Cpath d='M1.41 0C.63 0 0 .672 0 1.5S.63 3 1.41 3h28.18C30.37 3 31 2.328 31 1.5S30.369 0 29.59 0H1.41zM17 7.5a1.5 1.5 0 00-3 0v30a1.5 1.5 0 103 0v-30zm-8.56 4.94l-8 8a1.5 1.5 0 102.12 2.12l8-8a1.5 1.5 0 10-2.12-2.12z'/%3E%3Cpath d='M16.56 6.44l14 14a1.5 1.5 0 11-2.12 2.12l-14-14a1.5 1.5 0 112.12-2.12z'/%3E%3C/g%3E%3C/svg%3E") no-repeat 50%;background-size:20px 20px;-webkit-border-radius:50%;border-radius:50%;border:2px solid hsla(0,0%,70.6%,.5);-webkit-box-shadow:0 0 2px 3px hsla(0,0%,86.3%,.1);box-shadow:0 0 2px 3px hsla(0,0%,86.3%,.1)}.nut-backtop i{color:#fff;font-size:24px;padding:8px 12px;line-height:0}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.7 - backtop.js, 78f455d4cba8a497b5f5, Wed Dec 22 2021 20:57:26 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("backtop",[],e):"object"==typeof exports?exports.backtop=e():t.backtop=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="./",n(n.s=
|
|
6
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("backtop",[],e):"object"==typeof exports?exports.backtop=e():t.backtop=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="./",n(n.s=189)}({0:function(t,e,n){"use strict";function i(t,e,n,i,o,r,s,l){var c,a="function"==typeof t?t.options:t;if(e&&(a.render=e,a.staticRenderFns=n,a._compiled=!0),i&&(a.functional=!0),r&&(a._scopeId="data-v-"+r),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},a._ssrRegister=c):o&&(c=l?function(){o.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(a.functional){a._injectStyles=c;var u=a.render;a.render=function(t,e){return c.call(e),u(t,e)}}else{var d=a.beforeCreate;a.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:a}}n.d(e,"a",(function(){return i}))},120:function(t,e,n){},189:function(t,e,n){"use strict";n.r(e);var i={name:"nut-backtop",props:{distance:{type:Number,default:200},bottom:{type:Number,default:20},right:{type:Number,default:10},duration:{type:Number,default:1e3},isAnimation:{type:Boolean,default:!0},elId:{type:String,default:""},zIndex:{type:Number,default:1111}},data:function(){return{backTop:!1,scrollEl:window}},mounted:function(){this.init()},activated:function(){this.keepAlive&&(this.keepAlive=!1,this.init())},deactivated:function(){this.keepAlive=!0,this.removeEventListener()},destroyed:function(){this.removeEventListener()},computed:{styles:function(){return{bottom:"".concat(this.bottom,"px"),right:"".concat(this.right,"px"),"z-index":this.zIndex}}},methods:{addEventListener:function(){this.scrollEl.addEventListener("scroll",this.scrollListener,!1),this.scrollEl.addEventListener("resize",this.scrollListener,!1)},removeEventListener:function(){this.scrollEl.removeEventListener("scroll",this.scrollListener,!1),this.scrollEl.removeEventListener("resize",this.scrollListener,!1)},requestAniFrame:function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}},initCancelAniFrame:function(){for(var t=["webkit","moz"],e=0;e<t.length&&!window.requestAnimationFrame;++e)window.cancelAnimationFrame=window[t[e]+"CancelAnimationFrame"]||window[t[e]+"CancelRequestAnimationFrame"]},init:function(){this.elId&&document.getElementById(this.elId)&&(this.scrollEl=document.getElementById(this.elId)),this.addEventListener(),this.initCancelAniFrame()},scrollListener:function(){this.scrollTop=void 0!==this.scrollEl.pageYOffset?this.scrollEl.pageYOffset:this.scrollEl.scrollTop,this.backTop=this.scrollTop>=this.distance},click:function(){this.startTime=+new Date,this.isAnimation&&this.duration>0?this.scrollAnimation():this.scroll(),this.$emit("click")},scrollAnimation:function(){var t=this,e=t.requestAniFrame()((function n(){var i=t.duration-Math.max(0,t.startTime-+new Date+t.duration),o=i*-t.scrollTop/t.duration+t.scrollTop;t.scroll(o),e=t.requestAniFrame()(n),i!=t.duration&&0!=o||window.cancelAnimationFrame(e)}))},scroll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.scrollEl===window?window.scrollTo(0,t):this.scrollEl.scrollTop=t}}},o=n(0),r=Object(o.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["nut-backtop",{show:t.backTop}],style:t.styles,on:{click:function(e){return e.stopPropagation(),t.click.apply(null,arguments)}}},[t._t("default",(function(){return[n("div",{staticClass:"nut-backtop-main"})]}))],2)}),[],!1,null,null,null).exports;n(120);r.install=function(t){t.component(r.name,r)};e.default=r}})}));
|
|
7
7
|
//# sourceMappingURL=backtop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://[name]/webpack/universalModuleDefinition","webpack://[name]/webpack/bootstrap","webpack://[name]/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://[name]/./src/packages/backtop/backtop.vue?24a8","webpack://[name]/./src/packages/backtop/backtop.vue?66df","webpack://[name]/src/packages/backtop/backtop.vue","webpack://[name]/./src/packages/backtop/backtop.vue","webpack://[name]/./src/packages/backtop/index.js"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","props","distance","type","Number","default","bottom","right","duration","isAnimation","Boolean","elId","String","zIndex","data","backTop","scrollEl","window","mounted","init","activated","keepAlive","deactivated","removeEventListener","destroyed","computed","styles","methods","addEventListener","scrollListener","requestAniFrame","initCancelAniFrame","cancelAnimationFrame","vendors","x","document","getElementById","scrollTop","undefined","pageYOffset","click","startTime","Date","scrollAnimation","scroll","$emit","cid","fn","Math","max","y","scrollTo","_vm","_h","$createElement","_c","_self","class","show","style","on","$event","stopPropagation","apply","arguments","_t","staticClass","BackTop","install","Vue","component"],"mappings":";;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,UAAW,GAAIH,GACI,iBAAZC,QACdA,QAAiB,QAAID,IAErBD,EAAc,QAAIC,IARpB,CASoB,oBAATK,KAAuBA,KAAOC,MAAO,WAChD,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUR,QAGnC,IAAIC,EAASK,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHV,QAAS,IAUV,OANAW,EAAQH,GAAUI,KAAKX,EAAOD,QAASC,EAAQA,EAAOD,QAASO,GAG/DN,EAAOS,GAAI,EAGJT,EAAOD,QA0Df,OArDAO,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAASf,EAASgB,EAAMC,GAC3CV,EAAoBW,EAAElB,EAASgB,IAClCG,OAAOC,eAAepB,E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WwC,KAAKC,IAAI,EAAGpH,EAAK4G,WAAa,IAAIC,KAAS7G,EAAK2E,UACpE0C,EAAI,GAAhB,mCACQrH,EAAK+G,OAAOM,GACZJ,EAAMjH,EAAKiG,iBAALjG,CAAuBkH,GACzB3F,GAAKvB,EAAK2E,UAAiB,GAAL0C,GACxBjC,OAAOe,qBAAqBc,OAIlCF,OArDJ,WAqDA,+DACU9G,KAAKkF,WAAaC,OACpBA,OAAOkC,SAAS,EAAGD,GAEnBpH,KAAKkF,SAASqB,UAAYa,K,OClHnB,EAXC,YACd,GHRW,WAAa,IAAIE,EAAItH,KAASuH,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,cAAe,CAAEC,KAAMN,EAAIrC,UAAW4C,MAAOP,EAAU,OAAEQ,GAAG,CAAC,MAAQ,SAASC,GAAiC,OAAzBA,EAAOC,kBAAyBV,EAAIZ,MAAMuB,MAAM,KAAMC,cAAc,CAACZ,EAAIa,GAAG,WAAU,WAAW,MAAO,CAACV,EAAG,MAAM,CAACW,YAAY,0BAAyB,KACzU,IGUpB,EACA,KACA,KACA,M,eCXFC,EAAQC,QAAU,SAASC,GACzBA,EAAIC,UAAUH,EAAQ1H,KAAM0H,IAGfA","file":"backtop/backtop.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"backtop\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"backtop\"] = factory();\n\telse\n\t\troot[\"backtop\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 188);\n","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:['nut-backtop', { show: _vm.backTop }],style:(_vm.styles),on:{\"click\":function($event){$event.stopPropagation();return _vm.click.apply(null, arguments)}}},[_vm._t(\"default\",function(){return [_c('div',{staticClass:\"nut-backtop-main\"})]})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./backtop.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./backtop.vue?vue&type=script&lang=js&\"","<template>\n <div :class=\"['nut-backtop', { show: backTop }]\" :style=\"styles\" @click.stop=\"click\">\n <slot>\n <div class=\"nut-backtop-main\"></div>\n </slot>\n </div>\n</template>\n<script>\nexport default {\n name: 'nut-backtop',\n props: {\n distance: {\n type: Number,\n default: 200\n },\n bottom: {\n type: Number,\n default: 20\n },\n right: {\n type: Number,\n default: 10\n },\n duration: {\n type: Number,\n default: 1000\n },\n isAnimation: {\n type: Boolean,\n default: true\n },\n elId: {\n type: String,\n default: ''\n },\n zIndex: {\n type: Number,\n default: 1111\n }\n },\n data() {\n return {\n backTop: false,\n scrollEl: window\n };\n },\n mounted() {\n this.init();\n },\n\n activated() {\n if (this.keepAlive) {\n this.keepAlive = false;\n this.init();\n }\n },\n\n deactivated() {\n this.keepAlive = true;\n this.removeEventListener();\n },\n\n destroyed() {\n this.removeEventListener();\n },\n\n computed: {\n styles() {\n return {\n bottom: `${this.bottom}px`,\n right: `${this.right}px`,\n 'z-index': this.zIndex\n };\n }\n },\n methods: {\n addEventListener() {\n this.scrollEl.addEventListener('scroll', this.scrollListener, false);\n this.scrollEl.addEventListener('resize', this.scrollListener, false);\n },\n removeEventListener() {\n this.scrollEl.removeEventListener('scroll', this.scrollListener, false);\n this.scrollEl.removeEventListener('resize', this.scrollListener, false);\n },\n requestAniFrame() {\n return (\n window.requestAnimationFrame ||\n window.webkitRequestAnimationFrame ||\n window.mozRequestAnimationFrame ||\n function(callback) {\n window.setTimeout(callback, 1000 / 60);\n }\n );\n },\n initCancelAniFrame() {\n let vendors = ['webkit', 'moz'];\n for (let x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {\n window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] || window[vendors[x] + 'CancelRequestAnimationFrame'];\n }\n },\n init() {\n if (this.elId && document.getElementById(this.elId)) {\n this.scrollEl = document.getElementById(this.elId);\n }\n this.addEventListener();\n this.initCancelAniFrame();\n },\n scrollListener() {\n this.scrollTop = this.scrollEl.pageYOffset !== undefined ? this.scrollEl.pageYOffset : this.scrollEl.scrollTop;\n this.backTop = this.scrollTop >= this.distance;\n },\n click() {\n this.startTime = +new Date();\n this.isAnimation && this.duration > 0 ? this.scrollAnimation() : this.scroll();\n this.$emit('click');\n },\n scrollAnimation() {\n const self = this;\n var cid = self.requestAniFrame()(function fn() {\n var t = self.duration - Math.max(0, self.startTime - +new Date() + self.duration);\n var y = (t * -self.scrollTop) / self.duration + self.scrollTop;\n self.scroll(y);\n cid = self.requestAniFrame()(fn);\n if (t == self.duration || y == 0) {\n window.cancelAnimationFrame(cid);\n }\n });\n },\n scroll(y = 0) {\n if (this.scrollEl === window) {\n window.scrollTo(0, y);\n } else {\n this.scrollEl.scrollTop = y;\n }\n }\n }\n};\n</script>\n","import { render, staticRenderFns } from \"./backtop.vue?vue&type=template&id=5ea5b2b8&\"\nimport script from \"./backtop.vue?vue&type=script&lang=js&\"\nexport * from \"./backtop.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import BackTop from './backtop.vue';\nimport './backtop.scss';\n\nBackTop.install = function(Vue) {\n Vue.component(BackTop.name, BackTop);\n};\n\nexport default BackTop;\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://[name]/webpack/universalModuleDefinition","webpack://[name]/webpack/bootstrap","webpack://[name]/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://[name]/./src/packages/backtop/backtop.vue?24a8","webpack://[name]/./src/packages/backtop/backtop.vue?66df","webpack://[name]/src/packages/backtop/backtop.vue","webpack://[name]/./src/packages/backtop/backtop.vue","webpack://[name]/./src/packages/backtop/index.js"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","props","distance","type","Number","default","bottom","right","duration","isAnimation","Boolean","elId","String","zIndex","data","backTop","scrollEl","window","mounted","init","activated","keepAlive","deactivated","removeEventListener","destroyed","computed","styles","methods","addEventListener","scrollListener","requestAniFrame","initCancelAniFrame","cancelAnimationFrame","vendors","x","document","getElementById","scrollTop","undefined","pageYOffset","click","startTime","Date","scrollAnimation","scroll","$emit","cid","fn","Math","max","y","scrollTo","_vm","_h","$createElement","_c","_self","class","show","style","on","$event","stopPropagation","apply","arguments","_t","staticClass","BackTop","install","Vue","component"],"mappings":";;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,UAAW,GAAIH,GACI,iBAAZC,QACdA,QAAiB,QAAID,IAErBD,EAAc,QAAIC,IARpB,CASoB,oBAATK,KAAuBA,KAAOC,MAAO,WAChD,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUR,QAGnC,IAAIC,EAASK,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHV,QAAS,IAUV,OANAW,EAAQH,GAAUI,KAAKX,EAAOD,QAASC,EAAQA,EAAOD,QAASO,GAG/DN,EAAOS,GAAI,EAGJT,EAAOD,QA0Df,OArDAO,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAASf,EAASgB,EAAMC,GAC3CV,EAAoBW,EAAElB,EAASgB,IAClCG,OAAOC,eAAepB,EAASgB,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEV,EAAoBgB,EAAI,SAASvB,GACX,oBAAXwB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAepB,EAASwB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAepB,EAAS,aAAc,CAAE0B,OAAO,KAQvDnB,EAAoBoB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQnB,EAAoBmB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFAxB,EAAoBgB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,C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,KAAMN,EAAIrC,UAAW4C,MAAOP,EAAU,OAAEQ,GAAG,CAAC,MAAQ,SAASC,GAAiC,OAAzBA,EAAOC,kBAAyBV,EAAIZ,MAAMuB,MAAM,KAAMC,cAAc,CAACZ,EAAIa,GAAG,WAAU,WAAW,MAAO,CAACV,EAAG,MAAM,CAACW,YAAY,0BAAyB,KACzU,IGUpB,EACA,KACA,KACA,M,eCXFC,EAAQC,QAAU,SAASC,GACzBA,EAAIC,UAAUH,EAAQ1H,KAAM0H,IAGfA","file":"backtop/backtop.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"backtop\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"backtop\"] = factory();\n\telse\n\t\troot[\"backtop\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 189);\n","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:['nut-backtop', { show: _vm.backTop }],style:(_vm.styles),on:{\"click\":function($event){$event.stopPropagation();return _vm.click.apply(null, arguments)}}},[_vm._t(\"default\",function(){return [_c('div',{staticClass:\"nut-backtop-main\"})]})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./backtop.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./backtop.vue?vue&type=script&lang=js&\"","<template>\n <div :class=\"['nut-backtop', { show: backTop }]\" :style=\"styles\" @click.stop=\"click\">\n <slot>\n <div class=\"nut-backtop-main\"></div>\n </slot>\n </div>\n</template>\n<script>\nexport default {\n name: 'nut-backtop',\n props: {\n distance: {\n type: Number,\n default: 200\n },\n bottom: {\n type: Number,\n default: 20\n },\n right: {\n type: Number,\n default: 10\n },\n duration: {\n type: Number,\n default: 1000\n },\n isAnimation: {\n type: Boolean,\n default: true\n },\n elId: {\n type: String,\n default: ''\n },\n zIndex: {\n type: Number,\n default: 1111\n }\n },\n data() {\n return {\n backTop: false,\n scrollEl: window\n };\n },\n mounted() {\n this.init();\n },\n\n activated() {\n if (this.keepAlive) {\n this.keepAlive = false;\n this.init();\n }\n },\n\n deactivated() {\n this.keepAlive = true;\n this.removeEventListener();\n },\n\n destroyed() {\n this.removeEventListener();\n },\n\n computed: {\n styles() {\n return {\n bottom: `${this.bottom}px`,\n right: `${this.right}px`,\n 'z-index': this.zIndex\n };\n }\n },\n methods: {\n addEventListener() {\n this.scrollEl.addEventListener('scroll', this.scrollListener, false);\n this.scrollEl.addEventListener('resize', this.scrollListener, false);\n },\n removeEventListener() {\n this.scrollEl.removeEventListener('scroll', this.scrollListener, false);\n this.scrollEl.removeEventListener('resize', this.scrollListener, false);\n },\n requestAniFrame() {\n return (\n window.requestAnimationFrame ||\n window.webkitRequestAnimationFrame ||\n window.mozRequestAnimationFrame ||\n function(callback) {\n window.setTimeout(callback, 1000 / 60);\n }\n );\n },\n initCancelAniFrame() {\n let vendors = ['webkit', 'moz'];\n for (let x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {\n window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] || window[vendors[x] + 'CancelRequestAnimationFrame'];\n }\n },\n init() {\n if (this.elId && document.getElementById(this.elId)) {\n this.scrollEl = document.getElementById(this.elId);\n }\n this.addEventListener();\n this.initCancelAniFrame();\n },\n scrollListener() {\n this.scrollTop = this.scrollEl.pageYOffset !== undefined ? this.scrollEl.pageYOffset : this.scrollEl.scrollTop;\n this.backTop = this.scrollTop >= this.distance;\n },\n click() {\n this.startTime = +new Date();\n this.isAnimation && this.duration > 0 ? this.scrollAnimation() : this.scroll();\n this.$emit('click');\n },\n scrollAnimation() {\n const self = this;\n var cid = self.requestAniFrame()(function fn() {\n var t = self.duration - Math.max(0, self.startTime - +new Date() + self.duration);\n var y = (t * -self.scrollTop) / self.duration + self.scrollTop;\n self.scroll(y);\n cid = self.requestAniFrame()(fn);\n if (t == self.duration || y == 0) {\n window.cancelAnimationFrame(cid);\n }\n });\n },\n scroll(y = 0) {\n if (this.scrollEl === window) {\n window.scrollTo(0, y);\n } else {\n this.scrollEl.scrollTop = y;\n }\n }\n }\n};\n</script>\n","import { render, staticRenderFns } from \"./backtop.vue?vue&type=template&id=5ea5b2b8&\"\nimport script from \"./backtop.vue?vue&type=script&lang=js&\"\nexport * from \"./backtop.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import BackTop from './backtop.vue';\nimport './backtop.scss';\n\nBackTop.install = function(Vue) {\n Vue.component(BackTop.name, BackTop);\n};\n\nexport default BackTop;\n"],"sourceRoot":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.7 - badge.css, 78f455d4cba8a497b5f5, Wed Dec 22 2021 20:57:26 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/.nut-badge{position:relative;display:inline-block}.nut-badge sup{position:absolute;height:18px;min-width:8px;line-height:18px;padding:0 5px;background-color:#fff;text-align:center;border:1px solid #f0250f;color:#f0250f;font-size:10px;-webkit-border-radius:10px;border-radius:10px;z-index:9998}.nut-badge .nut-badge__content{-webkit-transform:translateY(-50%) translateX(100%);-ms-transform:translateY(-50%) translateX(100%);transform:translateY(-50%) translateX(100%)}.nut-badge .is-dot{width:10px;height:10px;padding:0;right:5px;-webkit-border-radius:10px;border-radius:10px;background:#f0250f}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.7 - badge.js, 78f455d4cba8a497b5f5, Wed Dec 22 2021 20:57:26 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("badge",[],t):"object"==typeof exports?exports.badge=t():e.badge=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="./",n(n.s=
|
|
6
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("badge",[],t):"object"==typeof exports?exports.badge=t():e.badge=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="./",n(n.s=179)}({0:function(e,t,n){"use strict";function o(e,t,n,o,r,i,u,s){var a,f="function"==typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),o&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),u?(a=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(u)},f._ssrRegister=a):r&&(a=s?function(){r.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:r),a)if(f.functional){f._injectStyles=a;var d=f.render;f.render=function(e,t){return a.call(t),d(e,t)}}else{var c=f.beforeCreate;f.beforeCreate=c?[].concat(c,a):[a]}return{exports:e,options:f}}n.d(t,"a",(function(){return o}))},105:function(e,t,n){},179:function(e,t,n){"use strict";n.r(t);var o={name:"nut-badge",props:{value:{type:[String,Number]},max:{type:Number,default:1e4},isDot:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:10}},data:function(){return{stl:{top:this.top,right:this.right,zIndex:this.zIndex}}},computed:{content:function(){if(!this.isDot){var e=this.value,t=this.max;return"number"==typeof e&&"number"==typeof t&&t<e?"".concat(t,"+"):e}}}},r=n(0),i=Object(r.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"nut-badge"},[e._t("default"),e._v(" "),n("sup",{directives:[{name:"show",rawName:"v-show",value:!e.hidden&&(e.content||e.isDot),expression:"!hidden && (content || isDot)"}],staticClass:"nut-badge__content",class:{"is-dot":e.isDot},style:e.stl,domProps:{textContent:e._s(e.content)}})],2)}),[],!1,null,null,null).exports;n(105);i.install=function(e){e.component(i.name,i)};t.default=i}})}));
|
|
7
7
|
//# sourceMappingURL=badge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://[name]/webpack/universalModuleDefinition","webpack://[name]/webpack/bootstrap","webpack://[name]/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://[name]/./src/packages/badge/badge.vue?548b","webpack://[name]/./src/packages/badge/badge.vue?4c31","webpack://[name]/src/packages/badge/badge.vue","webpack://[name]/./src/packages/badge/badge.vue","webpack://[name]/./src/packages/badge/index.js"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","props","type","String","Number","max","default","isDot","Boolean","hidden","top","right","zIndex","data","stl","computed","content","_vm","_h","$createElement","_c","_self","staticClass","_t","_v","directives","rawName","expression","class","style","domProps","_s","Badge","install","Vue","component"],"mappings":";;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,QAAS,GAAIH,GACM,iBAAZC,QACdA,QAAe,MAAID,IAEnBD,EAAY,MAAIC,IARlB,CASoB,oBAATK,KAAuBA,KAAOC,MAAO,WAChD,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUR,QAGnC,IAAIC,EAASK,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHV,QAAS,IAUV,OANAW,EAAQH,GAAUI,KAAKX,EAAOD,QAASC,EAAQA,EAAOD,QAASO,GAG/DN,EAAOS,GAAI,EAGJT,EAAOD,QA0Df,OArDAO,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAASf,EAASgB,EAAMC,GAC3CV,EAAoBW,EAAElB,EAASgB,IAClCG,OAAOC,eAAepB,EAASgB,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEV,EAAoBgB,EAAI,SAASvB,GACX,oBAAXwB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAepB,EAASwB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,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F,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAa,CAACL,EAAIM,GAAG,WAAWN,EAAIO,GAAG,KAAKJ,EAAG,MAAM,CAACK,WAAW,CAAC,CAAChF,KAAK,OAAOiF,QAAQ,SAASvE,OAAQ8D,EAAIR,SAAWQ,EAAID,SAAWC,EAAIV,OAAQoB,WAAW,kCAAkCL,YAAY,qBAAqBM,MAAM,CAAE,SAAUX,EAAIV,OAAQsB,MAAOZ,EAAO,IAAEa,SAAS,CAAC,YAAcb,EAAIc,GAAGd,EAAID,aAAa,KAC9Z,IGUpB,EACA,KACA,KACA,M,eCXFgB,EAAMC,QAAU,SAASC,GACvBA,EAAIC,UAAUH,EAAMvF,KAAMuF,IAGbA","file":"badge/badge.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"badge\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"badge\"] = factory();\n\telse\n\t\troot[\"badge\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 178);\n","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"nut-badge\"},[_vm._t(\"default\"),_vm._v(\" \"),_c('sup',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.hidden && (_vm.content || _vm.isDot)),expression:\"!hidden && (content || isDot)\"}],staticClass:\"nut-badge__content\",class:{ 'is-dot': _vm.isDot },style:(_vm.stl),domProps:{\"textContent\":_vm._s(_vm.content)}})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./badge.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./badge.vue?vue&type=script&lang=js&\"","<template>\n <div class=\"nut-badge\">\n <slot></slot>\n <sup v-show=\"!hidden && (content || isDot)\" v-text=\"content\" class=\"nut-badge__content\" :class=\"{ 'is-dot': isDot }\" :style=\"stl\"> </sup>\n </div>\n</template>\n<script>\nexport default {\n name: 'nut-badge',\n props: {\n value: {\n type: [String, Number]\n },\n max: {\n type: Number,\n default: 10000\n },\n isDot: {\n type: Boolean,\n default: false\n },\n hidden: {\n type: Boolean,\n default: false\n },\n top: {\n type: String,\n default: '0'\n },\n right: {\n type: String,\n default: '0'\n },\n zIndex: {\n type: Number,\n default: 10\n }\n },\n data() {\n return {\n stl: {\n top: this.top,\n right: this.right,\n zIndex: this.zIndex\n }\n };\n },\n computed: {\n content() {\n if (this.isDot) return;\n const value = this.value;\n const max = this.max;\n if (typeof value === 'number' && typeof max === 'number') {\n return max < value ? `${max}+` : value;\n }\n return value;\n }\n }\n};\n</script>\n","import { render, staticRenderFns } from \"./badge.vue?vue&type=template&id=592dead7&\"\nimport script from \"./badge.vue?vue&type=script&lang=js&\"\nexport * from \"./badge.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Badge from './badge.vue';\nimport './badge.scss';\n\nBadge.install = function(Vue) {\n Vue.component(Badge.name, Badge);\n};\n\nexport default Badge;\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://[name]/webpack/universalModuleDefinition","webpack://[name]/webpack/bootstrap","webpack://[name]/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://[name]/./src/packages/badge/badge.vue?548b","webpack://[name]/./src/packages/badge/badge.vue?4c31","webpack://[name]/src/packages/badge/badge.vue","webpack://[name]/./src/packages/badge/badge.vue","webpack://[name]/./src/packages/badge/index.js"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","props","type","String","Number","max","default","isDot","Boolean","hidden","top","right","zIndex","data","stl","computed","content","_vm","_h","$createElement","_c","_self","staticClass","_t","_v","directives","rawName","expression","class","style","domProps","_s","Badge","install","Vue","component"],"mappings":";;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,QAAS,GAAIH,GACM,iBAAZC,QACdA,QAAe,MAAID,IAEnBD,EAAY,MAAIC,IARlB,CASoB,oBAATK,KAAuBA,KAAOC,MAAO,WAChD,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,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,CAACC,OAAQC,SAEjBC,IAAK,CACHH,KAAME,OACNE,QAAS,KAEXC,MAAO,CACLL,KAAMM,QACNF,SAAS,GAEXG,OAAQ,CACNP,KAAMM,QACNF,SAAS,GAEXI,IAAK,CACHR,KAAMC,OACNG,QAAS,KAEXK,MAAO,CACLT,KAAMC,OACNG,QAAS,KAEXM,OAAQ,CACNV,KAAME,OACNE,QAAS,KAGbO,KA/BF,WAgCI,MAAO,CACLC,IAAK,CACHJ,IAAK5E,KAAK4E,IACVC,MAAO7E,KAAK6E,MACZC,OAAQ9E,KAAK8E,UAInBG,SAAU,CACRC,QADJ,WAEM,IAAIlF,KAAKyE,MAAT,CACA,IAAN,aACA,WACM,MAAqB,iBAAVpD,GAAqC,iBAARkD,GAC/BA,EAAMlD,EAAQ,GAA7B,cAEaA,M,OCrCE,EAXC,YACd,GHRW,WAAa,IAAI8D,EAAInF,KAASoF,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAa,CAACL,EAAIM,GAAG,WAAWN,EAAIO,GAAG,KAAKJ,EAAG,MAAM,CAACK,WAAW,CAAC,CAAChF,KAAK,OAAOiF,QAAQ,SAASvE,OAAQ8D,EAAIR,SAAWQ,EAAID,SAAWC,EAAIV,OAAQoB,WAAW,kCAAkCL,YAAY,qBAAqBM,MAAM,CAAE,SAAUX,EAAIV,OAAQsB,MAAOZ,EAAO,IAAEa,SAAS,CAAC,YAAcb,EAAIc,GAAGd,EAAID,aAAa,KAC9Z,IGUpB,EACA,KACA,KACA,M,eCXFgB,EAAMC,QAAU,SAASC,GACvBA,EAAIC,UAAUH,EAAMvF,KAAMuF,IAGbA","file":"badge/badge.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"badge\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"badge\"] = factory();\n\telse\n\t\troot[\"badge\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 179);\n","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"nut-badge\"},[_vm._t(\"default\"),_vm._v(\" \"),_c('sup',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.hidden && (_vm.content || _vm.isDot)),expression:\"!hidden && (content || isDot)\"}],staticClass:\"nut-badge__content\",class:{ 'is-dot': _vm.isDot },style:(_vm.stl),domProps:{\"textContent\":_vm._s(_vm.content)}})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./badge.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./badge.vue?vue&type=script&lang=js&\"","<template>\n <div class=\"nut-badge\">\n <slot></slot>\n <sup v-show=\"!hidden && (content || isDot)\" v-text=\"content\" class=\"nut-badge__content\" :class=\"{ 'is-dot': isDot }\" :style=\"stl\"> </sup>\n </div>\n</template>\n<script>\nexport default {\n name: 'nut-badge',\n props: {\n value: {\n type: [String, Number]\n },\n max: {\n type: Number,\n default: 10000\n },\n isDot: {\n type: Boolean,\n default: false\n },\n hidden: {\n type: Boolean,\n default: false\n },\n top: {\n type: String,\n default: '0'\n },\n right: {\n type: String,\n default: '0'\n },\n zIndex: {\n type: Number,\n default: 10\n }\n },\n data() {\n return {\n stl: {\n top: this.top,\n right: this.right,\n zIndex: this.zIndex\n }\n };\n },\n computed: {\n content() {\n if (this.isDot) return;\n const value = this.value;\n const max = this.max;\n if (typeof value === 'number' && typeof max === 'number') {\n return max < value ? `${max}+` : value;\n }\n return value;\n }\n }\n};\n</script>\n","import { render, staticRenderFns } from \"./badge.vue?vue&type=template&id=592dead7&\"\nimport script from \"./badge.vue?vue&type=script&lang=js&\"\nexport * from \"./badge.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Badge from './badge.vue';\nimport './badge.scss';\n\nBadge.install = function(Vue) {\n Vue.component(Badge.name, Badge);\n};\n\nexport default Badge;\n"],"sourceRoot":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.7 - button.css, 78f455d4cba8a497b5f5, Wed Dec 22 2021 20:57:26 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/.nut-button{cursor:pointer;height:40px;padding:0 40px;outline:none;font-size:14px;color:#fff;background:-o-linear-gradient(135deg,#ff4f18 0,#f20000 100%);background:linear-gradient(315deg,#ff4f18,#f20000);border:none;-webkit-box-sizing:border-box;box-sizing:border-box}.nut-button[disabled]{cursor:not-allowed;background:#dadada;color:#f6f6f6}.nut-button .txt-icon{vertical-align:text-top;width:16px;height:16px;margin-right:5px;color:#f0250f}.nut-button.red{background:#fff;border:1px solid #f0250f;color:#f0250f}.nut-button.gray{background:#f6f6f6;color:#2d2d2d}.nut-button.light{color:#2d2d2d;background:#fff;border:1px solid #dadada}.nut-button.lightred{background:rgba(240,37,15,.05);color:#2d2d2d;border:none}.nut-button.primary{background:#f0250f;color:#fff}.nut-button.default{background:#fff;color:#2d2d2d;border:1px solid #ababab}.nut-button.actived{background:rgba(240,37,15,.05);color:#f0250f;border:1px solid #f0250f}.nut-button.dashed{background:#fff;color:#2d2d2d;border:1px dashed #dadada}.nut-button.block{width:100%;-webkit-border-radius:0;border-radius:0}.nut-button.small{height:30px;padding:0 15px;font-size:12px}.nut-button.no-txt-small{width:30px;padding:0}.nut-button.no-txt-small .txt-icon{margin:0}.nut-button.no-txt{width:40px;padding:0}.nut-button.no-txt .txt-icon{margin:0}.nut-button.circle{-webkit-border-radius:50px;border-radius:50px}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.7 - button.js, 78f455d4cba8a497b5f5, Wed Dec 22 2021 20:57:26 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.7 - buttongroup.css, 78f455d4cba8a497b5f5, Wed Dec 22 2021 20:57:26 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/.nut-buttongroup{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%}.nut-buttongroup.circle{-webkit-border-radius:50px;border-radius:50px}.nut-buttongroup.circle .nut-button:first-child{-webkit-border-top-left-radius:50px;border-top-left-radius:50px;-webkit-border-bottom-left-radius:50px;border-bottom-left-radius:50px}.nut-buttongroup.circle .nut-button:last-child{-webkit-border-top-right-radius:50px;border-top-right-radius:50px;-webkit-border-bottom-right-radius:50px;border-bottom-right-radius:50px}.nut-buttongroup.menu{height:50px;font-size:12px}.nut-buttongroup .nut-button{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-flex:1;border:1px solid transparent}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.7 - buttongroup.js, 78f455d4cba8a497b5f5, Wed Dec 22 2021 20:57:26 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.7 - calendar.css, 78f455d4cba8a497b5f5, Wed Dec 22 2021 20:57:26 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/@-webkit-keyframes nutSlideUpIn{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes nutSlideUpIn{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes nutSlideUpOut{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes nutSlideUpOut{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.nutSlideUp-enter-active,.nutSlideUp-leave-active,.nutSlideUpIn,.nutSlideUpOut{-webkit-animation-duration:.25s;animation-duration:.25s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.445,.05,.55,.95);animation-timing-function:cubic-bezier(.445,.05,.55,.95)}.nutSlideUp-enter-active,.nutSlideUpIn{-webkit-animation-name:nutSlideUpIn;animation-name:nutSlideUpIn}.nutSlideUp-leave-active,.nutSlideUpOut{-webkit-animation-name:nutSlideUpOut;animation-name:nutSlideUpOut}@-webkit-keyframes nutSlideRightIn{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes nutSlideRightOut{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.nutSlideRight-enter-active,.nutSlideRight-leave-active,.nutSlideRightIn,.nutSlideRightOut{-webkit-animation-duration:.25s;animation-duration:.25s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,.085,.68,.53);animation-timing-function:cubic-bezier(.55,.085,.68,.53)}.nutSlideRight-enter-active,.nutSlideRightIn{-webkit-animation-name:nutSlideRightIn;animation-name:nutSlideRightIn}.nutSlideRight-leave-active,.nutSlideRightOut{-webkit-animation-name:nutSlideRightOut;animation-name:nutSlideRightOut}.nut-calendar{position:fixed;bottom:0;height:100%;font-size:14px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding-top:72px;overflow:hidden;z-index:1000001}.nut-calendar,.nut-calendar-control{top:0;left:0;width:100%;background-color:#fff}.nut-calendar-control{position:absolute;height:70px;text-align:center;z-index:1}.nut-calendar-control .nut-calendar-cancel-btn,.nut-calendar-control .nut-calendar-confirm-btn{width:60px;color:#f0250f;position:absolute;top:0;line-height:40px}.nut-calendar-control .nut-calendar-confirm-btn{right:0}.nut-calendar-control .nut-calendar-cancel-btn{left:0}.nut-calendar-control .nut-calendar-title{margin:0 60px;line-height:40px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.nut-calendar-control .nut-calendar-week{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:30px;text-align:center;line-height:30px}.nut-calendar-control .nut-calendar-week span{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.nut-calendar-control .nut-calendar-week span:first-child,.nut-calendar-control .nut-calendar-week span:last-child{color:#f0250f}.nut-calendar-months{width:100%;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.nut-calendar-months .nut-calendar-months-panel{padding-bottom:10px;position:relative;width:100%;height:auto}.nut-calendar-months .nut-calendar-loading-tip{height:50px;line-height:50px;text-align:center;position:absolute;top:-50px;left:0;right:0;color:#848484;font-size:12px}.nut-calendar-months .nut-calendar-month-title{height:30px;line-height:30px;text-align:center;background-color:#f6f6f6}.nut-calendar-months .nut-calendar-month-con{overflow:hidden}.nut-calendar-months .nut-calendar-month-con .nut-calendar-month-day{float:left;width:14.28%;height:56px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.nut-calendar-months .nut-calendar-month-con .nut-calendar-month-day-active{background-color:#f0250f;color:#fff}.nut-calendar-months .nut-calendar-month-con .nut-calendar-month-day-disabled,.nut-calendar-months .nut-calendar-month-con .nut-calendar-month-day-disabled span{color:#dadada}.nut-calendar-months .nut-calendar-month-con .nut-calendar-month-day-choose{background-color:#fcd3cf;color:#fff}.nut-calendar-months .nut-calendar-month-con .nut-calendar-month-day span{padding:3px 0}.nut-calendar-months .nut-calendar-month-con .nut-calendar-month-day .nut-calendar-day-tip{font-size:12px}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.7 - calendar.js, 78f455d4cba8a497b5f5, Wed Dec 22 2021 20:57:26 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("calendar",["vue"],e):"object"==typeof exports?exports.calendar=e(require("vue")):t.calendar=e(t.Vue)}("undefined"!=typeof self?self:this,(function(t){return function(t){var e={};function a(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}return a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)a.d(n,r,function(e){return t[e]}.bind(null,r));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="./",a(a.s=171)}({0:function(t,e,a){"use strict";function n(t,e,a,n,r,s,i,o){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=a,u._compiled=!0),n&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),i?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=c):r&&(c=o?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}a.d(e,"a",(function(){return n}))},1:function(e,a){e.exports=t},10:function(t,e,a){"use strict";a(6);var n=a(2),r=a.n(n),s=a(1),i=a.n(s);i.a.config.lang="zn-CH";var o={lang:{okBtnTxt:"确 定",cancelBtnTxt:"取 消",calendar:{loadPrevMonth:"加载上一个月",noMoreMonth:"没有更早月份~",start:"开始",end:"结束",title:"选择日期",week:"日,一,二,三,四,五,六",monthTitle:"{year}年{month}月",year:"年",month:"月",day:"日",hour:"时",minute:"分",second:"秒",morning:"上午",afternoon:"下午"},menu:{resetBtnTxt:"重置"},searchbar:{placeText:"请输入内容...",textInfo:"搜索"},shortpassword:{tip1:"输入数字密码",tip2:"忘记密码"},steps:{step:"步骤",stepDesc:"步骤描述"},uploader:{xmlError:"对不起,您的浏览器不支持本组件!",typeError:"不支持上传该类型文件",limitError:"文件大小超过限制"}}},c={},u=!1,l=function(){var t=Object.getPrototypeOf(this||i.a).$t;if("function"==typeof t&&i.a.locale)return u||(u=!0,i.a.locale(i.a.config.lang,r()("zn-CH"===i.a.config.lang?o:{},i.a.locale(i.a.config.lang)||{},c))),t.apply(this,arguments)};function h(t,e){var a=l.apply(this,arguments);if(null!=a)return a;var n=r()({},"zn-CH"===i.a.config.lang?o:{},c),s=t&&t.split(".")||[],u=null;if(s.length)for(var h=0;h<s.length;h++){var d=s[h];if(!d||!n[d]){u=null;break}u=n=n[d]}return p(u,e)}function p(t,e){var a=t&&t.match(/{.+?}/g);return a&&e&&(a=a.map((function(t){return t.replace(/\{\s*(\w+|\d+).*?\}/,"$1")}))).forEach((function(a,n){var r=new RegExp("{\\s*"+a+"\\s*(?:=\\s*(\\S*?))?\\s*?}","g");t=t.replace(r,(function(t,n){return"function"==(r=e[a],Object.prototype.toString.call(r).toLowerCase().match(/\s(\w+)/)[1])?e[a]():void 0!==e[a]?e[a]:n||t;var r}))})),t}e.a={methods:{nutTranslate:function(){return h.apply(this,arguments)}}}},13:function(t,e,a){var n=a(9);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},171:function(t,e,a){"use strict";a.r(e);var n=a(4),r=a.n(n),s=a(7),i={name:"nut-calendar",mixins:[a(10).a],props:{type:{type:String,default:"one"},animation:{type:String,default:"nutSlideUp"},isAutoBackFill:{type:Boolean,default:!1},isOpenRangeSelect:{type:Boolean,default:!1},isVisible:{type:Boolean,default:!1},title:{type:String},defaultValue:{type:String|Array,default:null},startDate:{type:String,default:s.a.getDay(0)},endDate:{type:String,default:s.a.getDay(365)}},watch:{isVisible:function(t,e){this.childIsVisible=t},defaultValue:{handler:function(t,e){e&&this.resetRender()},immediate:!0}},data:function(){return{childIsVisible:!1,currDate:null,week:this.nutTranslate("lang.calendar.week").split(","),unLoadPrev:!1,unLoadNext:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0},transformY:0,scrollDistance:0,defaultData:null,chooseData:[],monthsData:[],dayPrefix:"nut-calendar-month-day"}},computed:{isRange:function(){return"range"===this.type}},methods:{isActive:function(t,e){return this.isRange&&"curr"==t.type&&"nut-calendar-month-day-active"==this.getClass(t,e)},isStartTip:function(t,e){return!!this.isActive(t,e)&&this.isStart(this.getCurrDate(t,e))},isEndTip:function(t,e){return this.isActive(t,e)},getCurrData:function(t){var e="prev"==t?this.monthsData[0]:this.monthsData[this.monthsData.length-1],a=parseInt(e.curData[0]),n=parseInt(e.curData[1].toString().replace(/^0/,""));switch(t){case"prev":1==n&&(a-=1),n=1==n?12:--n;break;case"next":12==n&&(a+=1),n=12==n?1:++n}return[a,s.a.getNumTwoBit(n),e.curData[2]]},getDaysStatus:function(t,e){return"prev"==e&&t>=7&&(t-=7),Array.from(Array(t),(function(t,a){return{day:a+1,type:e}}))},getMonth:function(t,e){var a=s.a.getMonthPreDay(t[0],t[1]),n=s.a.getMonthDays(t[0],t[1]),i={curData:t,title:this.nutTranslate("lang.calendar.monthTitle",{year:t[0],month:t[1]}),monthData:[].concat(r()(this.getDaysStatus(a,"prev")),r()(this.getDaysStatus(n,"curr")))};"next"==e?this.endData&&s.a.compareDate("".concat(this.endData[0],"-").concat(this.endData[1],"-").concat(s.a.getMonthDays(this.endData[0],this.endData[1])),"".concat(t[0],"-").concat(t[1],"-").concat(t[2]))?this.unLoadNext=!0:this.monthsData.push(i):this.startData&&s.a.compareDate("".concat(t[0],"-").concat(t[1],"-").concat(t[2]),"".concat(this.startData[0],"-").concat(this.startData[1],"-01"))?this.unLoadPrev=!0:this.monthsData.unshift(i)},getCurrDate:function(t,e,a){return a?e.curData[3]+"-"+e.curData[4]+"-"+s.a.getNumTwoBit(t.day):e.curData[0]+"-"+e.curData[1]+"-"+s.a.getNumTwoBit(t.day)},isStart:function(t){return s.a.isEqual(this.currDate[0],t)},isEnd:function(t){return s.a.isEqual(this.currDate[1],t)},splitDate:function(t){return t.split("-")},getClass:function(t,e,a){var n=this.getCurrDate(t,e,a);return"curr"==t.type?!this.isRange&&s.a.isEqual(this.currDate,n)||this.isRange&&(this.isStart(n)||this.isEnd(n))?"".concat(this.dayPrefix,"-active"):this.startDate&&s.a.compareDate(n,this.startDate)||this.endDate&&s.a.compareDate(this.endDate,n)?"".concat(this.dayPrefix,"-disabled"):this.isRange&2==this.currDate.length&&s.a.compareDate(this.currDate[0],n)&&s.a.compareDate(n,this.currDate[1])?"".concat(this.dayPrefix,"-choose"):null:"".concat(this.dayPrefix,"-disabled")},chooseDay:function(t,e,a,n){if(this.getClass(t,e,n)!="".concat(this.dayPrefix,"-disabled")){var i=r()(e.curData);(i=n?i.splice(3):i.splice(0,3))[2]="number"==typeof t.day?s.a.getNumTwoBit(t.day):t.day,i[3]="".concat(i[0],"-").concat(i[1],"-").concat(i[2]),i[4]=s.a.getWhatDay(i[0],i[1],i[2]),this.isRange?(2==this.currDate.length?this.currDate=[i[3]]:s.a.compareDate(this.currDate[0],i[3])?this.currDate.push(i[3]):this.currDate.unshift(i[3]),2!=this.chooseData.length&&this.chooseData.length?s.a.compareDate(this.chooseData[3],i[3])?this.chooseData=[r()(this.chooseData),r()(i)]:this.chooseData=[r()(i),r()(this.chooseData)]:this.chooseData=r()(i)):(this.currDate=i[3],this.chooseData=r()(i)),this.isAutoBackFill&&!a&&this.confirm(),this.$emit("choose-click",this.chooseData)}},confirm:function(){(this.isRange&&2==this.chooseData.length||!this.isRange)&&(this.$emit("choose",this.chooseData),this.childIsVisible=!1,this.$emit("update:is-visible",!1))},resetRender:function(){this.chooseData.splice(0),this.monthsData.splice(0),this.scrollDistance=0,this.translateY=0,this.setTransform(this.scrollDistance),this.initData()},closeActionSheet:function(){this.childIsVisible=!1,this.$emit("update:is-visible",!1),this.$emit("close"),this.resetRender()},touchStart:function(t){var e=t.changedTouches[0];this.touchParams.startY=e.pageY,this.touchParams.startTime=t.timestamp||Date.now(),this.transformY=this.scrollDistance},touchMove:function(t){var e=t.changedTouches[0];this.touchParams.lastY=e.pageY,this.touchParams.lastTime=t.timestamp||Date.now();var a=this.touchParams.lastY-this.touchParams.startY;if(Math.abs(a)<5)return!1;this.setMove(a)},touchEnd:function(t){var e=t.changedTouches[0];this.touchParams.lastY=e.pageY,this.touchParams.lastTime=t.timestamp||Date.now();var a=this.touchParams.lastY-this.touchParams.startY;if(Math.abs(a)<5)return!1;var n=a+this.transformY,r=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,s=this.$refs.months.offsetHeight;n>0?this.getMonth(this.getCurrData("prev"),"prev"):n<2*r-s&&(this.getMonth(this.getCurrData("next"),"next"),Math.abs(a)>=300&&this.getMonth(this.getCurrData("next"),"next"));var i=this.touchParams.lastTime-this.touchParams.startTime;i<=300?(a*=2,i+=1e3,this.setMove(a,"end",i)):this.setMove(a,"end")},setTransform:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;this.$refs.months.style.webkitTransition="end"===e?"transform ".concat(a,"ms cubic-bezier(0.19, 1, 0.22, 1)"):"",this.$refs.months.style.webkitTransform="translateY(".concat(t,"px)"),this.scrollDistance=t},setMove:function(t,e,a){var n=t+this.transformY,r=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,s=this.$refs.months.offsetHeight;if("end"===e){n>0&&(n=0),n<0&&n<-s+r-70&&(n=-s+r-70),s<=r&&1==this.monthsData.length&&(n=0);var i=n;this.setTransform(i,e,a)}else n>0&&n>100&&(n=100),n<-s+r-170&&this.monthsData.length>1&&(n=-s+r-170),n<0&&n<-100&&1==this.monthsData.length&&(n=-100),this.setTransform(n)},initData:function(){this.startData=this.startDate?this.splitDate(this.startDate):null,this.endData=this.endDate?this.splitDate(this.endDate):null,this.defaultValue?this.currDate=this.isRange?r()(this.defaultValue):this.defaultValue:this.currDate=this.isRange?[s.a.date2Str(new Date),s.a.getDay(2)]:s.a.date2Str(new Date),this.isRange?(this.startDate&&s.a.compareDate(this.currDate[0],this.startDate)&&this.currDate.splice(0,1,this.startDate),this.endDate&&s.a.compareDate(this.endDate,this.currDate[1])&&this.currDate.splice(1,1,this.endDate),this.defaultData=[].concat(r()(this.splitDate(this.currDate[0])),r()(this.splitDate(this.currDate[1])))):(this.startDate&&s.a.compareDate(this.currDate,this.startDate)?this.currDate=this.startDate:this.endDate&&!s.a.compareDate(this.currDate,this.endDate)&&(this.currDate=this.endDate),this.defaultData=r()(this.splitDate(this.currDate))),this.getMonth(this.defaultData,"next");var t=1;do{this.getMonth(this.getCurrData("next"),"next")}while(t++<4);this.isRange?(this.chooseDay({day:this.defaultData[2],type:"curr"},this.monthsData[0],!0),this.chooseDay({day:this.defaultData[5],type:"curr"},this.monthsData[0],!0,!0)):this.chooseDay({day:this.defaultData[2],type:"curr"},this.monthsData[0],!0)}},mounted:function(){this.initData()}},o=a(0),c=Object(o.a)(i,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition",{attrs:{name:t.animation}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.childIsVisible,expression:"childIsVisible"}],staticClass:"nut-calendar"},[a("div",{staticClass:"nut-calendar-control"},["range"==t.type&&t.currDate&&2==t.currDate.length||"range"!=t.type?a("span",{staticClass:"nut-calendar-confirm-btn",on:{click:t.confirm}},[t._v(t._s(t.nutTranslate("lang.okBtnTxt")))]):t._e(),t._v(" "),a("span",{staticClass:"nut-calendar-cancel-btn",on:{click:t.closeActionSheet}},[t._v(t._s(t.nutTranslate("lang.cancelBtnTxt")))]),t._v(" "),a("div",{staticClass:"nut-calendar-title"},[t._v(t._s(t.title||t.nutTranslate("lang.calendar.title")))]),t._v(" "),a("div",{staticClass:"nut-calendar-week"},t._l(t.week,(function(e,n){return a("span",{key:n},[t._v(t._s(e))])})),0)]),t._v(" "),a("div",{staticClass:"nut-calendar-months",on:{touchstart:function(e){return e.stopPropagation(),t.touchStart.apply(null,arguments)},touchmove:function(e){return e.stopPropagation(),e.preventDefault(),t.touchMove.apply(null,arguments)},touchend:function(e){return e.stopPropagation(),t.touchEnd.apply(null,arguments)}}},[a("div",{ref:"months",staticClass:"nut-calendar-months-panel"},[a("div",{staticClass:"nut-calendar-loading-tip"},[t._v(t._s(t.unLoadPrev?t.nutTranslate("lang.calendar.noMoreMonth"):t.nutTranslate("lang.calendar.loadPrevMonth")))]),t._v(" "),t._l(t.monthsData,(function(e,n){return a("div",{key:n,staticClass:"nut-calendar-month"},[a("div",{staticClass:"nut-calendar-month-title"},[t._v(t._s(e.title))]),t._v(" "),a("div",{staticClass:"nut-calendar-month-con"},[a("div",{staticClass:"nut-calendar-month-item"},[t._l(e.monthData,(function(n,r){return[a("div",{key:r,staticClass:"nut-calendar-month-day",class:t.getClass(n,e),on:{click:function(a){return t.chooseDay(n,e)}}},[a("span",[t._v(t._s("curr"==n.type?n.day:""))]),t._v(" "),t.isStartTip(n,e)?a("span",{staticClass:"nut-calendar-day-tip"},[t._v(t._s(t.nutTranslate("lang.calendar.start")))]):t.isEndTip(n,e)?a("span",{staticClass:"nut-calendar-day-tip"},[t._v(t._s(t.nutTranslate("lang.calendar.end")))]):t._e()])]}))],2)])])}))],2)])])])}),[],!1,null,null,null).exports;a(87);c.install=function(t){t.component(c.name,c)};e.default=c},2:function(t,e){function a(){return t.exports=a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},t.exports.default=t.exports,t.exports.__esModule=!0,a.apply(this,arguments)}t.exports=a,t.exports.default=t.exports,t.exports.__esModule=!0},4:function(t,e,a){var n=a(46),r=a(47),s=a(13),i=a(48);t.exports=function(t){return n(t)||r(t)||s(t)||i()},t.exports.default=t.exports,t.exports.__esModule=!0},46:function(t,e,a){var n=a(9);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.default=t.exports,t.exports.__esModule=!0},47:function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0},48:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},6:function(t,e){function a(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=a=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=a=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),a(e)}t.exports=a,t.exports.default=t.exports,t.exports.__esModule=!0},7:function(t,e,a){"use strict";var n={isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getWhatDay:function(t,e,a){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(t+"/"+e+"/"+a).getDay()]},getMonthPreDay:function(t,e){var a=new Date(t+"/"+e+"/01").getDay();return 0==a&&(a=7),a},getMonthDays:function(t,e){return/^0/.test(e)&&(e=e.split("")[1]),[0,31,this.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},getNumTwoBit:function(t){return((t=Number(t))>9?"":"0")+t},date2Str:function(t,e){return"string"==typeof t?t:(e=e||"-",[t.getFullYear(),this.getNumTwoBit(t.getMonth()+1),this.getNumTwoBit(t.getDate())].join(e))},getDay:function(t){t=t||0;var e=new Date,a=864e5*t;return e=new Date(e.getTime()+a),this.date2Str(e)},timestampToDate:function(t){var e=new Date(t);return e.getFullYear()+"-"+getNumTwoBit(e.getMonth()+1)+"-"+getNumTwoBit(e.getDate())},compareDate:function(t,e){return!(new Date(t.replace("-","/").replace("-","/"))>=new Date(e.replace("-","/").replace("-","/")))},compareDateArr:function(t,e){var a=new Date;a.setFullYear(parseInt(t[0]),parseInt(t[1])-1,parseInt(t[2])),a.setHours(parseInt(t[3]),parseInt(t[4]));var n=new Date;return n.setFullYear(parseInt(e[0]),parseInt(e[1])-1,parseInt(e[2])),n.setHours(parseInt(e[3]),parseInt(e[4])),!(a>=n)},isEqual:function(t,e){return new Date(t).getTime()==new Date(e).getTime()},getDateArr:function(t){return[this.getYear(t),this.getMonth(t),this.getDate(t),this.getHour(t),this.getMinute(t)]},isDateString:function(t){return/\d{4}(\-|\/|.)\d{1,2}\1\d{1,2}/.test(t)||/^([01][0-9]|2[0-3])(:[0-5][0-9]){1,2}$/.test(t)},getYear:function(t){return this.isDateString(t)?t.split(" ")[0].split(/-|\/|\./)[0]:t.getFullYear()},getMonth:function(t){return this.isDateString(t)?t.split(" ")[0].split(/-|\/|\./)[1]:t.getMonth()+1},getDate:function(t){return this.isDateString(t)?t.split(" ")[0].split(/-|\/|\./)[2]:t.getDate()},getHour:function(t){return this.isDateString(t)?(t.split(" ")[1]||"00:00:00").split(":")[0]:t.getHours()},getMinute:function(t){return this.isDateString(t)?(t.split(" ")[1]||"00:00:00").split(":")[1]:t.getMinutes()}};e.a=n},87:function(t,e,a){},9:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n},t.exports.default=t.exports,t.exports.__esModule=!0}})}));
|
|
6
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("calendar",["vue"],e):"object"==typeof exports?exports.calendar=e(require("vue")):t.calendar=e(t.Vue)}("undefined"!=typeof self?self:this,(function(t){return function(t){var e={};function a(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}return a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)a.d(n,r,function(e){return t[e]}.bind(null,r));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="./",a(a.s=172)}({0:function(t,e,a){"use strict";function n(t,e,a,n,r,s,i,o){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=a,u._compiled=!0),n&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),i?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=c):r&&(c=o?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}a.d(e,"a",(function(){return n}))},1:function(e,a){e.exports=t},10:function(t,e,a){"use strict";a(7);var n=a(2),r=a.n(n),s=a(1),i=a.n(s);i.a.config.lang="zn-CH";var o={lang:{okBtnTxt:"确 定",cancelBtnTxt:"取 消",calendar:{loadPrevMonth:"加载上一个月",noMoreMonth:"没有更早月份~",start:"开始",end:"结束",title:"选择日期",week:"日,一,二,三,四,五,六",monthTitle:"{year}年{month}月",year:"年",month:"月",day:"日",hour:"时",minute:"分",second:"秒",morning:"上午",afternoon:"下午"},menu:{resetBtnTxt:"重置"},searchbar:{placeText:"请输入内容...",textInfo:"搜索"},shortpassword:{tip1:"输入数字密码",tip2:"忘记密码"},steps:{step:"步骤",stepDesc:"步骤描述"},uploader:{xmlError:"对不起,您的浏览器不支持本组件!",typeError:"不支持上传该类型文件",limitError:"文件大小超过限制"}}},c={},u=!1,l=function(){var t=Object.getPrototypeOf(this||i.a).$t;if("function"==typeof t&&i.a.locale)return u||(u=!0,i.a.locale(i.a.config.lang,r()("zn-CH"===i.a.config.lang?o:{},i.a.locale(i.a.config.lang)||{},c))),t.apply(this,arguments)};function h(t,e){var a=l.apply(this,arguments);if(null!=a)return a;var n=r()({},"zn-CH"===i.a.config.lang?o:{},c),s=t&&t.split(".")||[],u=null;if(s.length)for(var h=0;h<s.length;h++){var d=s[h];if(!d||!n[d]){u=null;break}u=n=n[d]}return p(u,e)}function p(t,e){var a=t&&t.match(/{.+?}/g);return a&&e&&(a=a.map((function(t){return t.replace(/\{\s*(\w+|\d+).*?\}/,"$1")}))).forEach((function(a,n){var r=new RegExp("{\\s*"+a+"\\s*(?:=\\s*(\\S*?))?\\s*?}","g");t=t.replace(r,(function(t,n){return"function"==(r=e[a],Object.prototype.toString.call(r).toLowerCase().match(/\s(\w+)/)[1])?e[a]():void 0!==e[a]?e[a]:n||t;var r}))})),t}e.a={methods:{nutTranslate:function(){return h.apply(this,arguments)}}}},13:function(t,e,a){var n=a(9);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},172:function(t,e,a){"use strict";a.r(e);var n=a(4),r=a.n(n),s=a(6),i={name:"nut-calendar",mixins:[a(10).a],props:{type:{type:String,default:"one"},animation:{type:String,default:"nutSlideUp"},isAutoBackFill:{type:Boolean,default:!1},isOpenRangeSelect:{type:Boolean,default:!1},isVisible:{type:Boolean,default:!1},title:{type:String},defaultValue:{type:String|Array,default:null},startDate:{type:String,default:s.a.getDay(0)},endDate:{type:String,default:s.a.getDay(365)}},watch:{isVisible:function(t,e){this.childIsVisible=t},defaultValue:{handler:function(t,e){e&&this.resetRender()},immediate:!0}},data:function(){return{childIsVisible:!1,currDate:null,week:this.nutTranslate("lang.calendar.week").split(","),unLoadPrev:!1,unLoadNext:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0},transformY:0,scrollDistance:0,defaultData:null,chooseData:[],monthsData:[],dayPrefix:"nut-calendar-month-day"}},computed:{isRange:function(){return"range"===this.type}},methods:{isActive:function(t,e){return this.isRange&&"curr"==t.type&&"nut-calendar-month-day-active"==this.getClass(t,e)},isStartTip:function(t,e){return!!this.isActive(t,e)&&this.isStart(this.getCurrDate(t,e))},isEndTip:function(t,e){return this.isActive(t,e)},getCurrData:function(t){var e="prev"==t?this.monthsData[0]:this.monthsData[this.monthsData.length-1],a=parseInt(e.curData[0]),n=parseInt(e.curData[1].toString().replace(/^0/,""));switch(t){case"prev":1==n&&(a-=1),n=1==n?12:--n;break;case"next":12==n&&(a+=1),n=12==n?1:++n}return[a,s.a.getNumTwoBit(n),s.a.getMonthDays(a,n)]},getDaysStatus:function(t,e){return"prev"==e&&t>=7&&(t-=7),Array.from(Array(t),(function(t,a){return{day:a+1,type:e}}))},getMonth:function(t,e){var a=s.a.getMonthPreDay(t[0],t[1]),n=s.a.getMonthDays(t[0],t[1]),i={curData:t,title:this.nutTranslate("lang.calendar.monthTitle",{year:t[0],month:t[1]}),monthData:[].concat(r()(this.getDaysStatus(a,"prev")),r()(this.getDaysStatus(n,"curr")))};"next"==e?this.endData&&s.a.compareDate("".concat(this.endData[0],"-").concat(this.endData[1],"-").concat(s.a.getMonthDays(this.endData[0],this.endData[1])),"".concat(t[0],"-").concat(t[1],"-").concat(t[2]))?this.unLoadNext=!0:this.monthsData.push(i):this.startData&&s.a.compareDate("".concat(t[0],"-").concat(t[1],"-").concat(t[2]),"".concat(this.startData[0],"-").concat(this.startData[1],"-01"))?this.unLoadPrev=!0:this.monthsData.unshift(i)},getCurrDate:function(t,e,a){return a?e.curData[3]+"-"+e.curData[4]+"-"+s.a.getNumTwoBit(t.day):e.curData[0]+"-"+e.curData[1]+"-"+s.a.getNumTwoBit(t.day)},isStart:function(t){return s.a.isEqual(this.currDate[0],t)},isEnd:function(t){return s.a.isEqual(this.currDate[1],t)},splitDate:function(t){return t.split("-")},getClass:function(t,e,a){var n=this.getCurrDate(t,e,a);return"curr"==t.type?!this.isRange&&s.a.isEqual(this.currDate,n)||this.isRange&&(this.isStart(n)||this.isEnd(n))?"".concat(this.dayPrefix,"-active"):this.startDate&&s.a.compareDate(n,this.startDate)||this.endDate&&s.a.compareDate(this.endDate,n)?"".concat(this.dayPrefix,"-disabled"):this.isRange&2==this.currDate.length&&s.a.compareDate(this.currDate[0],n)&&s.a.compareDate(n,this.currDate[1])?"".concat(this.dayPrefix,"-choose"):null:"".concat(this.dayPrefix,"-disabled")},chooseDay:function(t,e,a,n){if(this.getClass(t,e,n)!="".concat(this.dayPrefix,"-disabled")){var i=r()(e.curData);(i=n?i.splice(3):i.splice(0,3))[2]="number"==typeof t.day?s.a.getNumTwoBit(t.day):t.day,i[3]="".concat(i[0],"-").concat(i[1],"-").concat(i[2]),i[4]=s.a.getWhatDay(i[0],i[1],i[2]),this.isRange?(2==this.currDate.length?this.currDate=[i[3]]:s.a.compareDate(this.currDate[0],i[3])?this.currDate.push(i[3]):this.currDate.unshift(i[3]),2!=this.chooseData.length&&this.chooseData.length?s.a.compareDate(this.chooseData[3],i[3])?this.chooseData=[r()(this.chooseData),r()(i)]:this.chooseData=[r()(i),r()(this.chooseData)]:this.chooseData=r()(i)):(this.currDate=i[3],this.chooseData=r()(i)),this.isAutoBackFill&&!a&&this.confirm(),this.$emit("choose-click",this.chooseData)}},confirm:function(){(this.isRange&&2==this.chooseData.length||!this.isRange)&&(this.$emit("choose",this.chooseData),this.childIsVisible=!1,this.$emit("update:is-visible",!1))},resetRender:function(){this.chooseData.splice(0),this.monthsData.splice(0),this.scrollDistance=0,this.translateY=0,this.setTransform(this.scrollDistance),this.initData()},closeActionSheet:function(){this.childIsVisible=!1,this.$emit("update:is-visible",!1),this.$emit("close"),this.resetRender()},touchStart:function(t){var e=t.changedTouches[0];this.touchParams.startY=e.pageY,this.touchParams.startTime=t.timestamp||Date.now(),this.transformY=this.scrollDistance},touchMove:function(t){var e=t.changedTouches[0];this.touchParams.lastY=e.pageY,this.touchParams.lastTime=t.timestamp||Date.now();var a=this.touchParams.lastY-this.touchParams.startY;if(Math.abs(a)<5)return!1;this.setMove(a)},touchEnd:function(t){var e=t.changedTouches[0];this.touchParams.lastY=e.pageY,this.touchParams.lastTime=t.timestamp||Date.now();var a=this.touchParams.lastY-this.touchParams.startY;if(Math.abs(a)<5)return!1;var n=a+this.transformY,r=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,s=this.$refs.months.offsetHeight;n>0?this.getMonth(this.getCurrData("prev"),"prev"):n<2*r-s&&(this.getMonth(this.getCurrData("next"),"next"),Math.abs(a)>=300&&this.getMonth(this.getCurrData("next"),"next"));var i=this.touchParams.lastTime-this.touchParams.startTime;i<=300?(a*=2,i+=1e3,this.setMove(a,"end",i)):this.setMove(a,"end")},setTransform:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;this.$refs.months.style.webkitTransition="end"===e?"transform ".concat(a,"ms cubic-bezier(0.19, 1, 0.22, 1)"):"",this.$refs.months.style.webkitTransform="translateY(".concat(t,"px)"),this.scrollDistance=t},setMove:function(t,e,a){var n=t+this.transformY,r=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,s=this.$refs.months.offsetHeight;if("end"===e){n>0&&(n=0),n<0&&n<-s+r-70&&(n=-s+r-70),s<=r&&1==this.monthsData.length&&(n=0);var i=n;this.setTransform(i,e,a)}else n>0&&n>100&&(n=100),n<-s+r-170&&this.monthsData.length>1&&(n=-s+r-170),n<0&&n<-100&&1==this.monthsData.length&&(n=-100),this.setTransform(n)},initData:function(){this.startData=this.startDate?this.splitDate(this.startDate):null,this.endData=this.endDate?this.splitDate(this.endDate):null,this.defaultValue?this.currDate=this.isRange?r()(this.defaultValue):this.defaultValue:this.currDate=this.isRange?[s.a.date2Str(new Date),s.a.getDay(2)]:s.a.date2Str(new Date),this.isRange?(this.startDate&&s.a.compareDate(this.currDate[0],this.startDate)&&this.currDate.splice(0,1,this.startDate),this.endDate&&s.a.compareDate(this.endDate,this.currDate[1])&&this.currDate.splice(1,1,this.endDate),this.defaultData=[].concat(r()(this.splitDate(this.currDate[0])),r()(this.splitDate(this.currDate[1])))):(this.startDate&&s.a.compareDate(this.currDate,this.startDate)?this.currDate=this.startDate:this.endDate&&!s.a.compareDate(this.currDate,this.endDate)&&(this.currDate=this.endDate),this.defaultData=r()(this.splitDate(this.currDate))),this.getMonth(this.defaultData,"next");var t=1;do{this.getMonth(this.getCurrData("next"),"next")}while(t++<4);this.isRange?(this.chooseDay({day:this.defaultData[2],type:"curr"},this.monthsData[0],!0),this.chooseDay({day:this.defaultData[5],type:"curr"},this.monthsData[0],!0,!0)):this.chooseDay({day:this.defaultData[2],type:"curr"},this.monthsData[0],!0)}},mounted:function(){this.initData()}},o=a(0),c=Object(o.a)(i,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition",{attrs:{name:t.animation}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.childIsVisible,expression:"childIsVisible"}],staticClass:"nut-calendar"},[a("div",{staticClass:"nut-calendar-control"},["range"==t.type&&t.currDate&&2==t.currDate.length||"range"!=t.type?a("span",{staticClass:"nut-calendar-confirm-btn",on:{click:t.confirm}},[t._v(t._s(t.nutTranslate("lang.okBtnTxt")))]):t._e(),t._v(" "),a("span",{staticClass:"nut-calendar-cancel-btn",on:{click:t.closeActionSheet}},[t._v(t._s(t.nutTranslate("lang.cancelBtnTxt")))]),t._v(" "),a("div",{staticClass:"nut-calendar-title"},[t._v(t._s(t.title||t.nutTranslate("lang.calendar.title")))]),t._v(" "),a("div",{staticClass:"nut-calendar-week"},t._l(t.week,(function(e,n){return a("span",{key:n},[t._v(t._s(e))])})),0)]),t._v(" "),a("div",{staticClass:"nut-calendar-months",on:{touchstart:function(e){return e.stopPropagation(),t.touchStart.apply(null,arguments)},touchmove:function(e){return e.stopPropagation(),e.preventDefault(),t.touchMove.apply(null,arguments)},touchend:function(e){return e.stopPropagation(),t.touchEnd.apply(null,arguments)}}},[a("div",{ref:"months",staticClass:"nut-calendar-months-panel"},[a("div",{staticClass:"nut-calendar-loading-tip"},[t._v(t._s(t.unLoadPrev?t.nutTranslate("lang.calendar.noMoreMonth"):t.nutTranslate("lang.calendar.loadPrevMonth")))]),t._v(" "),t._l(t.monthsData,(function(e,n){return a("div",{key:n,staticClass:"nut-calendar-month"},[a("div",{staticClass:"nut-calendar-month-title"},[t._v(t._s(e.title))]),t._v(" "),a("div",{staticClass:"nut-calendar-month-con"},[a("div",{staticClass:"nut-calendar-month-item"},[t._l(e.monthData,(function(n,r){return[a("div",{key:r,staticClass:"nut-calendar-month-day",class:t.getClass(n,e),on:{click:function(a){return t.chooseDay(n,e)}}},[a("span",[t._v(t._s("curr"==n.type?n.day:""))]),t._v(" "),t.isStartTip(n,e)?a("span",{staticClass:"nut-calendar-day-tip"},[t._v(t._s(t.nutTranslate("lang.calendar.start")))]):t.isEndTip(n,e)?a("span",{staticClass:"nut-calendar-day-tip"},[t._v(t._s(t.nutTranslate("lang.calendar.end")))]):t._e()])]}))],2)])])}))],2)])])])}),[],!1,null,null,null).exports;a(87);c.install=function(t){t.component(c.name,c)};e.default=c},2:function(t,e){function a(){return t.exports=a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},t.exports.default=t.exports,t.exports.__esModule=!0,a.apply(this,arguments)}t.exports=a,t.exports.default=t.exports,t.exports.__esModule=!0},4:function(t,e,a){var n=a(46),r=a(47),s=a(13),i=a(48);t.exports=function(t){return n(t)||r(t)||s(t)||i()},t.exports.default=t.exports,t.exports.__esModule=!0},46:function(t,e,a){var n=a(9);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.default=t.exports,t.exports.__esModule=!0},47:function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0},48:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},6:function(t,e,a){"use strict";var n={isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getWhatDay:function(t,e,a){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(t+"/"+e+"/"+a).getDay()]},getMonthPreDay:function(t,e){var a=new Date(t+"/"+e+"/01").getDay();return 0==a&&(a=7),a},getMonthDays:function(t,e){return/^0/.test(e)&&(e=e.split("")[1]),[0,31,this.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},getNumTwoBit:function(t){return((t=Number(t))>9?"":"0")+t},date2Str:function(t,e){return"string"==typeof t?t:(e=e||"-",[t.getFullYear(),this.getNumTwoBit(t.getMonth()+1),this.getNumTwoBit(t.getDate())].join(e))},getDay:function(t){t=t||0;var e=new Date,a=864e5*t;return e=new Date(e.getTime()+a),this.date2Str(e)},timestampToDate:function(t){var e=new Date(t);return e.getFullYear()+"-"+getNumTwoBit(e.getMonth()+1)+"-"+getNumTwoBit(e.getDate())},compareDate:function(t,e){return!(new Date(t.replace("-","/").replace("-","/"))>=new Date(e.replace("-","/").replace("-","/")))},compareDateArr:function(t,e){var a=new Date;a.setFullYear(parseInt(t[0]),parseInt(t[1])-1,parseInt(t[2])),a.setHours(parseInt(t[3]),parseInt(t[4]));var n=new Date;return n.setFullYear(parseInt(e[0]),parseInt(e[1])-1,parseInt(e[2])),n.setHours(parseInt(e[3]),parseInt(e[4])),!(a>=n)},isEqual:function(t,e){return new Date(t).getTime()==new Date(e).getTime()},getDateArr:function(t){return[this.getYear(t),this.getMonth(t),this.getDate(t),this.getHour(t),this.getMinute(t)]},isDateString:function(t){return/\d{4}(\-|\/|.)\d{1,2}\1\d{1,2}/.test(t)||/^([01][0-9]|2[0-3])(:[0-5][0-9]){1,2}$/.test(t)},getYear:function(t){return this.isDateString(t)?t.split(" ")[0].split(/-|\/|\./)[0]:t.getFullYear()},getMonth:function(t){return this.isDateString(t)?t.split(" ")[0].split(/-|\/|\./)[1]:t.getMonth()+1},getDate:function(t){return this.isDateString(t)?t.split(" ")[0].split(/-|\/|\./)[2]:t.getDate()},getHour:function(t){return this.isDateString(t)?(t.split(" ")[1]||"00:00:00").split(":")[0]:t.getHours()},getMinute:function(t){return this.isDateString(t)?(t.split(" ")[1]||"00:00:00").split(":")[1]:t.getMinutes()}};e.a=n},7:function(t,e){function a(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=a=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=a=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),a(e)}t.exports=a,t.exports.default=t.exports,t.exports.__esModule=!0},87:function(t,e,a){},9:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n},t.exports.default=t.exports,t.exports.__esModule=!0}})}));
|
|
7
7
|
//# sourceMappingURL=calendar.js.map
|