@nutui/nutui 2.3.10 → 2.3.12
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/dist/nutui.css +38 -38
- package/dist/nutui.css.map +1 -1
- package/dist/nutui.js +1712 -5049
- package/dist/nutui.js.map +1 -1
- package/dist/nutui.min.css +2 -2
- package/dist/nutui.min.js +11 -5
- package/dist/nutui.min.js.map +1 -1
- package/dist/packages/actionsheet/actionsheet.css +1 -1
- package/dist/packages/actionsheet/actionsheet.js +2 -2
- package/dist/packages/actionsheet/actionsheet.js.map +1 -1
- package/dist/packages/address/address.css +2 -2
- package/dist/packages/address/address.js +2 -2
- package/dist/packages/address/address.js.map +1 -1
- package/dist/packages/avatar/avatar.css +2 -2
- package/dist/packages/avatar/avatar.js +2 -2
- package/dist/packages/avatar/avatar.js.map +1 -1
- package/dist/packages/backtop/backtop.css +2 -2
- package/dist/packages/backtop/backtop.js +2 -2
- package/dist/packages/backtop/backtop.js.map +1 -1
- package/dist/packages/badge/badge.css +2 -2
- package/dist/packages/badge/badge.js +2 -2
- package/dist/packages/badge/badge.js.map +1 -1
- package/dist/packages/button/button.css +2 -2
- package/dist/packages/button/button.js +2 -2
- package/dist/packages/button/button.js.map +1 -1
- package/dist/packages/buttongroup/buttongroup.css +2 -2
- package/dist/packages/buttongroup/buttongroup.js +2 -2
- package/dist/packages/buttongroup/buttongroup.js.map +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/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 +2 -2
- package/dist/packages/checkbox/checkbox.js +2 -2
- package/dist/packages/checkbox/checkbox.js.map +1 -1
- package/dist/packages/checkboxgroup/checkboxgroup.css +2 -2
- 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 +2 -2
- package/dist/packages/col/col.js.map +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 +1 -1
- package/dist/packages/countup/countup.js +2 -2
- package/dist/packages/countup/countup.js.map +1 -1
- package/dist/packages/coupon/coupon.css +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/packages/icon/icon.js.map +1 -1
- package/dist/packages/imagepicker/imagepicker.css +2 -2
- 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/lazyload/lazyload.css +1 -1
- package/dist/packages/lazyload/lazyload.js +11 -5
- 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 +2 -2
- 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 +2 -2
- package/dist/packages/magic/magic.js +2 -2
- package/dist/packages/magic/magic.js.map +1 -1
- package/dist/packages/menu/menu.css +2 -2
- 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/ninegrid.css +2 -2
- package/dist/packages/ninegrid/ninegrid.js +2 -2
- package/dist/packages/ninegrid/ninegrid.js.map +1 -1
- package/dist/packages/noticebar/noticebar.css +2 -2
- package/dist/packages/noticebar/noticebar.js +2 -2
- package/dist/packages/noticebar/noticebar.js.map +1 -1
- package/dist/packages/notify/notify.css +2 -2
- package/dist/packages/notify/notify.js +2 -2
- package/dist/packages/notify/notify.js.map +1 -1
- package/dist/packages/numberkeyboard/numberkeyboard.css +2 -2
- package/dist/packages/numberkeyboard/numberkeyboard.js +2 -2
- package/dist/packages/numberkeyboard/numberkeyboard.js.map +1 -1
- package/dist/packages/picker/picker-slot.vue +63 -31
- 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/picker/picker.vue +23 -13
- package/dist/packages/popup/popup.css +2 -2
- package/dist/packages/popup/popup.js +2 -2
- package/dist/packages/popup/popup.js.map +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 +2 -2
- package/dist/packages/progress/progress.js +2 -2
- package/dist/packages/progress/progress.js.map +1 -1
- package/dist/packages/radio/radio.css +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/packages/row/row.js.map +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/searchbar/searchbar.css +2 -2
- package/dist/packages/searchbar/searchbar.js +2 -2
- package/dist/packages/searchbar/searchbar.js.map +1 -1
- package/dist/packages/shortpassword/shortpassword.css +2 -2
- 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 +2 -2
- package/dist/packages/sidenavbaritem/sidenavbaritem.js.map +1 -1
- package/dist/packages/signature/signature.css +2 -2
- package/dist/packages/signature/signature.js +2 -2
- package/dist/packages/signature/signature.js.map +1 -1
- package/dist/packages/skeleton/skeleton.css +2 -2
- package/dist/packages/skeleton/skeleton.js +2 -2
- package/dist/packages/skeleton/skeleton.js.map +1 -1
- package/dist/packages/slider/slider.css +2 -2
- package/dist/packages/slider/slider.js +2 -2
- package/dist/packages/slider/slider.js.map +1 -1
- package/dist/packages/stepper/stepper.css +2 -2
- package/dist/packages/stepper/stepper.js +2 -2
- package/dist/packages/stepper/stepper.js.map +1 -1
- package/dist/packages/steps/steps.css +2 -2
- 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 +2 -2
- package/dist/packages/subsidenavbar/subsidenavbar.js.map +1 -1
- package/dist/packages/swiper/swiper.css +2 -2
- package/dist/packages/swiper/swiper.js +2 -2
- package/dist/packages/swiper/swiper.js.map +1 -1
- package/dist/packages/switch/switch.css +2 -2
- package/dist/packages/switch/switch.js +2 -2
- package/dist/packages/switch/switch.js.map +1 -1
- package/dist/packages/tab/tab.css +2 -2
- package/dist/packages/tab/tab.js +2 -2
- package/dist/packages/tab/tab.js.map +1 -1
- package/dist/packages/tabbar/tabbar.css +2 -2
- package/dist/packages/tabbar/tabbar.js +2 -2
- package/dist/packages/tabbar/tabbar.js.map +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 +2 -2
- 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 +2 -2
- package/dist/packages/textinput/textinput.js +2 -2
- package/dist/packages/textinput/textinput.js.map +1 -1
- package/dist/packages/timeline/timeline.css +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/packages/video/video.js +2 -2
- package/dist/packages/video/video.js.map +1 -1
- package/package.json +1 -1
- package/dist/.DS_Store +0 -0
|
@@ -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]/./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack://[name]/./src/packages/numberkeyboard/numberkeyboard.vue?20ad","webpack://[name]/./src/packages/numberkeyboard/numberkeyboard.vue?9791","webpack://[name]/src/packages/numberkeyboard/numberkeyboard.vue","webpack://[name]/./src/packages/numberkeyboard/numberkeyboard.vue","webpack://[name]/./src/packages/numberkeyboard/index.js","webpack://[name]/./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack://[name]/./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack://[name]/./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack://[name]/./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack://[name]/./node_modules/@babel/runtime/helpers/arrayLikeToArray.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","arrayLikeToArray","minLen","toString","slice","constructor","Array","from","test","props","title","type","String","default","visible","Boolean","customKey","maxlength","Number","model","prop","event","computed","keysList","genCustomKeys","defaultKey","data","once","keys","clickKeyIndex","undefined","beforeDestroy","document","getElementsByTagName","removeEventListener","mounted","$nextTick","addEventListener","targetArea","contains","elem","that","$emit","closeBoard","created","methods","getBasicKeys","push","customKeys","length","afterEnter","afterLeave","onTouchstart","stopPropagation","item","id","onTouchMove","onTouchEnd","_vm","_h","$createElement","_c","_self","attrs","on","directives","rawName","expression","staticClass","_v","_s","_e","_l","class","isArray","active","lock","delete","activeFinsh","NumberKeyboard","install","Vue","component","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread","arr","iter","iterator","TypeError","len","arr2"],"mappings":";;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,iBAAkB,GAAIH,GACH,iBAAZC,QACdA,QAAwB,eAAID,IAE5BD,EAAqB,eAAIC,IAR3B,CASoB,oBAATK,KAAuBA,KAAOC,MAAO,WAChD,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAA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,EAAQ,IAE1BC,EAA6B,EAAQ,IAErCC,EAAoB,EAAQ,IAMhC5J,EAAOD,QAJP,SAA4B8J,GAC1B,OAAOJ,EAAkBI,IAAQH,EAAgBG,IAAQF,EAA2BE,IAAQD,KAI9F5J,EAAOD,QAAiB,QAAIC,EAAOD,QAASC,EAAOD,QAAQ6B,YAAa,G,mBCbxE,IAAI2C,EAAmB,EAAQ,GAM/BvE,EAAOD,QAJP,SAA4B8J,GAC1B,GAAIjF,MAAMoE,QAAQa,GAAM,OAAOtF,EAAiBsF,IAIlD7J,EAAOD,QAAiB,QAAIC,EAAOD,QAASC,EAAOD,QAAQ6B,YAAa,G,iBCHxE5B,EAAOD,QAJP,SAA0B+J,GACxB,GAAsB,oBAAXvI,QAAmD,MAAzBuI,EAAKvI,OAAOwI,WAA2C,MAAtBD,EAAK,cAAuB,OAAOlF,MAAMC,KAAKiF,IAItH9J,EAAOD,QAAiB,QAAIC,EAAOD,QAASC,EAAOD,QAAQ6B,YAAa,G,iBCDxE5B,EAAOD,QAJP,WACE,MAAM,IAAIiK,UAAU,yIAItBhK,EAAOD,QAAiB,QAAIC,EAAOD,QAASC,EAAOD,QAAQ6B,YAAa,G,gBCKxE5B,EAAOD,QAVP,SAA2B8J,EAAKI,IACnB,MAAPA,GAAeA,EAAMJ,EAAItC,UAAQ0C,EAAMJ,EAAItC,QAE/C,IAAK,IAAI/G,EAAI,EAAG0J,EAAO,IAAItF,MAAMqF,GAAMzJ,EAAIyJ,EAAKzJ,IAC9C0J,EAAK1J,GAAKqJ,EAAIrJ,GAGhB,OAAO0J,GAITlK,EAAOD,QAAiB,QAAIC,EAAOD,QAASC,EAAOD,QAAQ6B,YAAa","file":"numberkeyboard/numberkeyboard.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(\"numberkeyboard\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"numberkeyboard\"] = factory();\n\telse\n\t\troot[\"numberkeyboard\"] = 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 = 210);\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 arrayLikeToArray = require(\"./arrayLikeToArray.js\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":\"nut-board-slide-up\"},on:{\"after-enter\":_vm.afterEnter,\"after-leave\":_vm.afterLeave}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.visible),expression:\"visible\"}],staticClass:\"nut-numberkeyboard\"},[(_vm.title)?_c('div',{staticClass:\"number-board-header\"},[_c('h3',{staticClass:\"tit\"},[_vm._v(_vm._s(_vm.title))]),_vm._v(\" \"),_c('span',{staticClass:\"keyboard-close\",on:{\"click\":function () { return _vm.closeBoard(); }}},[_vm._v(\"完成\")])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"number-board-body\"},[_c('div',{staticClass:\"number-board\"},_vm._l((_vm.keysList),function(item){return _c('div',{key:'key' + item.id,class:[\n 'key-board-wrapper',\n { 'key-board-wrapper-large': item.id == 0 && _vm.type == 'rightColumn' && Array.isArray(_vm.customKey) && _vm.customKey.length == 1 }\n ]},[_c('div',{class:['key', { active: item.id == _vm.clickKeyIndex }, { lock: item.type == 'lock' }, { delete: item.type == 'delete' }],on:{\"touchstart\":function (event) { return _vm.onTouchstart(item, event); },\"touchmove\":function (event) { return _vm.onTouchMove(item, event); },\"touchend\":_vm.onTouchEnd}},[(item.type == 'number' || item.type == 'custom')?[_vm._v(_vm._s(item.id))]:_vm._e(),_vm._v(\" \"),(item.type == 'lock')?_c('img',{attrs:{\"src\":\"https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png\"}}):_vm._e(),_vm._v(\" \"),(item.type == 'delete')?_c('img',{attrs:{\"src\":\"https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png\"}}):_vm._e()],2)])}),0),_vm._v(\" \"),(_vm.type == 'rightColumn')?_c('div',{staticClass:\"number-board-sidebar\"},[_c('div',{staticClass:\"key-board-wrapper\"},[_c('div',{class:['key', { active: _vm.clickKeyIndex == 'delete' }],on:{\"touchstart\":function (event) { return _vm.onTouchstart({ id: 'delete', type: 'delete' }, event); },\"touchmove\":function (event) { return _vm.onTouchMove({ id: 'delete', type: 'delete' }, event); },\"touchend\":_vm.onTouchEnd}},[_c('img',{attrs:{\"src\":\"https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png\"}})])]),_vm._v(\" \"),(_vm.title == '')?_c('div',{staticClass:\"key-board-wrapper\",on:{\"click\":function () { return _vm.closeBoard(); }}},[_c('div',{class:['key', 'finish', { activeFinsh: _vm.clickKeyIndex == 'finish' }]},[_vm._v(\"\\n 完成\\n \")])]):_vm._e()]):_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!./numberkeyboard.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!./numberkeyboard.vue?vue&type=script&lang=js&\"","<template>\n <transition name=\"nut-board-slide-up\" @after-enter=\"afterEnter\" @after-leave=\"afterLeave\">\n <div class=\"nut-numberkeyboard\" v-show=\"visible\">\n <div class=\"number-board-header\" v-if=\"title\">\n <h3 class=\"tit\">{{ title }}</h3>\n <span class=\"keyboard-close\" @click=\"() => closeBoard()\">完成</span>\n </div>\n <div class=\"number-board-body\">\n <div class=\"number-board\">\n <div\n :class=\"[\n 'key-board-wrapper',\n { 'key-board-wrapper-large': item.id == 0 && type == 'rightColumn' && Array.isArray(customKey) && customKey.length == 1 }\n ]\"\n v-for=\"item of keysList\"\n :key=\"'key' + item.id\"\n >\n <div\n :class=\"['key', { active: item.id == clickKeyIndex }, { lock: item.type == 'lock' }, { delete: item.type == 'delete' }]\"\n @touchstart=\"event => onTouchstart(item, event)\"\n @touchmove=\"event => onTouchMove(item, event)\"\n @touchend=\"onTouchEnd\"\n >\n <template v-if=\"item.type == 'number' || item.type == 'custom'\">{{ item.id }}</template>\n <img\n v-if=\"item.type == 'lock'\"\n src=\"https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png\"\n />\n <img\n v-if=\"item.type == 'delete'\"\n src=\"https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png\"\n />\n </div>\n </div>\n </div>\n <div class=\"number-board-sidebar\" v-if=\"type == 'rightColumn'\">\n <div class=\"key-board-wrapper\">\n <div\n :class=\"['key', { active: clickKeyIndex == 'delete' }]\"\n @touchstart=\"event => onTouchstart({ id: 'delete', type: 'delete' }, event)\"\n @touchmove=\"event => onTouchMove({ id: 'delete', type: 'delete' }, event)\"\n @touchend=\"onTouchEnd\"\n >\n <img src=\"https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png\" />\n </div>\n </div>\n <div class=\"key-board-wrapper\" @click=\"() => closeBoard()\" v-if=\"title == ''\">\n <div :class=\"['key', 'finish', { activeFinsh: clickKeyIndex == 'finish' }]\">\n 完成\n </div>\n </div>\n </div>\n </div>\n </div>\n </transition>\n</template>\n<script>\nexport default {\n name: 'nut-numberkeyboard',\n props: {\n title: {\n type: String,\n default: ''\n },\n visible: {\n type: Boolean,\n default: false\n },\n type: {\n type: String,\n default: 'default'\n },\n customKey: {\n type: Array,\n default: () => []\n },\n value: {\n type: String,\n default: ''\n },\n maxlength: {\n type: [Number, String],\n default: 6\n }\n },\n model: {\n prop: 'value',\n event: 'update:value'\n },\n computed: {\n keysList() {\n if (this.type == 'rightColumn' || this.title != '') {\n return this.genCustomKeys();\n }\n return this.defaultKey();\n }\n },\n data() {\n return {\n once: 0,\n keys: [],\n clickKeyIndex: undefined\n };\n },\n beforeDestroy() {\n document.getElementsByTagName('body')[0].removeEventListener('click', () => {});\n },\n mounted() {\n let that = this;\n this.$nextTick(() => {\n let targetArea = that.$el;\n document.getElementsByTagName('body')[0].addEventListener('click', function(event) {\n let e = event || window.event;\n let elem = e.target;\n if (targetArea.contains(elem)) {\n let text = elem.innerText;\n // console.log(\"在区域内\");\n if (text == '完成') {\n that.$emit('close');\n }\n } else {\n // console.log(\"在区域外\");\n if (that.once == 0 && that.visible) {\n that.once += 1;\n return false;\n }\n that.closeBoard();\n }\n });\n });\n },\n created() {\n if (this.visible) {\n this.once += 1;\n }\n },\n methods: {\n getBasicKeys() {\n const keys = [];\n for (let i = 1; i <= 9; i++) {\n keys.push({ id: i, type: 'number' });\n }\n return keys;\n },\n defaultKey() {\n return [...this.getBasicKeys(), { id: 'lock', type: 'lock' }, { id: 0, type: 'number' }, { id: 'delete', type: 'delete' }];\n },\n genCustomKeys() {\n const keys = this.getBasicKeys();\n const { customKey } = this;\n let customKeys = Array.isArray(customKey) ? customKey : [customKey];\n if (customKeys.length > 2) {\n customKeys = [customKeys[0], customKeys[1]];\n }\n if (customKeys.length === 1) {\n if (this.title) {\n keys.push({ id: customKeys[0], type: 'custom' }, { id: 0, type: 'number' }, { id: 'delete', type: 'delete' });\n } else {\n keys.push({ id: 0, type: 'number' }, { id: customKeys[0], type: 'custom' });\n }\n } else if (customKeys.length === 2) {\n keys.push({ id: customKeys[0], type: 'custom' }, { id: 0, type: 'number' }, { id: customKeys[1], type: 'custom' });\n if (this.title) {\n keys.push({ id: 'delete', type: 'delete' });\n }\n } else {\n keys.push({ id: 0, type: 'number' });\n }\n return keys;\n },\n afterEnter() {\n this.$emit('enter');\n },\n afterLeave() {\n this.$emit('leave');\n },\n onTouchstart(item, event) {\n event.stopPropagation();\n this.clickKeyIndex = item.id;\n if (item.type == 'number' || item.type == 'custom') {\n this.$emit('input', item.id);\n if (this.value.length < this.maxlength) {\n this.$emit('update:value', this.value + item.id);\n }\n }\n if (item.type == 'lock') {\n this.closeBoard();\n }\n if (item.type == 'delete') {\n this.$emit('delete');\n this.$emit('update:value', this.value.slice(0, this.value.length - 1));\n }\n },\n onTouchMove(id, event) {\n event.stopPropagation();\n // this.clickKeyIndex = id;\n },\n onTouchEnd() {\n this.clickKeyIndex = undefined;\n },\n closeBoard() {\n if (this.once > 0) {\n this.once = 0;\n this.$emit('close');\n }\n }\n }\n};\n</script>\n","import { render, staticRenderFns } from \"./numberkeyboard.vue?vue&type=template&id=fd18319c&\"\nimport script from \"./numberkeyboard.vue?vue&type=script&lang=js&\"\nexport * from \"./numberkeyboard.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 NumberKeyboard from './numberkeyboard.vue';\nimport './numberkeyboard.scss';\n\nNumberKeyboard.install = function(Vue) {\n Vue.component(NumberKeyboard.name, NumberKeyboard);\n};\n\nexport default NumberKeyboard;\n","var arrayWithoutHoles = require(\"./arrayWithoutHoles.js\");\n\nvar iterableToArray = require(\"./iterableToArray.js\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread.js\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableSpread;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;"],"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]/./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack://[name]/./src/packages/numberkeyboard/numberkeyboard.vue?1315","webpack://[name]/./src/packages/numberkeyboard/numberkeyboard.vue?9791","webpack://[name]/src/packages/numberkeyboard/numberkeyboard.vue","webpack://[name]/./src/packages/numberkeyboard/numberkeyboard.vue","webpack://[name]/./src/packages/numberkeyboard/index.js","webpack://[name]/./node_modules/@babel/runtime/helpers/toConsumableArray.js","webpack://[name]/./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","webpack://[name]/./node_modules/@babel/runtime/helpers/iterableToArray.js","webpack://[name]/./node_modules/@babel/runtime/helpers/nonIterableSpread.js","webpack://[name]/./node_modules/@babel/runtime/helpers/arrayLikeToArray.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","arrayLikeToArray","minLen","toString","slice","constructor","Array","from","test","props","title","type","default","visible","customKey","maxlength","model","prop","event","computed","keysList","data","once","keys","clickKeyIndex","beforeDestroy","document","mounted","that","created","methods","getBasicKeys","id","defaultKey","genCustomKeys","customKeys","afterEnter","afterLeave","onTouchstart","onTouchMove","onTouchEnd","closeBoard","_vm","_c","_self","attrs","on","directives","rawName","expression","staticClass","_v","_s","_e","_l","item","class","isArray","length","active","lock","delete","activeFinsh","NumberKeyboard","install","Vue","component","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread","arr","iter","iterator","TypeError","len","arr2"],"mappings":";;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,iBAAkB,GAAIH,GACH,iBAAZC,QACdA,QAAwB,eAAID,IAE5BD,EAAqB,eAAIC,IAR3B,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,OAAO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WACE,MAAM,IAAIiJ,UAAU,yIAEehJ,EAAOD,QAAQ6B,YAAa,EAAM5B,EAAOD,QAAiB,QAAIC,EAAOD,S,gBCI1GC,EAAOD,QAPP,SAA2B8I,EAAKI,IACnB,MAAPA,GAAeA,EAAMJ,EAAIb,UAAQiB,EAAMJ,EAAIb,QAC/C,IAAK,IAAIxH,EAAI,EAAG0I,EAAO,IAAItE,MAAMqE,GAAMzI,EAAIyI,EAAKzI,IAC9C0I,EAAK1I,GAAKqI,EAAIrI,GAEhB,OAAO0I,GAE2BlJ,EAAOD,QAAQ6B,YAAa,EAAM5B,EAAOD,QAAiB,QAAIC,EAAOD","file":"numberkeyboard/numberkeyboard.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(\"numberkeyboard\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"numberkeyboard\"] = factory();\n\telse\n\t\troot[\"numberkeyboard\"] = 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 = 210);\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 =\n typeof scriptExports === 'function' ? scriptExports.options : 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) {\n // 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 ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\nmodule.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('transition',{attrs:{\"name\":\"nut-board-slide-up\"},on:{\"after-enter\":_vm.afterEnter,\"after-leave\":_vm.afterLeave}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.visible),expression:\"visible\"}],staticClass:\"nut-numberkeyboard\"},[(_vm.title)?_c('div',{staticClass:\"number-board-header\"},[_c('h3',{staticClass:\"tit\"},[_vm._v(_vm._s(_vm.title))]),_vm._v(\" \"),_c('span',{staticClass:\"keyboard-close\",on:{\"click\":() => _vm.closeBoard()}},[_vm._v(\"完成\")])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"number-board-body\"},[_c('div',{staticClass:\"number-board\"},_vm._l((_vm.keysList),function(item){return _c('div',{key:'key' + item.id,class:[\n 'key-board-wrapper',\n { 'key-board-wrapper-large': item.id == 0 && _vm.type == 'rightColumn' && Array.isArray(_vm.customKey) && _vm.customKey.length == 1 }\n ]},[_c('div',{class:['key', { active: item.id == _vm.clickKeyIndex }, { lock: item.type == 'lock' }, { delete: item.type == 'delete' }],on:{\"touchstart\":event => _vm.onTouchstart(item, event),\"touchmove\":event => _vm.onTouchMove(item, event),\"touchend\":_vm.onTouchEnd}},[(item.type == 'number' || item.type == 'custom')?[_vm._v(_vm._s(item.id))]:_vm._e(),_vm._v(\" \"),(item.type == 'lock')?_c('img',{attrs:{\"src\":\"https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png\"}}):_vm._e(),_vm._v(\" \"),(item.type == 'delete')?_c('img',{attrs:{\"src\":\"https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png\"}}):_vm._e()],2)])}),0),_vm._v(\" \"),(_vm.type == 'rightColumn')?_c('div',{staticClass:\"number-board-sidebar\"},[_c('div',{staticClass:\"key-board-wrapper\"},[_c('div',{class:['key', { active: _vm.clickKeyIndex == 'delete' }],on:{\"touchstart\":event => _vm.onTouchstart({ id: 'delete', type: 'delete' }, event),\"touchmove\":event => _vm.onTouchMove({ id: 'delete', type: 'delete' }, event),\"touchend\":_vm.onTouchEnd}},[_c('img',{attrs:{\"src\":\"https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png\"}})])]),_vm._v(\" \"),(_vm.title == '')?_c('div',{staticClass:\"key-board-wrapper\",on:{\"click\":() => _vm.closeBoard()}},[_c('div',{class:['key', 'finish', { activeFinsh: _vm.clickKeyIndex == 'finish' }]},[_vm._v(\"\\n 完成\\n \")])]):_vm._e()]):_vm._e()])])])\n}\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!./numberkeyboard.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!./numberkeyboard.vue?vue&type=script&lang=js&\"","<template>\n <transition name=\"nut-board-slide-up\" @after-enter=\"afterEnter\" @after-leave=\"afterLeave\">\n <div class=\"nut-numberkeyboard\" v-show=\"visible\">\n <div class=\"number-board-header\" v-if=\"title\">\n <h3 class=\"tit\">{{ title }}</h3>\n <span class=\"keyboard-close\" @click=\"() => closeBoard()\">完成</span>\n </div>\n <div class=\"number-board-body\">\n <div class=\"number-board\">\n <div\n :class=\"[\n 'key-board-wrapper',\n { 'key-board-wrapper-large': item.id == 0 && type == 'rightColumn' && Array.isArray(customKey) && customKey.length == 1 }\n ]\"\n v-for=\"item of keysList\"\n :key=\"'key' + item.id\"\n >\n <div\n :class=\"['key', { active: item.id == clickKeyIndex }, { lock: item.type == 'lock' }, { delete: item.type == 'delete' }]\"\n @touchstart=\"event => onTouchstart(item, event)\"\n @touchmove=\"event => onTouchMove(item, event)\"\n @touchend=\"onTouchEnd\"\n >\n <template v-if=\"item.type == 'number' || item.type == 'custom'\">{{ item.id }}</template>\n <img\n v-if=\"item.type == 'lock'\"\n src=\"https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png\"\n />\n <img\n v-if=\"item.type == 'delete'\"\n src=\"https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png\"\n />\n </div>\n </div>\n </div>\n <div class=\"number-board-sidebar\" v-if=\"type == 'rightColumn'\">\n <div class=\"key-board-wrapper\">\n <div\n :class=\"['key', { active: clickKeyIndex == 'delete' }]\"\n @touchstart=\"event => onTouchstart({ id: 'delete', type: 'delete' }, event)\"\n @touchmove=\"event => onTouchMove({ id: 'delete', type: 'delete' }, event)\"\n @touchend=\"onTouchEnd\"\n >\n <img src=\"https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png\" />\n </div>\n </div>\n <div class=\"key-board-wrapper\" @click=\"() => closeBoard()\" v-if=\"title == ''\">\n <div :class=\"['key', 'finish', { activeFinsh: clickKeyIndex == 'finish' }]\">\n 完成\n </div>\n </div>\n </div>\n </div>\n </div>\n </transition>\n</template>\n<script>\nexport default {\n name: 'nut-numberkeyboard',\n props: {\n title: {\n type: String,\n default: ''\n },\n visible: {\n type: Boolean,\n default: false\n },\n type: {\n type: String,\n default: 'default'\n },\n customKey: {\n type: Array,\n default: () => []\n },\n value: {\n type: String,\n default: ''\n },\n maxlength: {\n type: [Number, String],\n default: 6\n }\n },\n model: {\n prop: 'value',\n event: 'update:value'\n },\n computed: {\n keysList() {\n if (this.type == 'rightColumn' || this.title != '') {\n return this.genCustomKeys();\n }\n return this.defaultKey();\n }\n },\n data() {\n return {\n once: 0,\n keys: [],\n clickKeyIndex: undefined\n };\n },\n beforeDestroy() {\n document.getElementsByTagName('body')[0].removeEventListener('click', () => {});\n },\n mounted() {\n let that = this;\n this.$nextTick(() => {\n let targetArea = that.$el;\n document.getElementsByTagName('body')[0].addEventListener('click', function(event) {\n let e = event || window.event;\n let elem = e.target;\n if (targetArea.contains(elem)) {\n let text = elem.innerText;\n // console.log(\"在区域内\");\n if (text == '完成') {\n that.$emit('close');\n }\n } else {\n // console.log(\"在区域外\");\n if (that.once == 0 && that.visible) {\n that.once += 1;\n return false;\n }\n that.closeBoard();\n }\n });\n });\n },\n created() {\n if (this.visible) {\n this.once += 1;\n }\n },\n methods: {\n getBasicKeys() {\n const keys = [];\n for (let i = 1; i <= 9; i++) {\n keys.push({ id: i, type: 'number' });\n }\n return keys;\n },\n defaultKey() {\n return [...this.getBasicKeys(), { id: 'lock', type: 'lock' }, { id: 0, type: 'number' }, { id: 'delete', type: 'delete' }];\n },\n genCustomKeys() {\n const keys = this.getBasicKeys();\n const { customKey } = this;\n let customKeys = Array.isArray(customKey) ? customKey : [customKey];\n if (customKeys.length > 2) {\n customKeys = [customKeys[0], customKeys[1]];\n }\n if (customKeys.length === 1) {\n if (this.title) {\n keys.push({ id: customKeys[0], type: 'custom' }, { id: 0, type: 'number' }, { id: 'delete', type: 'delete' });\n } else {\n keys.push({ id: 0, type: 'number' }, { id: customKeys[0], type: 'custom' });\n }\n } else if (customKeys.length === 2) {\n keys.push({ id: customKeys[0], type: 'custom' }, { id: 0, type: 'number' }, { id: customKeys[1], type: 'custom' });\n if (this.title) {\n keys.push({ id: 'delete', type: 'delete' });\n }\n } else {\n keys.push({ id: 0, type: 'number' });\n }\n return keys;\n },\n afterEnter() {\n this.$emit('enter');\n },\n afterLeave() {\n this.$emit('leave');\n },\n onTouchstart(item, event) {\n event.stopPropagation();\n this.clickKeyIndex = item.id;\n if (item.type == 'number' || item.type == 'custom') {\n this.$emit('input', item.id);\n if (this.value.length < this.maxlength) {\n this.$emit('update:value', this.value + item.id);\n }\n }\n if (item.type == 'lock') {\n this.closeBoard();\n }\n if (item.type == 'delete') {\n this.$emit('delete');\n this.$emit('update:value', this.value.slice(0, this.value.length - 1));\n }\n },\n onTouchMove(id, event) {\n event.stopPropagation();\n // this.clickKeyIndex = id;\n },\n onTouchEnd() {\n this.clickKeyIndex = undefined;\n },\n closeBoard() {\n if (this.once > 0) {\n this.once = 0;\n this.$emit('close');\n }\n }\n }\n};\n</script>\n","import { render, staticRenderFns } from \"./numberkeyboard.vue?vue&type=template&id=fd18319c&\"\nimport script from \"./numberkeyboard.vue?vue&type=script&lang=js&\"\nexport * from \"./numberkeyboard.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 NumberKeyboard from './numberkeyboard.vue';\nimport './numberkeyboard.scss';\n\nNumberKeyboard.install = function(Vue) {\n Vue.component(NumberKeyboard.name, NumberKeyboard);\n};\n\nexport default NumberKeyboard;\n","var arrayWithoutHoles = require(\"./arrayWithoutHoles.js\");\nvar iterableToArray = require(\"./iterableToArray.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableSpread = require(\"./nonIterableSpread.js\");\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\nmodule.exports = _toConsumableArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\nmodule.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nmodule.exports = _iterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n return arr2;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"sourceRoot":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="nut-picker-list">
|
|
3
|
-
<div class="nut-picker-roller" ref="roller">
|
|
2
|
+
<div class="nut-picker-list" @touchstart="onTouchStart" @touchmove="onTouchMove" @touchend="onTouchEnd">
|
|
3
|
+
<div class="nut-picker-roller" ref="roller" @transitionend="stopMomentum">
|
|
4
4
|
<div
|
|
5
5
|
class="nut-picker-roller-item"
|
|
6
6
|
:class="{ 'nut-picker-roller-item-hidden': isHidden(index + 1) }"
|
|
@@ -24,24 +24,36 @@
|
|
|
24
24
|
</div>
|
|
25
25
|
</template>
|
|
26
26
|
<script>
|
|
27
|
+
const DEFAULT_DURATION = 200;
|
|
28
|
+
|
|
29
|
+
// 触发惯性滑动条件:
|
|
30
|
+
// 在手指离开屏幕时,如果和上一次 move 时的间隔小于 `MOMENTUM_TIME` 且 move
|
|
31
|
+
// 距离大于 `MOMENTUM_DISTANCE` 时,执行惯性滑动
|
|
32
|
+
const INERTIA_TIME = 300;
|
|
33
|
+
const INERTIA_DISTANCE = 15;
|
|
34
|
+
|
|
27
35
|
export default {
|
|
28
36
|
name: 'nut-picker-slot',
|
|
29
37
|
props: {
|
|
30
38
|
listData: {
|
|
31
39
|
type: Array,
|
|
32
|
-
required: true
|
|
40
|
+
required: true,
|
|
33
41
|
},
|
|
34
42
|
defaultValue: {
|
|
35
|
-
type: String | Number
|
|
43
|
+
type: String | Number,
|
|
36
44
|
},
|
|
37
45
|
keyIndex: {
|
|
38
46
|
type: Number,
|
|
39
|
-
default: 0
|
|
47
|
+
default: 0,
|
|
40
48
|
},
|
|
41
49
|
isUpdate: {
|
|
42
50
|
type: Boolean,
|
|
43
|
-
default: false
|
|
44
|
-
}
|
|
51
|
+
default: false,
|
|
52
|
+
},
|
|
53
|
+
swipeDuration: {
|
|
54
|
+
type: Number | String,
|
|
55
|
+
default: '1000',
|
|
56
|
+
},
|
|
45
57
|
},
|
|
46
58
|
data() {
|
|
47
59
|
return {
|
|
@@ -49,25 +61,27 @@ export default {
|
|
|
49
61
|
startY: 0,
|
|
50
62
|
endY: 0,
|
|
51
63
|
startTime: 0,
|
|
52
|
-
endTime: 0
|
|
64
|
+
endTime: 0,
|
|
53
65
|
},
|
|
54
66
|
currIndex: 1,
|
|
55
67
|
transformY: 0,
|
|
56
68
|
scrollDistance: 0,
|
|
57
69
|
lineSpacing: 36,
|
|
58
70
|
rotation: 20,
|
|
59
|
-
timer: null
|
|
71
|
+
timer: null,
|
|
72
|
+
|
|
73
|
+
touchTime: 0,
|
|
60
74
|
};
|
|
61
75
|
},
|
|
62
76
|
watch: {
|
|
63
|
-
isUpdate: function() {
|
|
77
|
+
isUpdate: function () {
|
|
64
78
|
this.transformY = 0;
|
|
65
79
|
this.modifyStatus();
|
|
66
80
|
},
|
|
67
|
-
defaultValue: function() {
|
|
81
|
+
defaultValue: function () {
|
|
68
82
|
this.transformY = 0;
|
|
69
83
|
this.modifyStatus();
|
|
70
|
-
}
|
|
84
|
+
},
|
|
71
85
|
},
|
|
72
86
|
methods: {
|
|
73
87
|
updateTransform(value) {
|
|
@@ -91,7 +105,7 @@ export default {
|
|
|
91
105
|
}
|
|
92
106
|
},
|
|
93
107
|
|
|
94
|
-
setTransform(translateY = 0, type, time =
|
|
108
|
+
setTransform(translateY = 0, type, time = DEFAULT_DURATION, deg) {
|
|
95
109
|
if (type === 'end') {
|
|
96
110
|
this.$refs.list.style.webkitTransition = `transform ${time}ms cubic-bezier(0.19, 1, 0.22, 1)`;
|
|
97
111
|
this.$refs.roller.style.webkitTransition = `transform ${time}ms cubic-bezier(0.19, 1, 0.22, 1)`;
|
|
@@ -99,9 +113,12 @@ export default {
|
|
|
99
113
|
this.$refs.list.style.webkitTransition = '';
|
|
100
114
|
this.$refs.roller.style.webkitTransition = '';
|
|
101
115
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
116
|
+
|
|
117
|
+
if (translateY != null) {
|
|
118
|
+
this.$refs.list.style.webkitTransform = `translate3d(0, ${translateY}px, 0)`;
|
|
119
|
+
this.$refs.roller.style.webkitTransform = `rotate3d(1, 0, 0, ${deg})`;
|
|
120
|
+
this.scrollDistance = translateY;
|
|
121
|
+
}
|
|
105
122
|
},
|
|
106
123
|
|
|
107
124
|
setMove(move, type, time) {
|
|
@@ -141,7 +158,7 @@ export default {
|
|
|
141
158
|
this.$emit('chooseItem', this.listData[Math.round(-move / this.lineSpacing)], this.keyIndex);
|
|
142
159
|
},
|
|
143
160
|
|
|
144
|
-
|
|
161
|
+
onTouchStart(event) {
|
|
145
162
|
event.preventDefault();
|
|
146
163
|
|
|
147
164
|
let changedTouches = event.changedTouches[0];
|
|
@@ -150,7 +167,7 @@ export default {
|
|
|
150
167
|
this.transformY = this.scrollDistance;
|
|
151
168
|
},
|
|
152
169
|
|
|
153
|
-
|
|
170
|
+
onTouchMove(event) {
|
|
154
171
|
event.preventDefault();
|
|
155
172
|
|
|
156
173
|
let changedTouches = event.changedTouches[0];
|
|
@@ -161,7 +178,7 @@ export default {
|
|
|
161
178
|
this.setMove(move);
|
|
162
179
|
},
|
|
163
180
|
|
|
164
|
-
|
|
181
|
+
onTouchEnd(event) {
|
|
165
182
|
event.preventDefault();
|
|
166
183
|
|
|
167
184
|
let changedTouches = event.changedTouches[0];
|
|
@@ -170,10 +187,9 @@ export default {
|
|
|
170
187
|
let move = this.touchParams.lastY - this.touchParams.startY;
|
|
171
188
|
|
|
172
189
|
let moveTime = this.touchParams.lastTime - this.touchParams.startTime;
|
|
173
|
-
if (moveTime <=
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
this.setMove(move, 'end', moveTime);
|
|
190
|
+
if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
|
|
191
|
+
const distance = this.momentum(move, moveTime);
|
|
192
|
+
this.setMove(distance, 'end', +this.swipeDuration);
|
|
177
193
|
} else {
|
|
178
194
|
this.setMove(move, 'end');
|
|
179
195
|
}
|
|
@@ -196,24 +212,40 @@ export default {
|
|
|
196
212
|
let move = index === -1 ? 0 : index * this.lineSpacing;
|
|
197
213
|
type && this.setChooseValue(-move);
|
|
198
214
|
this.setMove(-move);
|
|
199
|
-
}
|
|
215
|
+
},
|
|
216
|
+
|
|
217
|
+
// 惯性滚动结束
|
|
218
|
+
stopMomentum() {
|
|
219
|
+
console.log('惯性滚动结束');
|
|
220
|
+
this.setChooseValue(this.scrollDistance);
|
|
221
|
+
this.setTransform(null, 'end');
|
|
222
|
+
},
|
|
223
|
+
|
|
224
|
+
// 惯性滚动 距离
|
|
225
|
+
momentum(distance, duration) {
|
|
226
|
+
// 惯性滚动的速度
|
|
227
|
+
const speed = Math.abs(distance / duration);
|
|
228
|
+
// 惯性滚动的距离
|
|
229
|
+
distance = (speed / 0.003) * (distance < 0 ? -1 : 1);
|
|
230
|
+
return distance;
|
|
231
|
+
},
|
|
200
232
|
},
|
|
201
233
|
|
|
202
234
|
mounted() {
|
|
203
235
|
this.$nextTick(() => {
|
|
204
236
|
this.modifyStatus(true);
|
|
205
237
|
// 监听
|
|
206
|
-
this.$el.addEventListener('touchstart', this.touchStart);
|
|
207
|
-
this.$el.addEventListener('touchmove', this.touchMove);
|
|
208
|
-
this.$el.addEventListener('touchend', this.touchEnd);
|
|
238
|
+
// this.$el.addEventListener('touchstart', this.touchStart);
|
|
239
|
+
// this.$el.addEventListener('touchmove', this.touchMove);
|
|
240
|
+
// this.$el.addEventListener('touchend', this.touchEnd);
|
|
209
241
|
});
|
|
210
242
|
},
|
|
211
243
|
beforeDestroy() {
|
|
212
244
|
// 移除监听
|
|
213
|
-
this.$el.removeEventListener('touchstart', this.touchStart);
|
|
214
|
-
this.$el.removeEventListener('touchmove', this.touchMove);
|
|
215
|
-
this.$el.removeEventListener('touchend', this.touchEnd);
|
|
245
|
+
// this.$el.removeEventListener('touchstart', this.touchStart);
|
|
246
|
+
// this.$el.removeEventListener('touchmove', this.touchMove);
|
|
247
|
+
// this.$el.removeEventListener('touchend', this.touchEnd);
|
|
216
248
|
clearTimeout(this.timer);
|
|
217
|
-
}
|
|
249
|
+
},
|
|
218
250
|
};
|
|
219
251
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.12 - picker.css, 4e7bf58d46c32d8aa0dc, Mon Oct 24 2022 16:30:36 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/@-webkit-keyframes nutFadeIn{0%{opacity:0}to{opacity:1}}@keyframes nutFadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes nutFadeOut{0%{opacity:1}to{opacity:0}}@keyframes nutFadeOut{0%{opacity:1}to{opacity:0}}.nutFade-enter-active,.nutFade-leave-active,.nutFadeIn,.nutFadeOut{-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)}.nutFade-enter-active,.nutFadeIn{-webkit-animation-name:nutFadeIn;animation-name:nutFadeIn}.nutFade-leave-active,.nutFadeOut{-webkit-animation-name:nutFadeOut;animation-name:nutFadeOut}@-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}.nut-actionsheet-mask{position:fixed;z-index:9998;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,.5)}.nut-actionsheet-panel{position:fixed;left:0;right:0;bottom:0;width:100%;max-height:80%;overflow:auto;z-index:10001;background-color:#f6f6f6}.nut-actionsheet-modal{padding:10px;margin:0;text-align:center;background-color:#fff;border-bottom:1px solid #f6f6f6}.nut-actionsheet-modal .nut-actionsheet-sub-title,.nut-actionsheet-modal .nut-actionsheet-title{padding:5px 0}.nut-actionsheet-modal .nut-actionsheet-title{font-size:14px;color:#2d2d2d}.nut-actionsheet-modal .nut-actionsheet-sub-title{font-size:12px;color:#2d2d2d;-webkit-margin-start:0;margin-inline-start:0}.nut-actionsheet-menu{list-style:none;padding:0;margin:0}.nut-actionsheet-cancel,.nut-actionsheet-item{height:24px;padding:10px;line-height:24px;font-size:14px;color:#2d2d2d;text-align:center;background-color:#fff}.nut-actionsheet-item{border-bottom:1px solid #f6f6f6}.nut-actionsheet-item-active{color:#f0250f}.nut-actionsheet-item-disabled{color:#e1e1e1}.nut-actionsheet-cancel{margin-top:5px;border-top:1px solid #f6f6f6}.nut-picker{background-color:#fff;width:100%}.nut-picker-control{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:40px;border-bottom:1px solid #f6f6f6;text-align:center;line-height:40px;font-size:14px}.nut-picker-control .nut-picker-cancel-btn,.nut-picker-control .nut-picker-confirm-btn{width:60px;color:#f0250f}.nut-picker-control .nut-picker-title{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.nut-picker-panel{height:252px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.nut-picker-list{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative;height:252px;overflow:hidden;text-align:center}.nut-picker-list .nut-picker-list-panel{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.nut-picker-list .nut-picker-mask{position:absolute;top:0;left:0;right:0;bottom:0;background-position:top,bottom;background-size:100% 108px;background-repeat:no-repeat;z-index:3}.nut-picker-list .nut-picker-indicator{position:absolute;top:108px;width:100%;height:34px;border-top:1px solid #dadada;border-bottom:1px solid #dadada;z-index:3}.nut-picker-list .nut-picker-content,.nut-picker-list .nut-picker-roller{position:absolute;top:108px;width:100%;height:36px}.nut-picker-list .nut-picker-content{background:#fff;z-index:2;overflow:hidden}.nut-picker-list .nut-picker-item,.nut-picker-list .nut-picker-roller-item{white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;height:36px;line-height:36px;color:#2d2d2d;font-size:14px;text-align:center}.nut-picker-list .nut-picker-item{font-size:15px;background:#fff}.nut-picker-list .nut-picker-roller{z-index:1;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.nut-picker-list .nut-picker-roller .nut-picker-roller-item{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:absolute;top:0;width:100%;color:#848484}.nut-picker-list .nut-picker-roller .nut-picker-roller-item-hidden{visibility:hidden;opacity:0}.nut-picker-placeholder{height:1px}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.12 - picker.js, 4e7bf58d46c32d8aa0dc, Mon Oct 24 2022 16:30:36 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("picker",["vue"],e):"object"==typeof exports?exports.picker=e(require("vue")):t.picker=e(t.Vue)}("undefined"!=typeof self?self:this,(function(t){return function(t){var e={};function n(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,s){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},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 s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(s,i,function(e){return t[e]}.bind(null,i));return s},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=95)}({0:function(t,e,n){"use strict";function s(t,e,n,s,i,a,o,r){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),s&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=r?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}n.d(e,"a",(function(){return s}))},1:function(e,n){e.exports=t},10:function(t,e,n){"use strict";n(7);var s=n(2),i=n.n(s),a=n(1),o=n.n(a);o.a.config.lang="zn-CH";var r={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:"文件大小超过限制"}}},l={},c=!1,u=function(){var t=Object.getPrototypeOf(this||o.a).$t;if("function"==typeof t&&o.a.locale)return c||(c=!0,o.a.locale(o.a.config.lang,i()("zn-CH"===o.a.config.lang?r:{},o.a.locale(o.a.config.lang)||{},l))),t.apply(this,arguments)};function h(t,e){var n=u.apply(this,arguments);if(null!=n)return n;var s=i()({},"zn-CH"===o.a.config.lang?r:{},l),a=t&&t.split(".")||[],c=null;if(a.length)for(var h=0;h<a.length;h++){var d=a[h];if(!d||!s[d]){c=null;break}c=s=s[d]}return f(c,e)}function f(t,e){var n=t&&t.match(/{.+?}/g);return n&&e&&(n=n.map((function(t){return t.replace(/\{\s*(\w+|\d+).*?\}/,"$1")}))).forEach((function(n,s){var i=new RegExp("{\\s*"+n+"\\s*(?:=\\s*(\\S*?))?\\s*?}","g");t=t.replace(i,(function(t,s){return"function"==(i=e[n],Object.prototype.toString.call(i).toLowerCase().match(/\s(\w+)/)[1])?e[n]():void 0!==e[n]?e[n]:s||t;var i}))})),t}e.a={methods:{nutTranslate:function(){return h.apply(this,arguments)}}}},13:function(t,e,n){var s=n(9);t.exports=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},2:function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},t.exports.default=t.exports,t.exports.__esModule=!0,n.apply(this,arguments)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},3:function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.default=t.exports,t.exports.__esModule=!0},4:function(t,e,n){var s=n(46),i=n(47),a=n(13),o=n(48);t.exports=function(t){return s(t)||i(t)||a(t)||o()},t.exports.default=t.exports,t.exports.__esModule=!0},46:function(t,e,n){var s=n(9);t.exports=function(t){if(Array.isArray(t))return s(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},49:function(t,e,n){"use strict";var s={name:"nut-actionsheet",props:{isAnimation:{type:Boolean,default:!0},isLockBgScroll:{type:Boolean,default:!1},isVisible:{type:Boolean,default:!1},isShowMask:{type:Boolean,default:!0},isClickChooseClose:{type:Boolean,default:!0},isClickCloseMask:{type:Boolean,default:!0},cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},chooseTagValue:{type:String,default:""},menuItems:{type:Array,default:function(){return[]}}},data:function(){return{}},watch:{isVisible:function(t){t&&this.$emit("open"),this.isLockBgScroll&&(t?document.body.classList.add("nut-overflow-hidden"):this.removeLockScroll())}},deactivated:function(){this.removeLockScroll()},destroyed:function(){this.removeLockScroll()},methods:{removeLockScroll:function(){document.body.classList.remove("nut-overflow-hidden")},isHighlight:function(t){return this.chooseTagValue&&this.chooseTagValue==t[this.optionTag]||0===this.chooseTagValue},closeActionSheet:function(){this.$emit("close")},cancelActionSheet:function(){this.closeActionSheet(),this.$emit("cancel")},clickActionSheetMask:function(){this.isClickCloseMask&&this.closeActionSheet()},chooseItem:function(t,e){t.disable||(this.isClickChooseClose&&this.closeActionSheet(),this.$emit("choose",t,e))}}},i=n(0),a=Object(i.a)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nut-actionsheet"},[t.isShowMask?n("transition",{attrs:{name:t.isAnimation?"nutFade":""}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"nut-actionsheet-mask",on:{click:t.clickActionSheetMask}})]):t._e(),t._v(" "),n("transition",{attrs:{name:t.isAnimation?"nutSlideUp":""}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"nut-actionsheet-panel"},[n("div",{staticClass:"nut-actionsheet-custom"},[t._t("custom")],2),t._v(" "),t.$slots.title||t.$slots.subTitle?n("dl",{staticClass:"nut-actionsheet-modal"},[n("dt",{staticClass:"nut-actionsheet-title"},[t._t("title")],2),t._v(" "),n("dd",{staticClass:"nut-actionsheet-sub-title"},[t._t("sub-title")],2)]):t._e(),t._v(" "),n("ul",{staticClass:"nut-actionsheet-menu"},t._l(t.menuItems,(function(e,s){return n("li",{key:s,staticClass:"nut-actionsheet-item",class:{"nut-actionsheet-item-active":t.isHighlight(e),"nut-actionsheet-item-disabled":e.disable},on:{click:function(n){return t.chooseItem(e,s)}}},[t._v(t._s(e[t.optionTag]))])})),0),t._v(" "),t.cancelTxt?n("div",{staticClass:"nut-actionsheet-cancel",on:{click:t.cancelActionSheet}},[t._v(t._s(t.cancelTxt))]):t._e()])])],1)}),[],!1,null,null,null);e.a=a.exports},55:function(t,e,n){"use strict";var s,i=n(4),a=n.n(i),o=n(3),r=n.n(o),l=n(49),c=(n(62),{name:"nut-picker-slot",props:{listData:{type:Array,required:!0},defaultValue:{type:String|Number},keyIndex:{type:Number,default:0},isUpdate:{type:Boolean,default:!1}},data:function(){return{touchParams:{startY:0,endY:0,startTime:0,endTime:0},currIndex:1,transformY:0,scrollDistance:0,lineSpacing:36,rotation:20,timer:null}},watch:{isUpdate:function(){this.transformY=0,this.modifyStatus()},defaultValue:function(){this.transformY=0,this.modifyStatus()}},methods:{updateTransform:function(t){var e=this;t&&(this.transformY=0,this.timer=setTimeout((function(){e.modifyStatus(null,t)}),10))},setRollerStyle:function(t){return"transform: rotate3d(1, 0, 0, ".concat(-this.rotation*t,"deg) translate3d(0px, 0px, 104px)")},isHidden:function(t){return t>=this.currIndex+8||t<=this.currIndex-8},setTransform:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,s=arguments.length>3?arguments[3]:void 0;"end"===e?(this.$refs.list.style.webkitTransition="transform ".concat(n,"ms cubic-bezier(0.19, 1, 0.22, 1)"),this.$refs.roller.style.webkitTransition="transform ".concat(n,"ms cubic-bezier(0.19, 1, 0.22, 1)")):(this.$refs.list.style.webkitTransition="",this.$refs.roller.style.webkitTransition=""),this.$refs.list.style.webkitTransform="translate3d(0, ".concat(t,"px, 0)"),this.$refs.roller.style.webkitTransform="rotate3d(1, 0, 0, ".concat(s,")"),this.scrollDistance=t},setMove:function(t,e,n){var s=this,i=t+this.transformY;if("end"===e){i>0&&(i=0),i<-(this.listData.length-1)*this.lineSpacing&&(i=-(this.listData.length-1)*this.lineSpacing);var a=Math.round(i/this.lineSpacing)*this.lineSpacing,o="".concat((Math.abs(Math.round(a/this.lineSpacing))+1)*this.rotation,"deg");this.setTransform(a,e,n,o),this.timer=setTimeout((function(){s.setChooseValue(a)}),n/2),this.currIndex=Math.abs(Math.round(a/this.lineSpacing))+1}else{var r="0deg";r="".concat(i<0?(Math.abs(i/this.lineSpacing)+1)*this.rotation:(-i/this.lineSpacing+1)*this.rotation,"deg"),this.setTransform(i,null,null,r),this.currIndex=Math.abs(Math.round(i/this.lineSpacing))+1}},setChooseValue:function(t){this.$emit("chooseItem",this.listData[Math.round(-t/this.lineSpacing)],this.keyIndex)},touchStart:function(t){t.preventDefault();var e=t.changedTouches[0];this.touchParams.startY=e.pageY,this.touchParams.startTime=t.timestamp||Date.now(),this.transformY=this.scrollDistance},touchMove:function(t){t.preventDefault();var e=t.changedTouches[0];this.touchParams.lastY=e.pageY,this.touchParams.lastTime=t.timestamp||Date.now();var n=this.touchParams.lastY-this.touchParams.startY;this.setMove(n)},touchEnd:function(t){t.preventDefault();var e=t.changedTouches[0];this.touchParams.lastY=e.pageY,this.touchParams.lastTime=t.timestamp||Date.now();var n=this.touchParams.lastY-this.touchParams.startY,s=this.touchParams.lastTime-this.touchParams.startTime;s<=300?(n*=2,s+=1e3,this.setMove(n,"end",s)):this.setMove(n,"end")},modifyStatus:function(t,e){e=e||this.defaultValue;var n=-1;e&&e.value?this.listData.some((function(t,s){if(t.value==e.value)return n=s,!0})):n=this.listData.indexOf(e),this.currIndex=-1===n?1:n+1;var s=-1===n?0:n*this.lineSpacing;t&&this.setChooseValue(-s),this.setMove(-s)}},mounted:function(){var t=this;this.$nextTick((function(){t.modifyStatus(!0),t.$el.addEventListener("touchstart",t.touchStart),t.$el.addEventListener("touchmove",t.touchMove),t.$el.addEventListener("touchend",t.touchEnd)}))},beforeDestroy:function(){this.$el.removeEventListener("touchstart",this.touchStart),this.$el.removeEventListener("touchmove",this.touchMove),this.$el.removeEventListener("touchend",this.touchEnd),clearTimeout(this.timer)}}),u=n(0),h=Object(u.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nut-picker-list"},[n("div",{ref:"roller",staticClass:"nut-picker-roller"},t._l(t.listData,(function(e,s){return n("div",{key:e.label?e.label:s,staticClass:"nut-picker-roller-item",class:{"nut-picker-roller-item-hidden":t.isHidden(s+1)},style:t.setRollerStyle(s+1)},[t._v("\n "+t._s(e.value?e.value:e)+"\n ")])})),0),t._v(" "),n("div",{staticClass:"nut-picker-content"},[n("div",{ref:"list",staticClass:"nut-picker-list-panel"},[t._l(t.listData,(function(e,s){return n("div",{key:e.label?e.label:s,staticClass:"nut-picker-item"},[t._v(t._s(e.value?e.value:e)+"\n ")])})),t._v(" "),t.listData&&1===t.listData.length?n("div",{staticClass:"nut-picker-placeholder"}):t._e()],2)]),t._v(" "),n("div",{staticClass:"nut-picker-mask"}),t._v(" "),n("div",{staticClass:"nut-picker-indicator"})])}),[],!1,null,null,null).exports,f={name:"nut-picker",mixins:[n(10).a],props:{isVisible:{type:Boolean,default:!1},customClassName:{type:String,default:null},title:{type:String,default:" "},listData:{type:Array,default:function(){return[]}},defaultValueData:{type:Array,default:function(){return[]}}},components:(s={},r()(s,l.a.name,l.a),r()(s,h.name,h),s),data:function(){return{chooseValueData:[],cacheValueData:[],isUpdate:!1}},watch:{defaultValueData:function(){this.chooseValueData=a()(this.defaultValueData),this.cacheValueData=a()(this.defaultValueData),this.$emit("confirm",this.cacheValueData)},listData:function(){this.init()}},methods:{updateChooseValue:function(t,e,n){t.cacheValueData.splice(e,1,n);var s="picker-slot-".concat(e);t.$refs[s]&&t.$refs[s][0].updateTransform(n)},closeActionSheet:function(){this.isUpdate=!this.isUpdate,this.cacheValueData=a()(this.chooseValueData),this.$emit("close"),this.$emit("close-update",this,this.chooseValueData)},confirm:function(){this.$emit("confirm",this.cacheValueData),this.chooseValueData=a()(this.cacheValueData),this.$emit("close")},chooseItem:function(t,e){this.cacheValueData[e]!==t&&(this.cacheValueData[e]=t,this.$emit("choose",this,e,t,this.cacheValueData))},init:function(){if(this.defaultValueData&&this.defaultValueData.length)this.chooseValueData=a()(this.defaultValueData);else{var t=[];this.listData.map((function(e,n){t.push(e[0])})),this.chooseValueData=[].concat(t)}}},created:function(){this.init()}},d=Object(u.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nut-actionsheet",{attrs:{"is-visible":t.isVisible},on:{close:t.closeActionSheet}},[n("div",{staticClass:"nut-picker",class:t.customClassName?t.customClassName:null,attrs:{slot:"custom"},slot:"custom"},[n("div",{staticClass:"nut-picker-control"},[n("span",{staticClass:"nut-picker-cancel-btn",on:{click:t.closeActionSheet}},[t._v(t._s(t.nutTranslate("lang.cancelBtnTxt")))]),t._v(" "),n("div",{staticClass:"nut-picker-title"},[t._v(t._s(t.title?t.title:""))]),t._v(" "),n("span",{staticClass:"nut-picker-confirm-btn",on:{click:t.confirm}},[t._v(t._s(t.nutTranslate("lang.okBtnTxt")))])]),t._v(" "),n("div",{staticClass:"nut-picker-panel"},[t._l(t.listData,(function(e,s){return[n("nut-picker-slot",{key:s,ref:"picker-slot-"+s,refInFor:!0,attrs:{"default-value":t.chooseValueData[s],"is-update":t.isUpdate,"list-data":e,"key-index":s},on:{chooseItem:t.chooseItem}})]}))],2)])])}),[],!1,null,null,null);e.a=d.exports},62:function(t,e,n){},66:function(t,e,n){},7:function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=n=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=n=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),n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},9:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,s=new Array(e);n<e;n++)s[n]=t[n];return s},t.exports.default=t.exports,t.exports.__esModule=!0},95:function(t,e,n){"use strict";n.r(e);var s=n(55);n(66);s.a.install=function(t){t.component(s.a.name,s.a)},e.default=s.a}})}));
|
|
6
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("picker",["vue"],e):"object"==typeof exports?exports.picker=e(require("vue")):t.picker=e(t.Vue)}("undefined"!=typeof self?self:this,(function(t){return function(t){var e={};function n(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,s){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},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 s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(s,i,function(e){return t[e]}.bind(null,i));return s},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=95)}({0:function(t,e,n){"use strict";function s(t,e,n,s,i,a,o,r){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),s&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=r?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}n.d(e,"a",(function(){return s}))},1:function(e,n){e.exports=t},10:function(t,e,n){"use strict";n(6);var s=n(2),i=n.n(s),a=n(1),o=n.n(a);o.a.config.lang="zn-CH";var r={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:"文件大小超过限制"}}},l={},c=!1,u=function(){var t=Object.getPrototypeOf(this||o.a).$t;if("function"==typeof t&&o.a.locale)return c||(c=!0,o.a.locale(o.a.config.lang,i()("zn-CH"===o.a.config.lang?r:{},o.a.locale(o.a.config.lang)||{},l))),t.apply(this,arguments)};function h(t,e){var n=u.apply(this,arguments);if(null!=n)return n;var s=i()({},"zn-CH"===o.a.config.lang?r:{},l),a=t&&t.split(".")||[],c=null;if(a.length)for(var h=0;h<a.length;h++){var p=a[h];if(!p||!s[p]){c=null;break}c=s=s[p]}return f(c,e)}function f(t,e){var n=t&&t.match(/{.+?}/g);return n&&e&&(n=n.map((function(t){return t.replace(/\{\s*(\w+|\d+).*?\}/,"$1")}))).forEach((function(n,s){var i=new RegExp("{\\s*"+n+"\\s*(?:=\\s*(\\S*?))?\\s*?}","g");t=t.replace(i,(function(t,s){return"function"==(i=e[n],Object.prototype.toString.call(i).toLowerCase().match(/\s(\w+)/)[1])?e[n]():void 0!==e[n]?e[n]:s||t;var i}))})),t}e.a={methods:{nutTranslate:function(){return h.apply(this,arguments)}}}},13:function(t,e,n){var s=n(9);t.exports=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},2:function(t,e){function n(){return t.exports=n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,n.apply(this,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},3:function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},4:function(t,e,n){var s=n(46),i=n(47),a=n(13),o=n(48);t.exports=function(t){return s(t)||i(t)||a(t)||o()},t.exports.__esModule=!0,t.exports.default=t.exports},46:function(t,e,n){var s=n(9);t.exports=function(t){if(Array.isArray(t))return s(t)},t.exports.__esModule=!0,t.exports.default=t.exports},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.__esModule=!0,t.exports.default=t.exports},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.__esModule=!0,t.exports.default=t.exports},49:function(t,e,n){"use strict";var s={name:"nut-actionsheet",props:{isAnimation:{type:Boolean,default:!0},isLockBgScroll:{type:Boolean,default:!1},isVisible:{type:Boolean,default:!1},isShowMask:{type:Boolean,default:!0},isClickChooseClose:{type:Boolean,default:!0},isClickCloseMask:{type:Boolean,default:!0},cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},chooseTagValue:{type:String,default:""},menuItems:{type:Array,default:function(){return[]}}},data:function(){return{}},watch:{isVisible:function(t){t&&this.$emit("open"),this.isLockBgScroll&&(t?document.body.classList.add("nut-overflow-hidden"):this.removeLockScroll())}},deactivated:function(){this.removeLockScroll()},destroyed:function(){this.removeLockScroll()},methods:{removeLockScroll:function(){document.body.classList.remove("nut-overflow-hidden")},isHighlight:function(t){return this.chooseTagValue&&this.chooseTagValue==t[this.optionTag]||0===this.chooseTagValue},closeActionSheet:function(){this.$emit("close")},cancelActionSheet:function(){this.closeActionSheet(),this.$emit("cancel")},clickActionSheetMask:function(){this.isClickCloseMask&&this.closeActionSheet()},chooseItem:function(t,e){t.disable||(this.isClickChooseClose&&this.closeActionSheet(),this.$emit("choose",t,e))}}},i=n(0),a=Object(i.a)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"nut-actionsheet"},[t.isShowMask?e("transition",{attrs:{name:t.isAnimation?"nutFade":""}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"nut-actionsheet-mask",on:{click:t.clickActionSheetMask}})]):t._e(),t._v(" "),e("transition",{attrs:{name:t.isAnimation?"nutSlideUp":""}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"nut-actionsheet-panel"},[e("div",{staticClass:"nut-actionsheet-custom"},[t._t("custom")],2),t._v(" "),t.$slots.title||t.$slots.subTitle?e("dl",{staticClass:"nut-actionsheet-modal"},[e("dt",{staticClass:"nut-actionsheet-title"},[t._t("title")],2),t._v(" "),e("dd",{staticClass:"nut-actionsheet-sub-title"},[t._t("sub-title")],2)]):t._e(),t._v(" "),e("ul",{staticClass:"nut-actionsheet-menu"},t._l(t.menuItems,(function(n,s){return e("li",{key:s,staticClass:"nut-actionsheet-item",class:{"nut-actionsheet-item-active":t.isHighlight(n),"nut-actionsheet-item-disabled":n.disable},on:{click:function(e){return t.chooseItem(n,s)}}},[t._v(t._s(n[t.optionTag]))])})),0),t._v(" "),t.cancelTxt?e("div",{staticClass:"nut-actionsheet-cancel",on:{click:t.cancelActionSheet}},[t._v(t._s(t.cancelTxt))]):t._e()])])],1)}),[],!1,null,null,null);e.a=a.exports},55:function(t,e,n){"use strict";var s,i=n(4),a=n.n(i),o=n(3),r=n.n(o),l=n(49),c=(n(62),{name:"nut-picker-slot",props:{listData:{type:Array,required:!0},defaultValue:{type:String|Number},keyIndex:{type:Number,default:0},isUpdate:{type:Boolean,default:!1},swipeDuration:{type:Number|String,default:"1000"}},data:function(){return{touchParams:{startY:0,endY:0,startTime:0,endTime:0},currIndex:1,transformY:0,scrollDistance:0,lineSpacing:36,rotation:20,timer:null,touchTime:0}},watch:{isUpdate:function(){this.transformY=0,this.modifyStatus()},defaultValue:function(){this.transformY=0,this.modifyStatus()}},methods:{updateTransform:function(t){var e=this;t&&(this.transformY=0,this.timer=setTimeout((function(){e.modifyStatus(null,t)}),10))},setRollerStyle:function(t){return"transform: rotate3d(1, 0, 0, ".concat(-this.rotation*t,"deg) translate3d(0px, 0px, 104px)")},isHidden:function(t){return t>=this.currIndex+8||t<=this.currIndex-8},setTransform:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,s=arguments.length>3?arguments[3]:void 0;"end"===e?(this.$refs.list.style.webkitTransition="transform ".concat(n,"ms cubic-bezier(0.19, 1, 0.22, 1)"),this.$refs.roller.style.webkitTransition="transform ".concat(n,"ms cubic-bezier(0.19, 1, 0.22, 1)")):(this.$refs.list.style.webkitTransition="",this.$refs.roller.style.webkitTransition=""),null!=t&&(this.$refs.list.style.webkitTransform="translate3d(0, ".concat(t,"px, 0)"),this.$refs.roller.style.webkitTransform="rotate3d(1, 0, 0, ".concat(s,")"),this.scrollDistance=t)},setMove:function(t,e,n){var s=this,i=t+this.transformY;if("end"===e){i>0&&(i=0),i<-(this.listData.length-1)*this.lineSpacing&&(i=-(this.listData.length-1)*this.lineSpacing);var a=Math.round(i/this.lineSpacing)*this.lineSpacing,o="".concat((Math.abs(Math.round(a/this.lineSpacing))+1)*this.rotation,"deg");this.setTransform(a,e,n,o),this.timer=setTimeout((function(){s.setChooseValue(a)}),n/2),this.currIndex=Math.abs(Math.round(a/this.lineSpacing))+1}else{var r="0deg";r="".concat(i<0?(Math.abs(i/this.lineSpacing)+1)*this.rotation:(-i/this.lineSpacing+1)*this.rotation,"deg"),this.setTransform(i,null,null,r),this.currIndex=Math.abs(Math.round(i/this.lineSpacing))+1}},setChooseValue:function(t){this.$emit("chooseItem",this.listData[Math.round(-t/this.lineSpacing)],this.keyIndex)},onTouchStart:function(t){t.preventDefault();var e=t.changedTouches[0];this.touchParams.startY=e.pageY,this.touchParams.startTime=t.timestamp||Date.now(),this.transformY=this.scrollDistance},onTouchMove:function(t){t.preventDefault();var e=t.changedTouches[0];this.touchParams.lastY=e.pageY,this.touchParams.lastTime=t.timestamp||Date.now();var n=this.touchParams.lastY-this.touchParams.startY;this.setMove(n)},onTouchEnd:function(t){t.preventDefault();var e=t.changedTouches[0];this.touchParams.lastY=e.pageY,this.touchParams.lastTime=t.timestamp||Date.now();var n=this.touchParams.lastY-this.touchParams.startY,s=this.touchParams.lastTime-this.touchParams.startTime;if(s<=300&&Math.abs(n)>15){var i=this.momentum(n,s);this.setMove(i,"end",+this.swipeDuration)}else this.setMove(n,"end")},modifyStatus:function(t,e){e=e||this.defaultValue;var n=-1;e&&e.value?this.listData.some((function(t,s){if(t.value==e.value)return n=s,!0})):n=this.listData.indexOf(e),this.currIndex=-1===n?1:n+1;var s=-1===n?0:n*this.lineSpacing;t&&this.setChooseValue(-s),this.setMove(-s)},stopMomentum:function(){console.log("惯性滚动结束"),this.setChooseValue(this.scrollDistance),this.setTransform(null,"end")},momentum:function(t,e){return t=Math.abs(t/e)/.003*(t<0?-1:1)}},mounted:function(){var t=this;this.$nextTick((function(){t.modifyStatus(!0)}))},beforeDestroy:function(){clearTimeout(this.timer)}}),u=n(0),h=Object(u.a)(c,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"nut-picker-list",on:{touchstart:t.onTouchStart,touchmove:t.onTouchMove,touchend:t.onTouchEnd}},[e("div",{ref:"roller",staticClass:"nut-picker-roller",on:{transitionend:t.stopMomentum}},t._l(t.listData,(function(n,s){return e("div",{key:n.label?n.label:s,staticClass:"nut-picker-roller-item",class:{"nut-picker-roller-item-hidden":t.isHidden(s+1)},style:t.setRollerStyle(s+1)},[t._v("\n "+t._s(n.value?n.value:n)+"\n ")])})),0),t._v(" "),e("div",{staticClass:"nut-picker-content"},[e("div",{ref:"list",staticClass:"nut-picker-list-panel"},[t._l(t.listData,(function(n,s){return e("div",{key:n.label?n.label:s,staticClass:"nut-picker-item"},[t._v(t._s(n.value?n.value:n)+"\n ")])})),t._v(" "),t.listData&&1===t.listData.length?e("div",{staticClass:"nut-picker-placeholder"}):t._e()],2)]),t._v(" "),e("div",{staticClass:"nut-picker-mask"}),t._v(" "),e("div",{staticClass:"nut-picker-indicator"})])}),[],!1,null,null,null).exports,f={name:"nut-picker",mixins:[n(10).a],props:{isVisible:{type:Boolean,default:!1},customClassName:{type:String,default:null},title:{type:String,default:" "},listData:{type:Array,default:function(){return[]}},defaultValueData:{type:Array,default:function(){return[]}},swipeDuration:{type:Number|String,default:"1000"}},components:(s={},r()(s,l.a.name,l.a),r()(s,h.name,h),s),data:function(){return{chooseValueData:[],cacheValueData:[],isUpdate:!1}},watch:{defaultValueData:function(){this.chooseValueData=a()(this.defaultValueData),this.cacheValueData=a()(this.defaultValueData),this.$emit("confirm",this.cacheValueData)},listData:function(){this.init()}},methods:{updateChooseValue:function(t,e,n){t.cacheValueData.splice(e,1,n);var s="picker-slot-".concat(e);t.$refs[s]&&t.$refs[s][0].updateTransform(n)},closeActionSheet:function(){this.isUpdate=!this.isUpdate,this.cacheValueData=a()(this.chooseValueData),this.$emit("close"),this.$emit("close-update",this,this.chooseValueData)},confirm:function(){var t=this;this.listData.map((function(e,n){var s="picker-slot-".concat(n);t.$refs[s]&&t.$refs[s][0].stopMomentum()})),this.$emit("confirm",this.cacheValueData),this.chooseValueData=a()(this.cacheValueData),this.$emit("close")},chooseItem:function(t,e){this.cacheValueData[e]!==t&&(this.cacheValueData[e]=t,this.$emit("choose",this,e,t,this.cacheValueData))},init:function(){if(this.defaultValueData&&this.defaultValueData.length)this.chooseValueData=a()(this.defaultValueData);else{var t=[];this.listData.map((function(e,n){t.push(e[0])})),this.chooseValueData=[].concat(t)}}},created:function(){this.init()}},p=Object(u.a)(f,(function(){var t=this,e=t._self._c;return e("nut-actionsheet",{attrs:{"is-visible":t.isVisible},on:{close:t.closeActionSheet}},[e("div",{staticClass:"nut-picker",class:t.customClassName?t.customClassName:null,attrs:{slot:"custom"},slot:"custom"},[e("div",{staticClass:"nut-picker-control"},[e("span",{staticClass:"nut-picker-cancel-btn",on:{click:t.closeActionSheet}},[t._v(t._s(t.nutTranslate("lang.cancelBtnTxt")))]),t._v(" "),e("div",{staticClass:"nut-picker-title"},[t._v(t._s(t.title?t.title:""))]),t._v(" "),e("span",{staticClass:"nut-picker-confirm-btn",on:{click:t.confirm}},[t._v(t._s(t.nutTranslate("lang.okBtnTxt")))])]),t._v(" "),e("div",{staticClass:"nut-picker-panel"},[t._l(t.listData,(function(n,s){return[e("nut-picker-slot",{key:s,ref:"picker-slot-"+s,refInFor:!0,attrs:{"default-value":t.chooseValueData[s],"is-update":t.isUpdate,"list-data":n,"key-index":s,"swipe-duration":t.swipeDuration},on:{chooseItem:t.chooseItem}})]}))],2)])])}),[],!1,null,null,null);e.a=p.exports},6:function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},62:function(t,e,n){},66:function(t,e,n){},9:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,s=new Array(e);n<e;n++)s[n]=t[n];return s},t.exports.__esModule=!0,t.exports.default=t.exports},95:function(t,e,n){"use strict";n.r(e);var s=n(55);n(66);s.a.install=function(t){t.component(s.a.name,s.a)},e.default=s.a}})}));
|
|
7
7
|
//# sourceMappingURL=picker.js.map
|