@nutui/nutui 2.3.14-beta.1 → 2.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/.DS_Store +0 -0
- package/dist/nutui.css +1 -1
- package/dist/nutui.js +2101 -271
- package/dist/nutui.js.map +1 -1
- package/dist/nutui.min.css +1 -1
- package/dist/nutui.min.js +3 -3
- package/dist/nutui.min.js.map +1 -1
- package/dist/packages/.DS_Store +0 -0
- 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 +1 -1
- package/dist/packages/address/address.js +2 -2
- package/dist/packages/address/address.js.map +1 -1
- package/dist/packages/avatar/avatar.css +1 -1
- package/dist/packages/avatar/avatar.js +2 -2
- package/dist/packages/avatar/avatar.js.map +1 -1
- package/dist/packages/backtop/backtop.css +1 -1
- package/dist/packages/backtop/backtop.js +2 -2
- package/dist/packages/backtop/backtop.js.map +1 -1
- package/dist/packages/badge/badge.css +1 -1
- package/dist/packages/badge/badge.js +2 -2
- package/dist/packages/badge/badge.js.map +1 -1
- package/dist/packages/button/button.css +1 -1
- package/dist/packages/button/button.js +2 -2
- package/dist/packages/button/button.js.map +1 -1
- package/dist/packages/buttongroup/buttongroup.css +1 -1
- 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 +1 -1
- package/dist/packages/checkbox/checkbox.js +2 -2
- package/dist/packages/checkbox/checkbox.js.map +1 -1
- package/dist/packages/checkboxgroup/checkboxgroup.css +1 -1
- package/dist/packages/checkboxgroup/checkboxgroup.js +2 -2
- package/dist/packages/checkboxgroup/checkboxgroup.js.map +1 -1
- package/dist/packages/checkboxgroup/checkboxgroup.vue +6 -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/collapseitem/collapseitem.vue +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 +1 -1
- package/dist/packages/coupon/coupon.js +2 -2
- package/dist/packages/coupon/coupon.js.map +1 -1
- package/dist/packages/datepicker/datepicker.css +1 -1
- package/dist/packages/datepicker/datepicker.js +2 -2
- package/dist/packages/datepicker/datepicker.js.map +1 -1
- package/dist/packages/dialog/dialog.css +1 -1
- package/dist/packages/dialog/dialog.js +2 -2
- package/dist/packages/dialog/dialog.js.map +1 -1
- package/dist/packages/drag/drag.css +1 -1
- package/dist/packages/drag/drag.js +2 -2
- package/dist/packages/drag/drag.js.map +1 -1
- package/dist/packages/elevator/elevator.css +1 -1
- package/dist/packages/elevator/elevator.js +2 -2
- package/dist/packages/elevator/elevator.js.map +1 -1
- package/dist/packages/fixednav/fixednav.css +1 -1
- package/dist/packages/fixednav/fixednav.js +2 -2
- package/dist/packages/fixednav/fixednav.js.map +1 -1
- package/dist/packages/flex/flex.css +1 -1
- package/dist/packages/flex/flex.js +2 -2
- package/dist/packages/flex/flex.js.map +1 -1
- package/dist/packages/icon/icon.css +1 -1
- package/dist/packages/icon/icon.js +2 -2
- package/dist/packages/icon/icon.js.map +1 -1
- package/dist/packages/imagepicker/imagepicker.css +1 -1
- package/dist/packages/imagepicker/imagepicker.js +2 -2
- package/dist/packages/imagepicker/imagepicker.js.map +1 -1
- package/dist/packages/infiniteloading/infiniteloading.css +1 -1
- package/dist/packages/infiniteloading/infiniteloading.js +2 -2
- package/dist/packages/infiniteloading/infiniteloading.js.map +1 -1
- package/dist/packages/lazyload/lazyload.css +1 -1
- package/dist/packages/lazyload/lazyload.js +1 -1
- package/dist/packages/leftslip/leftslip.css +1 -1
- package/dist/packages/leftslip/leftslip.js +2 -2
- package/dist/packages/leftslip/leftslip.js.map +1 -1
- package/dist/packages/luckdraw/luckdraw.css +1 -1
- package/dist/packages/luckdraw/luckdraw.js +2 -2
- package/dist/packages/luckdraw/luckdraw.js.map +1 -1
- package/dist/packages/luckycard/luckycard.css +1 -1
- package/dist/packages/luckycard/luckycard.js +2 -2
- package/dist/packages/luckycard/luckycard.js.map +1 -1
- package/dist/packages/magic/magic.css +1 -1
- package/dist/packages/magic/magic.js +2 -2
- package/dist/packages/magic/magic.js.map +1 -1
- package/dist/packages/menu/menu.css +1 -1
- package/dist/packages/menu/menu.js +2 -2
- package/dist/packages/menu/menu.js.map +1 -1
- package/dist/packages/navbar/navbar.css +1 -1
- package/dist/packages/navbar/navbar.js +2 -2
- package/dist/packages/navbar/navbar.js.map +1 -1
- package/dist/packages/ninegrid/ninegrid.css +1 -1
- package/dist/packages/ninegrid/ninegrid.js +2 -2
- package/dist/packages/ninegrid/ninegrid.js.map +1 -1
- package/dist/packages/noticebar/noticebar.css +1 -1
- package/dist/packages/noticebar/noticebar.js +2 -2
- package/dist/packages/noticebar/noticebar.js.map +1 -1
- package/dist/packages/notify/notify.css +1 -1
- package/dist/packages/notify/notify.js +2 -2
- package/dist/packages/notify/notify.js.map +1 -1
- package/dist/packages/numberkeyboard/numberkeyboard.css +1 -1
- package/dist/packages/numberkeyboard/numberkeyboard.js +2 -2
- package/dist/packages/numberkeyboard/numberkeyboard.js.map +1 -1
- package/dist/packages/picker/picker.css +1 -1
- package/dist/packages/picker/picker.js +2 -2
- package/dist/packages/picker/picker.js.map +1 -1
- package/dist/packages/popup/popup.css +1 -1
- package/dist/packages/popup/popup.js +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 +1 -1
- package/dist/packages/progress/progress.js +2 -2
- package/dist/packages/progress/progress.js.map +1 -1
- package/dist/packages/radio/radio.css +1 -1
- package/dist/packages/radio/radio.js +2 -2
- package/dist/packages/radio/radio.js.map +1 -1
- package/dist/packages/radiogroup/radiogroup.css +1 -1
- package/dist/packages/radiogroup/radiogroup.js +2 -2
- package/dist/packages/radiogroup/radiogroup.js.map +1 -1
- package/dist/packages/range/range.css +1 -1
- package/dist/packages/range/range.js +2 -2
- package/dist/packages/range/range.js.map +1 -1
- package/dist/packages/rate/rate.css +1 -1
- package/dist/packages/rate/rate.js +2 -2
- package/dist/packages/rate/rate.js.map +1 -1
- package/dist/packages/row/row.css +1 -1
- package/dist/packages/row/row.js +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 +1 -1
- package/dist/packages/searchbar/searchbar.js +2 -2
- package/dist/packages/searchbar/searchbar.js.map +1 -1
- package/dist/packages/shortpassword/shortpassword.css +1 -1
- package/dist/packages/shortpassword/shortpassword.js +2 -2
- package/dist/packages/shortpassword/shortpassword.js.map +1 -1
- package/dist/packages/sidenavbar/sidenavbar.css +1 -1
- package/dist/packages/sidenavbar/sidenavbar.js +2 -2
- package/dist/packages/sidenavbar/sidenavbar.js.map +1 -1
- package/dist/packages/sidenavbaritem/sidenavbaritem.css +1 -1
- package/dist/packages/sidenavbaritem/sidenavbaritem.js +2 -2
- package/dist/packages/sidenavbaritem/sidenavbaritem.js.map +1 -1
- package/dist/packages/signature/signature.css +1 -1
- package/dist/packages/signature/signature.js +2 -2
- package/dist/packages/signature/signature.js.map +1 -1
- package/dist/packages/skeleton/skeleton.css +1 -1
- package/dist/packages/skeleton/skeleton.js +2 -2
- package/dist/packages/skeleton/skeleton.js.map +1 -1
- package/dist/packages/slider/slider.css +1 -1
- package/dist/packages/slider/slider.js +2 -2
- package/dist/packages/slider/slider.js.map +1 -1
- package/dist/packages/stepper/stepper.css +1 -1
- package/dist/packages/stepper/stepper.js +2 -2
- package/dist/packages/stepper/stepper.js.map +1 -1
- package/dist/packages/steps/steps.css +1 -1
- package/dist/packages/steps/steps.js +2 -2
- package/dist/packages/steps/steps.js.map +1 -1
- package/dist/packages/subsidenavbar/subsidenavbar.css +1 -1
- package/dist/packages/subsidenavbar/subsidenavbar.js +2 -2
- package/dist/packages/subsidenavbar/subsidenavbar.js.map +1 -1
- package/dist/packages/swiper/swiper.css +1 -1
- package/dist/packages/swiper/swiper.js +2 -2
- package/dist/packages/swiper/swiper.js.map +1 -1
- package/dist/packages/switch/switch.css +1 -1
- package/dist/packages/switch/switch.js +2 -2
- package/dist/packages/switch/switch.js.map +1 -1
- package/dist/packages/tab/tab.css +1 -1
- package/dist/packages/tab/tab.js +2 -2
- package/dist/packages/tab/tab.js.map +1 -1
- package/dist/packages/tabbar/tabbar.css +1 -1
- package/dist/packages/tabbar/tabbar.js +2 -2
- package/dist/packages/tabbar/tabbar.js.map +1 -1
- package/dist/packages/tabpanel/tabpanel.css +1 -1
- package/dist/packages/tabpanel/tabpanel.js +2 -2
- package/dist/packages/tabpanel/tabpanel.js.map +1 -1
- package/dist/packages/tabselect/tabselect.css +1 -1
- package/dist/packages/tabselect/tabselect.js +2 -2
- package/dist/packages/tabselect/tabselect.js.map +1 -1
- package/dist/packages/textbox/textbox.css +1 -1
- package/dist/packages/textbox/textbox.js +2 -2
- package/dist/packages/textbox/textbox.js.map +1 -1
- package/dist/packages/textinput/textinput.css +1 -1
- package/dist/packages/textinput/textinput.js +2 -2
- package/dist/packages/textinput/textinput.js.map +1 -1
- package/dist/packages/timeline/timeline.css +1 -1
- package/dist/packages/timeline/timeline.js +2 -2
- package/dist/packages/timeline/timeline.js.map +1 -1
- package/dist/packages/timelineitem/timelineitem.css +1 -1
- package/dist/packages/timelineitem/timelineitem.js +2 -2
- package/dist/packages/timelineitem/timelineitem.js.map +1 -1
- package/dist/packages/toast/toast.css +1 -1
- package/dist/packages/toast/toast.js +2 -2
- package/dist/packages/toast/toast.js.map +1 -1
- package/dist/packages/uploader/uploader.css +1 -1
- package/dist/packages/uploader/uploader.js +2 -2
- package/dist/packages/uploader/uploader.js.map +1 -1
- package/dist/packages/video/video.css +1 -1
- package/dist/packages/video/video.js +2 -2
- package/dist/packages/video/video.js.map +1 -1
- package/package.json +5 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://[name]/webpack/universalModuleDefinition","webpack://[name]/webpack/bootstrap","webpack://[name]/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://[name]/./src/packages/navbar/navbar.vue?454d","webpack://[name]/./src/packages/navbar/navbar.vue?015f","webpack://[name]/src/packages/navbar/navbar.vue","webpack://[name]/./src/packages/navbar/navbar.vue","webpack://[name]/./src/packages/navbar/index.js"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","props","title","type","String","default","leftShow","Boolean","rightShow","data","methods","onClickBack","$router","back","window","history","_vm","_c","_self","staticClass","directives","rawName","expression","on","$event","$emit","_t","_v","_s","NavBar","install","Vue","component"],"mappings":";;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,SAAU,GAAIH,GACK,iBAAZC,QACdA,QAAgB,OAAID,IAEpBD,EAAa,OAAIC,IARnB,CASoB,oBAATK,KAAuBA,KAAOC,MAAO,WAChD,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUR,QAGnC,IAAIC,EAASK,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHV,QAAS,IAUV,OANAW,EAAQH,GAAUI,KAAKX,EAAOD,QAASC,EAAQA,EAAOD,QAASO,GAG/DN,EAAOS,GAAI,EAGJT,EAAOD,QA0Df,OArDAO,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAASf,EAASgB,EAAMC,GAC3CV,EAAoBW,EAAElB,EAASgB,IAClCG,OAAOC,eAAepB,EAASgB,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEV,EAAoBgB,EAAI,SAASvB,GACX,oBAAXwB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAepB,EAASwB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAepB,EAAS,aAAc,CAAE0B,OAAO,KAQvDnB,EAAoBoB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQnB,EAAoBmB,IAC/B,EAAPE,EAAU,OAA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AACE,YAAY,cAAc,CAACF,EAAG,KAAK,CAACE,YAAY,YAAYI,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOR,EAAIS,MAAM,qBAAqB,CAACT,EAAIU,GAAG,WAAU,WAAW,MAAO,CAACT,EAAG,OAAO,CAACG,WAAW,CAAC,CAAC3E,KAAK,OAAO4E,QAAQ,SAASlE,MAAO6D,EAAS,MAAEM,WAAW,WAAW,CAACN,EAAIW,GAAGX,EAAIY,GAAGZ,EAAId,eAAc,KAAKc,EAAIW,GAAG,KAAKV,EAAG,MAAM,CAACG,WAAW,CAAC,CAAC3E,KAAK,OAAO4E,QAAQ,SAASlE,MAAO6D,EAAa,UAAEM,WAAW,cAAcH,YAAY,aAAa,CAACH,EAAIU,GAAG,SAASV,EAAIW,GAAG,KAAKV,EAAG,MAAM,CAACE,YAAY,OAAOI,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOR,EAAIS,MAAM,oBAAoB,CAACT,EAAIU,GAAG,aAAY,WAAW,MAAO,CAACT,EAAG,IAAI,CAACE,YAAY,mBAAkB,IAAI,OAE5iC,IGSpB,EACA,KACA,KACA,M,cCXFU,EAAOC,QAAU,SAASC,GACxBA,EAAIC,UAAUH,EAAOpF,KAAMoF,IAGdA,a","file":"navbar/navbar.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(\"navbar\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"navbar\"] = factory();\n\telse\n\t\troot[\"navbar\"] = 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 = 176);\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 render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"nut-navbar\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.leftShow),expression:\"leftShow\"}],staticClass:\"nav-left\"},[_c('div',{staticClass:\"back\",on:{\"click\":function($event){return _vm.$emit('on-click-back')}}},[_vm._t(\"back-icon\",function(){return [_c('i',{staticClass:\"back-icon\"})]})],2),_vm._v(\" \"),_vm._t(\"left\")],2),_vm._v(\" \"),_c('div',{staticClass:\"nav-center\"},[_c('h3',{staticClass:\"nav-title\",on:{\"click\":function($event){return _vm.$emit('on-click-title')}}},[_vm._t(\"default\",function(){return [_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.title),expression:\"title\"}]},[_vm._v(_vm._s(_vm.title))])]})],2)]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.rightShow),expression:\"rightShow\"}],staticClass:\"nav-right\"},[_vm._t(\"right\"),_vm._v(\" \"),_c('div',{staticClass:\"more\",on:{\"click\":function($event){return _vm.$emit('on-click-more')}}},[_vm._t(\"more-icon\",function(){return [_c('i',{staticClass:\"more-icon\"})]})],2)],2)])\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!./navbar.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!./navbar.vue?vue&type=script&lang=js&\"","<template>\n <div class=\"nut-navbar\">\n <div class=\"nav-left\" v-show=\"leftShow\">\n <div class=\"back\" @click=\"$emit('on-click-back')\">\n <slot name=\"back-icon\">\n <i class=\"back-icon\"></i>\n </slot>\n </div>\n <slot name=\"left\"></slot>\n </div>\n <div class=\"nav-center\">\n <h3 class=\"nav-title\" @click=\"$emit('on-click-title')\">\n <slot>\n <span v-show=\"title\">{{ title }}</span>\n </slot>\n </h3>\n </div>\n <div class=\"nav-right\" v-show=\"rightShow\">\n <slot name=\"right\"></slot>\n <div class=\"more\" @click=\"$emit('on-click-more')\">\n <slot name=\"more-icon\">\n <i class=\"more-icon\"></i>\n </slot>\n </div>\n </div>\n </div>\n</template>\n<script>\nexport default {\n name: 'nut-navbar',\n props: {\n title: {\n type: String,\n default: 'NavBar'\n },\n leftShow: {\n type: Boolean,\n default: true\n },\n rightShow: {\n type: Boolean,\n default: true\n }\n },\n data() {\n return {};\n },\n methods: {\n onClickBack() {\n // this.$emit('on-click-back');\n this.$router ? this.$router.back() : window.history.back();\n }\n }\n};\n</script>\n","import { render, staticRenderFns } from \"./navbar.vue?vue&type=template&id=43684a05&\"\nimport script from \"./navbar.vue?vue&type=script&lang=js&\"\nexport * from \"./navbar.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 NavBar from './navbar.vue';\nimport './navbar.scss';\n\nNavBar.install = function(Vue) {\n Vue.component(NavBar.name, NavBar);\n};\n\nexport default NavBar;\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://[name]/webpack/universalModuleDefinition","webpack://[name]/webpack/bootstrap","webpack://[name]/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://[name]/./src/packages/navbar/navbar.vue?d3be","webpack://[name]/./src/packages/navbar/navbar.vue?015f","webpack://[name]/src/packages/navbar/navbar.vue","webpack://[name]/./src/packages/navbar/navbar.vue","webpack://[name]/./src/packages/navbar/index.js"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","props","title","type","String","default","leftShow","Boolean","rightShow","data","methods","onClickBack","$router","back","window","history","_vm","_h","$createElement","_c","_self","staticClass","directives","rawName","expression","on","$event","$emit","_t","_v","_s","NavBar","install","Vue","component"],"mappings":";;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,SAAU,GAAIH,GACK,iBAAZC,QACdA,QAAgB,OAAID,IAEpBD,EAAa,OAAIC,IARnB,CASoB,oBAATK,KAAuBA,KAAOC,MAAO,WAChD,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUR,QAGnC,IAAIC,EAASK,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHV,QAAS,IAUV,OANAW,EAAQH,GAAUI,KAAKX,EAAOD,QAASC,EAAQA,EAAOD,QAASO,GAG/DN,EAAOS,GAAI,EAGJT,EAAOD,QA0Df,OArDAO,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAASf,EAASgB,EAAMC,GAC3CV,EAAoBW,EAAElB,EAASgB,IAClCG,OAAOC,eAAepB,EAAS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KAAK,OAAO8E,QAAQ,SAASpE,MAAO6D,EAAY,SAAEQ,WAAW,aAAaH,YAAY,YAAY,CAACF,EAAG,MAAM,CAACE,YAAY,OAAOI,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,MAAM,oBAAoB,CAACX,EAAIY,GAAG,aAAY,WAAW,MAAO,CAACT,EAAG,IAAI,CAACE,YAAY,mBAAkB,GAAGL,EAAIa,GAAG,KAAKb,EAAIY,GAAG,SAAS,GAAGZ,EAAIa,GAAG,KAAKV,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,KAAK,CAACE,YAAY,YAAYI,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,MAAM,qBAAqB,CAACX,EAAIY,GAAG,WAAU,WAAW,MAAO,CAACT,EAAG,OAAO,CAACG,WAAW,CAAC,CAAC7E,KAAK,OAAO8E,QAAQ,SAASpE,MAAO6D,EAAS,MAAEQ,WAAW,WAAW,CAACR,EAAIa,GAAGb,EAAIc,GAAGd,EAAId,eAAc,KAAKc,EAAIa,GAAG,KAAKV,EAAG,MAAM,CAACG,WAAW,CAAC,CAAC7E,KAAK,OAAO8E,QAAQ,SAASpE,MAAO6D,EAAa,UAAEQ,WAAW,cAAcH,YAAY,aAAa,CAACL,EAAIY,GAAG,SAASZ,EAAIa,GAAG,KAAKV,EAAG,MAAM,CAACE,YAAY,OAAOI,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,MAAM,oBAAoB,CAACX,EAAIY,GAAG,aAAY,WAAW,MAAO,CAACT,EAAG,IAAI,CAACE,YAAY,mBAAkB,IAAI,OACzkC,IGUpB,EACA,KACA,KACA,M,cCXFU,EAAOC,QAAU,SAASC,GACxBA,EAAIC,UAAUH,EAAOtF,KAAMsF,IAGdA,a","file":"navbar/navbar.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(\"navbar\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"navbar\"] = factory();\n\telse\n\t\troot[\"navbar\"] = 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 = 176);\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 render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"nut-navbar\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.leftShow),expression:\"leftShow\"}],staticClass:\"nav-left\"},[_c('div',{staticClass:\"back\",on:{\"click\":function($event){return _vm.$emit('on-click-back')}}},[_vm._t(\"back-icon\",function(){return [_c('i',{staticClass:\"back-icon\"})]})],2),_vm._v(\" \"),_vm._t(\"left\")],2),_vm._v(\" \"),_c('div',{staticClass:\"nav-center\"},[_c('h3',{staticClass:\"nav-title\",on:{\"click\":function($event){return _vm.$emit('on-click-title')}}},[_vm._t(\"default\",function(){return [_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.title),expression:\"title\"}]},[_vm._v(_vm._s(_vm.title))])]})],2)]),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.rightShow),expression:\"rightShow\"}],staticClass:\"nav-right\"},[_vm._t(\"right\"),_vm._v(\" \"),_c('div',{staticClass:\"more\",on:{\"click\":function($event){return _vm.$emit('on-click-more')}}},[_vm._t(\"more-icon\",function(){return [_c('i',{staticClass:\"more-icon\"})]})],2)],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./navbar.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!./navbar.vue?vue&type=script&lang=js&\"","<template>\n <div class=\"nut-navbar\">\n <div class=\"nav-left\" v-show=\"leftShow\">\n <div class=\"back\" @click=\"$emit('on-click-back')\">\n <slot name=\"back-icon\">\n <i class=\"back-icon\"></i>\n </slot>\n </div>\n <slot name=\"left\"></slot>\n </div>\n <div class=\"nav-center\">\n <h3 class=\"nav-title\" @click=\"$emit('on-click-title')\">\n <slot>\n <span v-show=\"title\">{{ title }}</span>\n </slot>\n </h3>\n </div>\n <div class=\"nav-right\" v-show=\"rightShow\">\n <slot name=\"right\"></slot>\n <div class=\"more\" @click=\"$emit('on-click-more')\">\n <slot name=\"more-icon\">\n <i class=\"more-icon\"></i>\n </slot>\n </div>\n </div>\n </div>\n</template>\n<script>\nexport default {\n name: 'nut-navbar',\n props: {\n title: {\n type: String,\n default: 'NavBar'\n },\n leftShow: {\n type: Boolean,\n default: true\n },\n rightShow: {\n type: Boolean,\n default: true\n }\n },\n data() {\n return {};\n },\n methods: {\n onClickBack() {\n // this.$emit('on-click-back');\n this.$router ? this.$router.back() : window.history.back();\n }\n }\n};\n</script>\n","import { render, staticRenderFns } from \"./navbar.vue?vue&type=template&id=43684a05&\"\nimport script from \"./navbar.vue?vue&type=script&lang=js&\"\nexport * from \"./navbar.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 NavBar from './navbar.vue';\nimport './navbar.scss';\n\nNavBar.install = function(Vue) {\n Vue.component(NavBar.name, NavBar);\n};\n\nexport default NavBar;\n"],"sourceRoot":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.14 - ninegrid.css, ea1cfeedc4af744045aa, Thu Jul 27 2023 18:33:12 GMT+0800 (GMT+08:00)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/.fade-x-leave-active{-webkit-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease}.fade-x-enter,.fade-x-leave-to{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%)}.fade-x-enter-active{animation:fade-in .6s;-ms-animation:fade-in .6s;-webkit-animation:fade-in .6s}.bounce-enter-active{animation:bounce-in .6s;-ms-animation:bounce-in .6s;-webkit-animation:bounce-in .6s}.bounce-leave-active{-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease}.bounce-enter,.bounce-leave-to{-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}@-webkit-keyframes fade-in{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}60%{-webkit-transform:translateX(0);transform:translateX(0)}80%{-webkit-transform:translateX(80px);transform:translateX(80px)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes fade-in{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}60%{-webkit-transform:translateX(0);transform:translateX(0)}80%{-webkit-transform:translateX(80px);transform:translateX(80px)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes bounce-in{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.2);transform:scale(1.2)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes bounce-in{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.2);transform:scale(1.2)}to{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes shake-rotate{0%{-webkit-transform:translate(0) rotate(0deg);transform:translate(0) rotate(0deg)}2%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}4%{-webkit-transform:translate(0) rotate(-7.5deg);transform:translate(0) rotate(-7.5deg)}6%{-webkit-transform:translate(0) rotate(-2.5deg);transform:translate(0) rotate(-2.5deg)}8%{-webkit-transform:translate(0) rotate(6.5deg);transform:translate(0) rotate(6.5deg)}10%{-webkit-transform:translate(0) rotate(-4.5deg);transform:translate(0) rotate(-4.5deg)}12%{-webkit-transform:translate(0) rotate(.5deg);transform:translate(0) rotate(.5deg)}14%{-webkit-transform:translate(0) rotate(-6.5deg);transform:translate(0) rotate(-6.5deg)}16%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}18%{-webkit-transform:translate(0) rotate(-2.5deg);transform:translate(0) rotate(-2.5deg)}20%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}22%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}24%{-webkit-transform:translate(0) rotate(2.5deg);transform:translate(0) rotate(2.5deg)}26%{-webkit-transform:translate(0) rotate(6.5deg);transform:translate(0) rotate(6.5deg)}28%{-webkit-transform:translate(0) rotate(2.5deg);transform:translate(0) rotate(2.5deg)}30%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}32%{-webkit-transform:translate(0) rotate(-4.5deg);transform:translate(0) rotate(-4.5deg)}34%{-webkit-transform:translate(0) rotate(-3.5deg);transform:translate(0) rotate(-3.5deg)}36%{-webkit-transform:translate(0) rotate(-.5deg);transform:translate(0) rotate(-.5deg)}38%{-webkit-transform:translate(0) rotate(4.5deg);transform:translate(0) rotate(4.5deg)}40%{-webkit-transform:translate(0) rotate(4.5deg);transform:translate(0) rotate(4.5deg)}42%{-webkit-transform:translate(0) rotate(-.5deg);transform:translate(0) rotate(-.5deg)}44%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}46%{-webkit-transform:translate(0) rotate(-.5deg);transform:translate(0) rotate(-.5deg)}48%{-webkit-transform:translate(0) rotate(-7.5deg);transform:translate(0) rotate(-7.5deg)}50%{-webkit-transform:translate(0) rotate(3.5deg);transform:translate(0) rotate(3.5deg)}52%{-webkit-transform:translate(0) rotate(-5.5deg);transform:translate(0) rotate(-5.5deg)}54%{-webkit-transform:translate(0) rotate(-6.5deg);transform:translate(0) rotate(-6.5deg)}56%{-webkit-transform:translate(0) rotate(-.5deg);transform:translate(0) rotate(-.5deg)}58%{-webkit-transform:translate(0) rotate(3.5deg);transform:translate(0) rotate(3.5deg)}60%{-webkit-transform:translate(0) rotate(-2.5deg);transform:translate(0) rotate(-2.5deg)}62%{-webkit-transform:translate(0) rotate(3.5deg);transform:translate(0) rotate(3.5deg)}64%{-webkit-transform:translate(0) rotate(6.5deg);transform:translate(0) rotate(6.5deg)}66%{-webkit-transform:translate(0) rotate(-6.5deg);transform:translate(0) rotate(-6.5deg)}68%{-webkit-transform:translate(0) rotate(-2.5deg);transform:translate(0) rotate(-2.5deg)}70%{-webkit-transform:translate(0) rotate(-3.5deg);transform:translate(0) rotate(-3.5deg)}72%{-webkit-transform:translate(0) rotate(-6.5deg);transform:translate(0) rotate(-6.5deg)}74%{-webkit-transform:translate(0) rotate(-5.5deg);transform:translate(0) rotate(-5.5deg)}76%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}78%{-webkit-transform:translate(0) rotate(-1.5deg);transform:translate(0) rotate(-1.5deg)}80%{-webkit-transform:translate(0) rotate(3.5deg);transform:translate(0) rotate(3.5deg)}82%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}84%{-webkit-transform:translate(0) rotate(-7.5deg);transform:translate(0) rotate(-7.5deg)}86%{-webkit-transform:translate(0) rotate(-.5deg);transform:translate(0) rotate(-.5deg)}88%{-webkit-transform:translate(0) rotate(.5deg);transform:translate(0) rotate(.5deg)}90%{-webkit-transform:translate(0) rotate(-3.5deg);transform:translate(0) rotate(-3.5deg)}92%{-webkit-transform:translate(0) rotate(-4.5deg);transform:translate(0) rotate(-4.5deg)}94%{-webkit-transform:translate(0) rotate(2.5deg);transform:translate(0) rotate(2.5deg)}96%{-webkit-transform:translate(0) rotate(2.5deg);transform:translate(0) rotate(2.5deg)}98%{-webkit-transform:translate(0) rotate(-2.5deg);transform:translate(0) rotate(-2.5deg)}}@keyframes shake-rotate{0%{-webkit-transform:translate(0) rotate(0deg);transform:translate(0) rotate(0deg)}2%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}4%{-webkit-transform:translate(0) rotate(-7.5deg);transform:translate(0) rotate(-7.5deg)}6%{-webkit-transform:translate(0) rotate(-2.5deg);transform:translate(0) rotate(-2.5deg)}8%{-webkit-transform:translate(0) rotate(6.5deg);transform:translate(0) rotate(6.5deg)}10%{-webkit-transform:translate(0) rotate(-4.5deg);transform:translate(0) rotate(-4.5deg)}12%{-webkit-transform:translate(0) rotate(.5deg);transform:translate(0) rotate(.5deg)}14%{-webkit-transform:translate(0) rotate(-6.5deg);transform:translate(0) rotate(-6.5deg)}16%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}18%{-webkit-transform:translate(0) rotate(-2.5deg);transform:translate(0) rotate(-2.5deg)}20%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}22%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}24%{-webkit-transform:translate(0) rotate(2.5deg);transform:translate(0) rotate(2.5deg)}26%{-webkit-transform:translate(0) rotate(6.5deg);transform:translate(0) rotate(6.5deg)}28%{-webkit-transform:translate(0) rotate(2.5deg);transform:translate(0) rotate(2.5deg)}30%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}32%{-webkit-transform:translate(0) rotate(-4.5deg);transform:translate(0) rotate(-4.5deg)}34%{-webkit-transform:translate(0) rotate(-3.5deg);transform:translate(0) rotate(-3.5deg)}36%{-webkit-transform:translate(0) rotate(-.5deg);transform:translate(0) rotate(-.5deg)}38%{-webkit-transform:translate(0) rotate(4.5deg);transform:translate(0) rotate(4.5deg)}40%{-webkit-transform:translate(0) rotate(4.5deg);transform:translate(0) rotate(4.5deg)}42%{-webkit-transform:translate(0) rotate(-.5deg);transform:translate(0) rotate(-.5deg)}44%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}46%{-webkit-transform:translate(0) rotate(-.5deg);transform:translate(0) rotate(-.5deg)}48%{-webkit-transform:translate(0) rotate(-7.5deg);transform:translate(0) rotate(-7.5deg)}50%{-webkit-transform:translate(0) rotate(3.5deg);transform:translate(0) rotate(3.5deg)}52%{-webkit-transform:translate(0) rotate(-5.5deg);transform:translate(0) rotate(-5.5deg)}54%{-webkit-transform:translate(0) rotate(-6.5deg);transform:translate(0) rotate(-6.5deg)}56%{-webkit-transform:translate(0) rotate(-.5deg);transform:translate(0) rotate(-.5deg)}58%{-webkit-transform:translate(0) rotate(3.5deg);transform:translate(0) rotate(3.5deg)}60%{-webkit-transform:translate(0) rotate(-2.5deg);transform:translate(0) rotate(-2.5deg)}62%{-webkit-transform:translate(0) rotate(3.5deg);transform:translate(0) rotate(3.5deg)}64%{-webkit-transform:translate(0) rotate(6.5deg);transform:translate(0) rotate(6.5deg)}66%{-webkit-transform:translate(0) rotate(-6.5deg);transform:translate(0) rotate(-6.5deg)}68%{-webkit-transform:translate(0) rotate(-2.5deg);transform:translate(0) rotate(-2.5deg)}70%{-webkit-transform:translate(0) rotate(-3.5deg);transform:translate(0) rotate(-3.5deg)}72%{-webkit-transform:translate(0) rotate(-6.5deg);transform:translate(0) rotate(-6.5deg)}74%{-webkit-transform:translate(0) rotate(-5.5deg);transform:translate(0) rotate(-5.5deg)}76%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}78%{-webkit-transform:translate(0) rotate(-1.5deg);transform:translate(0) rotate(-1.5deg)}80%{-webkit-transform:translate(0) rotate(3.5deg);transform:translate(0) rotate(3.5deg)}82%{-webkit-transform:translate(0) rotate(1.5deg);transform:translate(0) rotate(1.5deg)}84%{-webkit-transform:translate(0) rotate(-7.5deg);transform:translate(0) rotate(-7.5deg)}86%{-webkit-transform:translate(0) rotate(-.5deg);transform:translate(0) rotate(-.5deg)}88%{-webkit-transform:translate(0) rotate(.5deg);transform:translate(0) rotate(.5deg)}90%{-webkit-transform:translate(0) rotate(-3.5deg);transform:translate(0) rotate(-3.5deg)}92%{-webkit-transform:translate(0) rotate(-4.5deg);transform:translate(0) rotate(-4.5deg)}94%{-webkit-transform:translate(0) rotate(2.5deg);transform:translate(0) rotate(2.5deg)}96%{-webkit-transform:translate(0) rotate(2.5deg);transform:translate(0) rotate(2.5deg)}98%{-webkit-transform:translate(0) rotate(-2.5deg);transform:translate(0) rotate(-2.5deg)}}@-webkit-keyframes box-rotate{0%{-webkit-transform:translate(0) rotate(0deg);transform:translate(0) rotate(0deg)}to{-webkit-transform:translate(0) rotate(1turn);transform:translate(0) rotate(1turn)}}@keyframes box-rotate{0%{-webkit-transform:translate(0) rotate(0deg);transform:translate(0) rotate(0deg)}to{-webkit-transform:translate(0) rotate(1turn);transform:translate(0) rotate(1turn)}}.nut-ninegrid{height:357px;width:357px;-ms-flex-negative:0;flex-shrink:0;background-image:url(//img10.360buyimg.com/imagetools/jfs/t1/182262/4/21143/406696/6126fceeEccce5223/61a6b338777fd857.png);background-size:100% 100%;overflow:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:12px;-webkit-perspective:1000;perspective:1000}.nut-ninegrid .item{position:relative;width:107px;height:107px}.nut-ninegrid .item .back,.nut-ninegrid .item .front{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:8px;padding:9px 8px 0;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;background-image:-webkit-gradient(linear,left top,left bottom,from(#ffefd1),to(#ffc8a4));background-image:-o-linear-gradient(#ffefd1,#ffc8a4);background-image:linear-gradient(#ffefd1,#ffc8a4);-webkit-transition:1s;-o-transition:1s;transition:1s;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.nut-ninegrid .item .back>p,.nut-ninegrid .item .front>p{width:100%;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;font-family:PingFangSC-Medium;text-align:center;font-size:13px;height:15px;margin-bottom:3px;color:#2e2d2d;-ms-flex-negative:0;flex-shrink:0}.nut-ninegrid .item .back .nut-price,.nut-ninegrid .item .front .nut-price{height:40px}.nut-ninegrid .item .back .nut-price>span,.nut-ninegrid .item .front .nut-price>span{font-family:PingFangSC-Medium;font-size:10px!important;color:#f91232!important}.nut-ninegrid .item .back .nut-price>span.price-big,.nut-ninegrid .item .front .nut-price>span.price-big{font-size:16px!important}.nut-ninegrid .item .back>img,.nut-ninegrid .item .front>img{width:71px;height:71px;-ms-flex-negative:0;flex-shrink:0}.nut-ninegrid .item .front{z-index:2;-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}.nut-ninegrid .item .back{-webkit-transform:rotateY(-180deg);transform:rotateY(-180deg)}.nut-ninegrid .item.d{-webkit-transform:rotate(3deg);-ms-transform:rotate(3deg);transform:rotate(3deg)}.nut-ninegrid .item.active .front{-webkit-transform:rotateY(180deg);transform:rotateY(180deg)}.nut-ninegrid .item.active .back{-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}.nut-ninegrid .item.shake{-webkit-animation:shake-rotate .5s 1;animation:shake-rotate .5s 1}.nut-ninegrid .item .center{border-radius:8px;overflow:hidden;background-image:-webkit-gradient(linear,left top,left bottom,from(#ff733e),to(#ff4e57));background-image:-o-linear-gradient(#ff733e,#ff4e57);background-image:linear-gradient(#ff733e,#ff4e57);border:1px solid #ffa07c;width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.nut-ninegrid .item .center>img{width:15px;height:16px}.nut-ninegrid .item .center>img.rotate{-webkit-animation-name:box-rotate;animation-name:box-rotate;-webkit-animation-duration:1s;animation-duration:1s}.nut-ninegrid .item .center>span{font-family:PingFangSC-Medium;font-size:16px;color:#ffd4a7}.nut-ninegrid .item .center>p{font-family:PingFangSC-Medium;font-size:12px;color:#ffd4a7}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.14 - ninegrid.js, ea1cfeedc4af744045aa, Thu Jul 27 2023 18:33:12 GMT+0800 (GMT+08:00)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("ninegrid",[],e):"object"==typeof exports?exports.ninegrid=e():t.ninegrid=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},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=214)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,s,a){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):i&&(c=a?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var f=u.render;u.render=function(t,e){return c.call(e),f(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},157:function(t,e,n){},214:function(t,e,n){"use strict";n.r(e);var r={name:"nut-ninegrid",props:{data:{type:[Object,Array],default:function(){return[]}}},data:function(){return{gridList:[],activeState:!1,shakeIndexs:[],loadingDataState:!1,countDown:10,number:0}},watch:{data:{handler:function(t){t&&this.resResponse(t)}}},methods:{resResponse:function(t){if(t.length>15){var e=t,n=this.spArray(8,e),r=n[0],i=n[1],o=[];r.forEach((function(t,e){o.push({front:t,back:i[e]})})),o.splice(4,0,{}),this.gridList=o}},beginTimeIntervar:function(){var t=this;this.timeIntervar=setInterval((function(){t.countDown--,0==t.countDown&&t.refresh(),7==t.countDown?t.shakeIndexs=[2,4,6,8]:3==t.countDown&&(t.shakeIndexs=[1,3,7,9])}),1e3)},refresh:function(){var t=this;this.loadingDataState||(this.number+=1,this.countDown=10,this.shakeIndexs=[],this.activeState=!this.activeState,this.number%2==0?(console.log(123),this.$emit("refresh")):(this.loadingDataState=!0,setTimeout((function(){t.loadingDataState=!1}),1e3)))},toDetail:function(t){this.$emit("toDetail",t)},spArray:function(t,e){var n,r=[];for(n=0;n<e.length;)r.push(e.slice(n,n+=t));return r}},mounted:function(){this.resResponse(this.data),this.beginTimeIntervar()}},i=n(0),o=Object(i.a)(r,(function(){var t=this,e=t._self._c;return
|
|
6
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("ninegrid",[],e):"object"==typeof exports?exports.ninegrid=e():t.ninegrid=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},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=214)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,s,a){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):i&&(c=a?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var f=u.render;u.render=function(t,e){return c.call(e),f(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},157:function(t,e,n){},214:function(t,e,n){"use strict";n.r(e);var r={name:"nut-ninegrid",props:{data:{type:[Object,Array],default:function(){return[]}}},data:function(){return{gridList:[],activeState:!1,shakeIndexs:[],loadingDataState:!1,countDown:10,number:0}},watch:{data:{handler:function(t){t&&this.resResponse(t)}}},methods:{resResponse:function(t){if(t.length>15){var e=t,n=this.spArray(8,e),r=n[0],i=n[1],o=[];r.forEach((function(t,e){o.push({front:t,back:i[e]})})),o.splice(4,0,{}),this.gridList=o}},beginTimeIntervar:function(){var t=this;this.timeIntervar=setInterval((function(){t.countDown--,0==t.countDown&&t.refresh(),7==t.countDown?t.shakeIndexs=[2,4,6,8]:3==t.countDown&&(t.shakeIndexs=[1,3,7,9])}),1e3)},refresh:function(){var t=this;this.loadingDataState||(this.number+=1,this.countDown=10,this.shakeIndexs=[],this.activeState=!this.activeState,this.number%2==0?(console.log(123),this.$emit("refresh")):(this.loadingDataState=!0,setTimeout((function(){t.loadingDataState=!1}),1e3)))},toDetail:function(t){this.$emit("toDetail",t)},spArray:function(t,e){var n,r=[];for(n=0;n<e.length;)r.push(e.slice(n,n+=t));return r}},mounted:function(){this.resResponse(this.data),this.beginTimeIntervar()}},i=n(0),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nut-ninegrid"},t._l(t.gridList,(function(e,r){return n("div",{key:r,staticClass:"item",class:[{active:t.activeState&&4!=r},{shake:t.shakeIndexs.includes(r+1)}]},[4==r?n("div",{staticClass:"center",on:{click:function(e){return t.refresh(!0)}}},[n("img",{class:{rotate:t.loadingDataState},attrs:{src:"//img13.360buyimg.com/imagetools/jfs/t1/190805/24/20092/1136/6126fce9E6c61cf21/acd44eec9fc694bd.png",alt:"refresh.png"}}),t._v(" "),n("span",[t._v("换一换")]),t._v(" "),n("p",[t._v(t._s(t.countDown)+"S 后自动换")])]):[n("div",{staticClass:"front",on:{click:function(n){return t.toDetail(e.front)}}},[n("p",[t._v(t._s(e.front.name))]),t._v(" "),n("nut-price",{staticClass:"price",attrs:{price:e.front.price,thousands:!0}}),t._v(" "),n("img",{attrs:{src:e.front.pictureUrl}})],1),t._v(" "),n("div",{staticClass:"back",on:{click:function(n){return t.toDetail(e.back)}}},[n("p",[t._v(t._s(e.back.name))]),t._v(" "),n("nut-price",{staticClass:"price",attrs:{price:e.back.price,thousands:!0}}),t._v(" "),n("img",{attrs:{src:e.back.pictureUrl}})],1)]],2)})),0)}),[],!1,null,null,null).exports;n(157);o.install=function(t){t.component(o.name,o)};e.default=o}})}));
|
|
7
7
|
//# sourceMappingURL=ninegrid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://[name]/webpack/universalModuleDefinition","webpack://[name]/webpack/bootstrap","webpack://[name]/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://[name]/./src/packages/ninegrid/ninegrid.vue?55bd","webpack://[name]/./src/packages/ninegrid/ninegrid.vue?6e15","webpack://[name]/src/packages/ninegrid/ninegrid.vue","webpack://[name]/./src/packages/ninegrid/ninegrid.vue","webpack://[name]/./src/packages/ninegrid/index.js"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","props","data","type","Array","default","gridList","activeState","shakeIndexs","loadingDataState","countDown","number","watch","handler","resResponse","methods","sudoku_goodsG","length","list","spArrs","spArray","front","back","filterData","forEach","element","index","push","splice","beginTimeIntervar","_this","timeIntervar","setInterval","refresh","_this2","console","log","$emit","setTimeout","toDetail","item","N","Q","F","R","slice","mounted","_vm","_c","_self","staticClass","_l","class","active","shake","includes","on","$event","rotate","attrs","_v","_s","price","pictureUrl","NineGrid","install","Vue","component"],"mappings":";;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,WAAY,GAAIH,GACG,iBAAZC,QACdA,QAAkB,SAAID,IAEtBD,EAAe,SAAIC,IARrB,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,IA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, 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(\"ninegrid\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ninegrid\"] = factory();\n\telse\n\t\troot[\"ninegrid\"] = 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 = 214);\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 render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"nut-ninegrid\"},_vm._l((_vm.gridList),function(item,index){return _c('div',{key:index,staticClass:\"item\",class:[{ active: _vm.activeState && index != 4 }, { shake: _vm.shakeIndexs.includes(index + 1) }]},[(index == 4)?_c('div',{staticClass:\"center\",on:{\"click\":function($event){return _vm.refresh(true)}}},[_c('img',{class:{ rotate: _vm.loadingDataState },attrs:{\"src\":\"//img13.360buyimg.com/imagetools/jfs/t1/190805/24/20092/1136/6126fce9E6c61cf21/acd44eec9fc694bd.png\",\"alt\":\"refresh.png\"}}),_vm._v(\" \"),_c('span',[_vm._v(\"换一换\")]),_vm._v(\" \"),_c('p',[_vm._v(_vm._s(_vm.countDown)+\"S 后自动换\")])]):[_c('div',{staticClass:\"front\",on:{\"click\":function($event){return _vm.toDetail(item.front)}}},[_c('p',[_vm._v(_vm._s(item.front.name))]),_vm._v(\" \"),_c('nut-price',{staticClass:\"price\",attrs:{\"price\":item.front.price,\"thousands\":true}}),_vm._v(\" \"),_c('img',{attrs:{\"src\":item.front.pictureUrl}})],1),_vm._v(\" \"),_c('div',{staticClass:\"back\",on:{\"click\":function($event){return _vm.toDetail(item.back)}}},[_c('p',[_vm._v(_vm._s(item.back.name))]),_vm._v(\" \"),_c('nut-price',{staticClass:\"price\",attrs:{\"price\":item.back.price,\"thousands\":true}}),_vm._v(\" \"),_c('img',{attrs:{\"src\":item.back.pictureUrl}})],1)]],2)}),0)\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!./ninegrid.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!./ninegrid.vue?vue&type=script&lang=js&\"","<template>\n <div class=\"nut-ninegrid\">\n <div\n v-for=\"(item, index) in gridList\"\n class=\"item\"\n :class=\"[{ active: activeState && index != 4 }, { shake: shakeIndexs.includes(index + 1) }]\"\n :key=\"index\"\n >\n <div v-if=\"index == 4\" class=\"center\" @click=\"refresh(true)\">\n <img\n :class=\"{ rotate: loadingDataState }\"\n src=\"//img13.360buyimg.com/imagetools/jfs/t1/190805/24/20092/1136/6126fce9E6c61cf21/acd44eec9fc694bd.png\"\n alt=\"refresh.png\"\n />\n <span>换一换</span>\n <p>{{ countDown }}S 后自动换</p>\n </div>\n <template v-else>\n <div class=\"front\" @click=\"toDetail(item.front)\">\n <p>{{ item.front.name }}</p>\n <nut-price class=\"price\" :price=\"item.front.price\" :thousands=\"true\" />\n <img :src=\"item.front.pictureUrl\" />\n </div>\n <div class=\"back\" @click=\"toDetail(item.back)\">\n <p>{{ item.back.name }}</p>\n <nut-price class=\"price\" :price=\"item.back.price\" :thousands=\"true\" />\n <img :src=\"item.back.pictureUrl\" />\n </div>\n </template>\n </div>\n </div>\n</template>\n<script>\nexport default {\n name: 'nut-ninegrid',\n props: {\n data: {\n type: [Object, Array],\n default: () => {\n return [];\n }\n }\n },\n data() {\n return {\n gridList: [], // 数据list\n activeState: false, // 去掉中间的换一换方块\n shakeIndexs: [], // 动画抖一抖的下标\n loadingDataState: false, // 换一换的小图标是否旋转 并且等它旋转完才可以再次点击\n countDown: 10, // 倒计时时间\n number: 0\n };\n },\n watch: {\n data: {\n handler(value) {\n if (value) {\n this.resResponse(value);\n }\n }\n }\n },\n methods: {\n resResponse(sudoku_goodsG) {\n if (!(sudoku_goodsG.length > 15)) {\n return;\n }\n let list = sudoku_goodsG;\n let spArrs = this.spArray(8, list);\n let front = spArrs[0];\n let back = spArrs[1];\n let filterData = [];\n front.forEach((element, index) => {\n filterData.push({\n front: element,\n back: back[index]\n });\n });\n filterData.splice(4, 0, {});\n this.gridList = filterData;\n },\n beginTimeIntervar() {\n this.timeIntervar = setInterval(() => {\n this.countDown--;\n if (this.countDown == 0) {\n this.refresh();\n }\n if (this.countDown == 7) {\n this.shakeIndexs = [2, 4, 6, 8];\n } else if (this.countDown == 3) {\n this.shakeIndexs = [1, 3, 7, 9];\n }\n }, 1000);\n },\n refresh(manual = false) {\n if (this.loadingDataState) return;\n this.number += 1;\n this.countDown = 10;\n this.shakeIndexs = [];\n this.activeState = !this.activeState;\n\n // 检查点击次数\n if (this.number % 2 === 0) {\n console.log(123);\n this.$emit('refresh');\n } else {\n this.loadingDataState = true;\n setTimeout(() => {\n this.loadingDataState = false;\n }, 1000);\n }\n },\n /**\n * 跳转详情\n * @param item skuItem\n */\n toDetail(item) {\n // 跳转商详\n this.$emit('toDetail', item);\n },\n /**\n *\n * 数组拆分函数\n * @static\n * @param {number} N 拆分长度\n * @param {any[]} Q 将要拆分的数组\n * @returns {Array}\n * @memberof Utils\n */\n spArray(N, Q) {\n let R = [],\n F;\n for (F = 0; F < Q.length; ) {\n R.push(Q.slice(F, (F += N)));\n }\n return R;\n }\n },\n mounted() {\n this.resResponse(this.data);\n this.beginTimeIntervar();\n }\n};\n</script>\n","import { render, staticRenderFns } from \"./ninegrid.vue?vue&type=template&id=3daa6113&\"\nimport script from \"./ninegrid.vue?vue&type=script&lang=js&\"\nexport * from \"./ninegrid.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 NineGrid from './ninegrid.vue';\nimport './ninegrid.scss';\n\nNineGrid.install = function(Vue) {\n Vue.component(NineGrid.name, NineGrid);\n};\n\nexport default NineGrid;\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://[name]/webpack/universalModuleDefinition","webpack://[name]/webpack/bootstrap","webpack://[name]/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://[name]/./src/packages/ninegrid/ninegrid.vue?b99e","webpack://[name]/./src/packages/ninegrid/ninegrid.vue?6e15","webpack://[name]/src/packages/ninegrid/ninegrid.vue","webpack://[name]/./src/packages/ninegrid/ninegrid.vue","webpack://[name]/./src/packages/ninegrid/index.js"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","props","data","type","Array","default","gridList","activeState","shakeIndexs","loadingDataState","countDown","number","watch","handler","resResponse","methods","sudoku_goodsG","length","list","spArrs","spArray","front","back","filterData","forEach","element","index","push","splice","beginTimeIntervar","_this","timeIntervar","setInterval","refresh","_this2","console","log","$emit","setTimeout","toDetail","item","N","Q","F","R","slice","mounted","_vm","_h","$createElement","_c","_self","staticClass","_l","class","active","shake","includes","on","$event","rotate","attrs","_v","_s","price","pictureUrl","NineGrid","install","Vue","component"],"mappings":";;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,WAAY,GAAIH,GACG,iBAAZC,QACdA,QAAkB,SAAID,IAEtBD,EAAe,SAAIC,IARrB,CASoB,oBAATK,KAAuBA,KAAOC,MAAO,WAChD,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUR,QAGnC,IAAIC,EAASK,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHV,QAAS,IAUV,OANAW,EAAQH,GAAUI,KAAKX,EAAOD,QAASC,EAAQA,EAAOD,QAASO,GAG/DN,EAAOS,GAAI,EAGJT,EAAOD,QA0Df,OArDAO,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAASf,EAASgB,EAAMC,GAC3CV,EAAoBW,EAAElB,EAASgB,IAClCG,OAAOC,eAAepB,EAASgB,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEV,EAAoBgB,EAAI,SAASvB,GACX,oBAAXwB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAepB,EAASwB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAepB,EAAS,aAAc,CAAE0B,OAAO,KAQvDnB,EAAoBoB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQnB,EAAoBmB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IA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AU,CAAC6B,EAAG,IAAI,CAACH,EAAIe,GAAGf,EAAIgB,GAAGvB,EAAKnB,MAAM5E,SAASsG,EAAIe,GAAG,KAAKZ,EAAG,YAAY,CAACE,YAAY,QAAQS,MAAM,CAAC,MAAQrB,EAAKnB,MAAM2C,MAAM,WAAY,KAAQjB,EAAIe,GAAG,KAAKZ,EAAG,MAAM,CAACW,MAAM,CAAC,IAAMrB,EAAKnB,MAAM4C,eAAe,GAAGlB,EAAIe,GAAG,KAAKZ,EAAG,MAAM,CAACE,YAAY,OAAOM,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOZ,EAAIR,SAASC,EAAKlB,SAAS,CAAC4B,EAAG,IAAI,CAACH,EAAIe,GAAGf,EAAIgB,GAAGvB,EAAKlB,KAAK7E,SAASsG,EAAIe,GAAG,KAAKZ,EAAG,YAAY,CAACE,YAAY,QAAQS,MAAM,CAAC,MAAQrB,EAAKlB,KAAK0C,MAAM,WAAY,KAAQjB,EAAIe,GAAG,KAAKZ,EAAG,MAAM,CAACW,MAAM,CAAC,IAAMrB,EAAKlB,KAAK2C,eAAe,KAAK,MAAK,KAC7xC,IGUpB,EACA,KACA,KACA,M,eCXFC,EAASC,QAAU,SAASC,GAC1BA,EAAIC,UAAUH,EAASzH,KAAMyH,IAGhBA","file":"ninegrid/ninegrid.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(\"ninegrid\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ninegrid\"] = factory();\n\telse\n\t\troot[\"ninegrid\"] = 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 = 214);\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 render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"nut-ninegrid\"},_vm._l((_vm.gridList),function(item,index){return _c('div',{key:index,staticClass:\"item\",class:[{ active: _vm.activeState && index != 4 }, { shake: _vm.shakeIndexs.includes(index + 1) }]},[(index == 4)?_c('div',{staticClass:\"center\",on:{\"click\":function($event){return _vm.refresh(true)}}},[_c('img',{class:{ rotate: _vm.loadingDataState },attrs:{\"src\":\"//img13.360buyimg.com/imagetools/jfs/t1/190805/24/20092/1136/6126fce9E6c61cf21/acd44eec9fc694bd.png\",\"alt\":\"refresh.png\"}}),_vm._v(\" \"),_c('span',[_vm._v(\"换一换\")]),_vm._v(\" \"),_c('p',[_vm._v(_vm._s(_vm.countDown)+\"S 后自动换\")])]):[_c('div',{staticClass:\"front\",on:{\"click\":function($event){return _vm.toDetail(item.front)}}},[_c('p',[_vm._v(_vm._s(item.front.name))]),_vm._v(\" \"),_c('nut-price',{staticClass:\"price\",attrs:{\"price\":item.front.price,\"thousands\":true}}),_vm._v(\" \"),_c('img',{attrs:{\"src\":item.front.pictureUrl}})],1),_vm._v(\" \"),_c('div',{staticClass:\"back\",on:{\"click\":function($event){return _vm.toDetail(item.back)}}},[_c('p',[_vm._v(_vm._s(item.back.name))]),_vm._v(\" \"),_c('nut-price',{staticClass:\"price\",attrs:{\"price\":item.back.price,\"thousands\":true}}),_vm._v(\" \"),_c('img',{attrs:{\"src\":item.back.pictureUrl}})],1)]],2)}),0)}\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!./ninegrid.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!./ninegrid.vue?vue&type=script&lang=js&\"","<template>\n <div class=\"nut-ninegrid\">\n <div\n v-for=\"(item, index) in gridList\"\n class=\"item\"\n :class=\"[{ active: activeState && index != 4 }, { shake: shakeIndexs.includes(index + 1) }]\"\n :key=\"index\"\n >\n <div v-if=\"index == 4\" class=\"center\" @click=\"refresh(true)\">\n <img\n :class=\"{ rotate: loadingDataState }\"\n src=\"//img13.360buyimg.com/imagetools/jfs/t1/190805/24/20092/1136/6126fce9E6c61cf21/acd44eec9fc694bd.png\"\n alt=\"refresh.png\"\n />\n <span>换一换</span>\n <p>{{ countDown }}S 后自动换</p>\n </div>\n <template v-else>\n <div class=\"front\" @click=\"toDetail(item.front)\">\n <p>{{ item.front.name }}</p>\n <nut-price class=\"price\" :price=\"item.front.price\" :thousands=\"true\" />\n <img :src=\"item.front.pictureUrl\" />\n </div>\n <div class=\"back\" @click=\"toDetail(item.back)\">\n <p>{{ item.back.name }}</p>\n <nut-price class=\"price\" :price=\"item.back.price\" :thousands=\"true\" />\n <img :src=\"item.back.pictureUrl\" />\n </div>\n </template>\n </div>\n </div>\n</template>\n<script>\nexport default {\n name: 'nut-ninegrid',\n props: {\n data: {\n type: [Object, Array],\n default: () => {\n return [];\n }\n }\n },\n data() {\n return {\n gridList: [], // 数据list\n activeState: false, // 去掉中间的换一换方块\n shakeIndexs: [], // 动画抖一抖的下标\n loadingDataState: false, // 换一换的小图标是否旋转 并且等它旋转完才可以再次点击\n countDown: 10, // 倒计时时间\n number: 0\n };\n },\n watch: {\n data: {\n handler(value) {\n if (value) {\n this.resResponse(value);\n }\n }\n }\n },\n methods: {\n resResponse(sudoku_goodsG) {\n if (!(sudoku_goodsG.length > 15)) {\n return;\n }\n let list = sudoku_goodsG;\n let spArrs = this.spArray(8, list);\n let front = spArrs[0];\n let back = spArrs[1];\n let filterData = [];\n front.forEach((element, index) => {\n filterData.push({\n front: element,\n back: back[index]\n });\n });\n filterData.splice(4, 0, {});\n this.gridList = filterData;\n },\n beginTimeIntervar() {\n this.timeIntervar = setInterval(() => {\n this.countDown--;\n if (this.countDown == 0) {\n this.refresh();\n }\n if (this.countDown == 7) {\n this.shakeIndexs = [2, 4, 6, 8];\n } else if (this.countDown == 3) {\n this.shakeIndexs = [1, 3, 7, 9];\n }\n }, 1000);\n },\n refresh(manual = false) {\n if (this.loadingDataState) return;\n this.number += 1;\n this.countDown = 10;\n this.shakeIndexs = [];\n this.activeState = !this.activeState;\n\n // 检查点击次数\n if (this.number % 2 === 0) {\n console.log(123);\n this.$emit('refresh');\n } else {\n this.loadingDataState = true;\n setTimeout(() => {\n this.loadingDataState = false;\n }, 1000);\n }\n },\n /**\n * 跳转详情\n * @param item skuItem\n */\n toDetail(item) {\n // 跳转商详\n this.$emit('toDetail', item);\n },\n /**\n *\n * 数组拆分函数\n * @static\n * @param {number} N 拆分长度\n * @param {any[]} Q 将要拆分的数组\n * @returns {Array}\n * @memberof Utils\n */\n spArray(N, Q) {\n let R = [],\n F;\n for (F = 0; F < Q.length; ) {\n R.push(Q.slice(F, (F += N)));\n }\n return R;\n }\n },\n mounted() {\n this.resResponse(this.data);\n this.beginTimeIntervar();\n }\n};\n</script>\n","import { render, staticRenderFns } from \"./ninegrid.vue?vue&type=template&id=3daa6113&\"\nimport script from \"./ninegrid.vue?vue&type=script&lang=js&\"\nexport * from \"./ninegrid.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 NineGrid from './ninegrid.vue';\nimport './ninegrid.scss';\n\nNineGrid.install = function(Vue) {\n Vue.component(NineGrid.name, NineGrid);\n};\n\nexport default NineGrid;\n"],"sourceRoot":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.14 - noticebar.css, ea1cfeedc4af744045aa, Thu Jul 27 2023 18:33:12 GMT+0800 (GMT+08:00)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/.nut-noticebar{display:-webkit-box;display:-ms-flexbox;display:flex;height:40px;padding:0 16px;font-size:14px;line-height:24px;position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#848484;background-color:#fbf8dc;color:#d37d42}.nut-noticebar.wrapable{height:auto;padding:8px 16px}.nut-noticebar.wrapable .wrap{height:auto}.nut-noticebar.wrapable .wrap .content{position:relative;white-space:normal;word-wrap:break-word}.nut-noticebar a{text-decoration:none;color:#d37d42}.nut-noticebar .withicon{position:relative;padding-right:40px}.nut-noticebar .left-icon{height:16px;min-width:16px;margin-right:5px;-webkit-box-sizing:border-box;box-sizing:border-box;background-size:100% 100%}.nut-noticebar .right-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-width:20px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:5px}.nut-noticebar .wrap{-webkit-box-flex:1;-ms-flex:1;flex:1;height:24px;overflow:hidden;position:relative}.nut-noticebar .content{position:absolute;white-space:nowrap}.nut-noticebar .content.nut-ellipsis{max-width:100%;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nut-noticebar .play{-webkit-animation:nut-notice-bar-play linear both running;animation:nut-notice-bar-play linear both running}.nut-noticebar .play-infinite{-webkit-animation:nut-notice-bar-play-infinite linear infinite both running;animation:nut-notice-bar-play-infinite linear infinite both running}.nut-noticebar .play-vertical{-webkit-animation:nut-notice-bar-play-vertical linear infinite both running;animation:nut-notice-bar-play-vertical linear infinite both running}@-webkit-keyframes nut-notice-bar-play{to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes nut-notice-bar-play{to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes nut-notice-bar-play-infinite{to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes nut-notice-bar-play-infinite{to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes nut-notice-bar-play-vertical{to{-webkit-transform:translateY(40px);transform:translateY(40px)}}@keyframes nut-notice-bar-play-vertical{to{-webkit-transform:translateY(40px);transform:translateY(40px)}}.nut-noticebar-vertical{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:40px;padding:0 16px;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.nut-noticebar-vertical .horseLamp_list{display:block;-webkit-box-flex:1;-ms-flex:1;flex:1}.nut-noticebar-vertical .horseLamp_list .horseLamp_list_item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:40px;font-size:16px}.nut-noticebar-vertical .go{-ms-flex-item-align:center;align-self:center}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.14 - noticebar.js, ea1cfeedc4af744045aa, Thu Jul 27 2023 18:33:12 GMT+0800 (GMT+08:00)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("noticebar",[],e):"object"==typeof exports?exports.noticebar=e():t.noticebar=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="./",i(i.s=165)}({0:function(t,e,i){"use strict";function n(t,e,i,n,o,s,r,a){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),r?(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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=l):o&&(l=a?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),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 d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}i.d(e,"a",(function(){return n}))},165:function(t,e,i){"use strict";i.r(e);var n={name:"nut-noticebar",props:{direction:{type:String,default:"across"},list:{type:Array,default:function(){return[]}},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:String,default:""},color:{type:String,default:"#F9911B"},background:{type:String,default:"rgba(254,250,216,1)"},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:!0},speed:{type:Number,default:50}},data:function(){return{wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticeBar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1}},components:{ScrollItem:{name:"ScrollItem",functional:!0,props:{item:null},render:function(t,e){var i=e.props.item,n=i.tag,o=i.children;return t(n,i.data,o)}}},computed:{iconShow:function(){return"close"!=this.leftIcon},barStyle:function(){var t={color:this.color,background:this.background};return"vertical"==this.direction&&(t.height="".concat(this.height,"px")),t},contentStyle:function(){return{paddingLeft:this.firstRound?0:this.wrapWidth+"px",animationDelay:(this.firstRound?this.delay:0)+"s",animationDuration:this.duration+"s"}},iconBg:function(){var t=null;return this.leftIcon&&(t=this.leftIcon),t},horseLampStyle:function(){var t={};return this.complexAm?t={transform:"translateY(".concat(this.distance,"px)")}:this.animate&&(t={transition:"all ".concat(~~(this.height/this.speed/4),"s"),"margin-top":"-".concat(this.height,"px")}),t}},watch:{text:{handler:function(t,e){var i=this;0!=this.showNoticeBar&&this.$nextTick((function(){var t=i.$refs,e=t.wrap,n=t.content;if(e&&n){var o=e.getBoundingClientRect().width,s=n.getBoundingClientRect().width;i.scrollable&&s>o?(i.wrapWidth=o,i.offsetWidth=s,i.duration=s/i.speed,i.animationClass="play"):i.animationClass=""}}))},immediate:!0},list:function(t,e){this.scrollList=[].concat(t)}},mounted:function(){var t=this;console.log(this.direction),"vertical"==this.direction&&(this.$slots.default?this.scrollList=[].concat(this.$slots.default):this.scrollList=[].concat(this.list),setTimeout((function(){t.complexAm?t.startRoll():t.startRollEasy()}),this.standTime))},methods:{handleClick:function(t){this.$emit("click",t)},onClickIcon:function(t){this.showNoticeBar=!this.closeMode,this.$emit("close",t)},onAnimationEnd:function(){var t=this;this.firstRound=!1,this.$nextTick((function(){t.duration=(t.offsetWidth+t.wrapWidth)/t.speed,t.animationClass="play-infinite"}))},startRollEasy:function(){this.showhorseLamp(),this.timer=setInterval(this.showhorseLamp,1e3*~~(this.height/this.speed/4)+this.standTime)},showhorseLamp:function(){var t=this;this.animate=!0,setTimeout((function(){t.scrollList.push(t.scrollList[0]),t.scrollList.shift(),t.animate=!1}),1e3*~~(this.height/this.speed/4))},startRoll:function(){var t=this;this.timer=setInterval((function(){for(var e=0;e<100;e++)t.scroll(e,!(e<99))}),this.standTime+100*this.speed)},scroll:function(t,e){var i=this;setTimeout((function(){i.distance-=i.height/100,e&&(i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.distance=0)}),t*this.speed)},go:function(t){this.$emit("click",t)},handleClickIcon:function(){this.$emit("close",this.scrollList[0])},activated:function(){this.keepAlive&&(this.keepAlive=!1)},deactivated:function(){this.keepAlive=!0,clearInterval(this.timer)},destroyed:function(){clearInterval(this.timer)}}},o=(i(92),i(0)),s=Object(o.a)(n,(function(){var t=this,e=t._self._c;return
|
|
6
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("noticebar",[],e):"object"==typeof exports?exports.noticebar=e():t.noticebar=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="./",i(i.s=165)}({0:function(t,e,i){"use strict";function n(t,e,i,n,o,s,r,a){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),r?(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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=l):o&&(l=a?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),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 d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}i.d(e,"a",(function(){return n}))},165:function(t,e,i){"use strict";i.r(e);var n={name:"nut-noticebar",props:{direction:{type:String,default:"across"},list:{type:Array,default:function(){return[]}},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:String,default:""},color:{type:String,default:"#F9911B"},background:{type:String,default:"rgba(254,250,216,1)"},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:!0},speed:{type:Number,default:50}},data:function(){return{wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticeBar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1}},components:{ScrollItem:{name:"ScrollItem",functional:!0,props:{item:null},render:function(t,e){var i=e.props.item,n=i.tag,o=i.children;return t(n,i.data,o)}}},computed:{iconShow:function(){return"close"!=this.leftIcon},barStyle:function(){var t={color:this.color,background:this.background};return"vertical"==this.direction&&(t.height="".concat(this.height,"px")),t},contentStyle:function(){return{paddingLeft:this.firstRound?0:this.wrapWidth+"px",animationDelay:(this.firstRound?this.delay:0)+"s",animationDuration:this.duration+"s"}},iconBg:function(){var t=null;return this.leftIcon&&(t=this.leftIcon),t},horseLampStyle:function(){var t={};return this.complexAm?t={transform:"translateY(".concat(this.distance,"px)")}:this.animate&&(t={transition:"all ".concat(~~(this.height/this.speed/4),"s"),"margin-top":"-".concat(this.height,"px")}),t}},watch:{text:{handler:function(t,e){var i=this;0!=this.showNoticeBar&&this.$nextTick((function(){var t=i.$refs,e=t.wrap,n=t.content;if(e&&n){var o=e.getBoundingClientRect().width,s=n.getBoundingClientRect().width;i.scrollable&&s>o?(i.wrapWidth=o,i.offsetWidth=s,i.duration=s/i.speed,i.animationClass="play"):i.animationClass=""}}))},immediate:!0},list:function(t,e){this.scrollList=[].concat(t)}},mounted:function(){var t=this;console.log(this.direction),"vertical"==this.direction&&(this.$slots.default?this.scrollList=[].concat(this.$slots.default):this.scrollList=[].concat(this.list),setTimeout((function(){t.complexAm?t.startRoll():t.startRollEasy()}),this.standTime))},methods:{handleClick:function(t){this.$emit("click",t)},onClickIcon:function(t){this.showNoticeBar=!this.closeMode,this.$emit("close",t)},onAnimationEnd:function(){var t=this;this.firstRound=!1,this.$nextTick((function(){t.duration=(t.offsetWidth+t.wrapWidth)/t.speed,t.animationClass="play-infinite"}))},startRollEasy:function(){this.showhorseLamp(),this.timer=setInterval(this.showhorseLamp,1e3*~~(this.height/this.speed/4)+this.standTime)},showhorseLamp:function(){var t=this;this.animate=!0,setTimeout((function(){t.scrollList.push(t.scrollList[0]),t.scrollList.shift(),t.animate=!1}),1e3*~~(this.height/this.speed/4))},startRoll:function(){var t=this;this.timer=setInterval((function(){for(var e=0;e<100;e++)t.scroll(e,!(e<99))}),this.standTime+100*this.speed)},scroll:function(t,e){var i=this;setTimeout((function(){i.distance-=i.height/100,e&&(i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.distance=0)}),t*this.speed)},go:function(t){this.$emit("click",t)},handleClickIcon:function(){this.$emit("close",this.scrollList[0])},activated:function(){this.keepAlive&&(this.keepAlive=!1)},deactivated:function(){this.keepAlive=!0,clearInterval(this.timer)},destroyed:function(){clearInterval(this.timer)}}},o=(i(92),i(0)),s=Object(o.a)(n,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",["across"==t.direction?i("div",{directives:[{name:"show",rawName:"v-show",value:t.showNoticeBar,expression:"showNoticeBar"}],staticClass:"nut-noticebar",class:{withicon:t.closeMode,close:t.closeMode,wrapable:t.wrapable},style:t.barStyle,on:{click:t.handleClick}},[t.iconShow?i("div",{staticClass:"left-icon",style:{"background-image":"url("+t.iconBg+")"}},[t.iconBg?t._e():i("nut-icon",{attrs:{type:"notice",color:t.color,size:"16px"}})],1):t._e(),t._v(" "),i("div",{ref:"wrap",staticClass:"wrap"},[i("div",{ref:"content",staticClass:"content",class:[t.animationClass,{"nut-ellipsis":!t.scrollable&&!t.wrapable}],style:t.contentStyle,on:{animationend:t.onAnimationEnd,webkitAnimationEnd:t.onAnimationEnd}},[t._t("default",(function(){return[t._v(t._s(t.text))]}))],2)]),t._v(" "),t.closeMode?i("div",{staticClass:"right-icon",on:{click:function(e){return e.stopPropagation(),t.onClickIcon.apply(null,arguments)}}},[i("nut-icon",{attrs:{type:"cross",color:t.color,size:"11px"}})],1):t._e()]):t._e(),t._v(" "),t.scrollList.length>0&&"vertical"==t.direction?i("div",{staticClass:"nut-noticebar-vertical",style:t.barStyle},[t.$slots.default?[i("div",{staticClass:"horseLamp_list",style:t.horseLampStyle},t._l(t.scrollList,(function(e,n){return i("ScrollItem",{key:n,style:{height:t.height},attrs:{item:e}})})),1)]:[i("ul",{staticClass:"horseLamp_list",style:t.horseLampStyle},t._l(t.scrollList,(function(e,n){return i("li",{key:n,staticClass:"horseLamp_list_item",style:{height:t.height},on:{click:function(i){return t.go(e)}}},[t._v("\n "+t._s(e)+"\n ")])})),0)],t._v(" "),i("div",{staticClass:"go",on:{click:function(e){!t.$slots.rightIcon&&t.handleClickIcon()}}},[t.$slots.rightIcon?[t._t("rightIcon")]:t.closeMode?[i("nut-icon",{attrs:{type:"cross",color:t.color,size:"11px"}})]:t._e()],2)],2):t._e()])}),[],!1,null,null,null).exports;i(93);s.install=function(t){t.component(s.name,s)};e.default=s},75:function(t,e,i){},92:function(t,e,i){"use strict";i(75)},93:function(t,e,i){}})}));
|
|
7
7
|
//# sourceMappingURL=noticebar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://[name]/webpack/universalModuleDefinition","webpack://[name]/webpack/bootstrap","webpack://[name]/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://[name]/./src/packages/noticebar/noticebar.vue?ccfc","webpack://[name]/./src/packages/noticebar/noticebar.vue?4bff","webpack://[name]/src/packages/noticebar/noticebar.vue","webpack://[name]/./src/packages/noticebar/item.js","webpack://[name]/./src/packages/noticebar/noticebar.vue","webpack://[name]/./src/packages/noticebar/index.js","webpack://[name]/./src/packages/noticebar/noticebar.vue?97a4"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","props","direction","type","String","default","list","Array","standTime","Number","complexAm","Boolean","height","text","closeMode","wrapable","leftIcon","color","background","delay","scrollable","speed","data","wrapWidth","firstRound","duration","offsetWidth","showNoticeBar","animationClass","animate","scrollList","distance","timer","keepAlive","components","ScrollItem","item","createElement","_context$props$item","tag","children","computed","iconShow","barStyle","style","contentStyle","paddingLeft","animationDelay","animationDuration","iconBg","horseLampStyle","styles","transform","transition","watch","handler","val","newVal","_this","$nextTick","_this$$refs","$refs","wrap","content","getBoundingClientRect","width","immediate","newValue","oldValue","mounted","_this2","console","log","$slots","setTimeout","startRoll","startRollEasy","methods","handleClick","event","$emit","onClickIcon","onAnimationEnd","_this3","showhorseLamp","setInterval","_this4","push","shift","_this5","scroll","chunk","last","_this6","go","handleClickIcon","activated","deactivated","clearInterval","destroyed","_vm","_c","_self","directives","rawName","expression","staticClass","class","withicon","close","on","_e","attrs","_v","ref","_t","_s","$event","stopPropagation","apply","arguments","length","_l","index","rightIcon","NoticeBar","install","Vue","component"],"mappings":";;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,YAAa,GAAIH,GACE,iBAAZC,QACdA,QAAmB,UAAID,IAEvBD,EAAgB,UAAIC,IARtB,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,I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,YAAE,SAAShE,EAAKuF,GAAO,OAAOtB,EAAG,KAAK,CAAC5I,IAAIkK,EAAMjB,YAAY,sBAAsB9D,MAAM,CAAGhC,OAAQwF,EAAIxF,QAAUkG,GAAG,CAAC,MAAQ,SAASO,GAAQ,OAAOjB,EAAIN,GAAG1D,MAAS,CAACgE,EAAIa,GAAG,eAAeb,EAAIgB,GAAGhF,GAAM,mBAAkB,IAAIgE,EAAIa,GAAG,KAAKZ,EAAG,MAAM,CAACK,YAAY,KAAKI,GAAG,CAAC,MAAQ,SAASO,IAASjB,EAAI3B,OAAOmD,WAAaxB,EAAIL,qBAAqB,CAAEK,EAAI3B,OAAgB,UAAE,CAAC2B,EAAIe,GAAG,cAAef,EAAa,UAAE,CAACC,EAAG,WAAW,CAACW,MAAM,CAAC,KAAO,QAAQ,MAAQZ,EAAInF,MAAM,KAAO,WAAWmF,EAAIW,MAAM,IAAI,GAAGX,EAAIW,SAE3lE,IIUpB,EACA,KACA,KACA,M,cCZFc,EAAUC,QAAU,SAASC,GAC3BA,EAAIC,UAAUH,EAAUpL,KAAMoL,IAGjBA,a,qDCPf,O","file":"noticebar/noticebar.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(\"noticebar\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"noticebar\"] = factory();\n\telse\n\t\troot[\"noticebar\"] = 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 = 165);\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 render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.direction == 'across')?_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showNoticeBar),expression:\"showNoticeBar\"}],staticClass:\"nut-noticebar\",class:{ withicon: _vm.closeMode, close: _vm.closeMode, wrapable: _vm.wrapable },style:(_vm.barStyle),on:{\"click\":_vm.handleClick}},[(_vm.iconShow)?_c('div',{staticClass:\"left-icon\",style:({ 'background-image': `url(${_vm.iconBg})` })},[(!_vm.iconBg)?_c('nut-icon',{attrs:{\"type\":\"notice\",\"color\":_vm.color,\"size\":\"16px\"}}):_vm._e()],1):_vm._e(),_vm._v(\" \"),_c('div',{ref:\"wrap\",staticClass:\"wrap\"},[_c('div',{ref:\"content\",staticClass:\"content\",class:[_vm.animationClass, { 'nut-ellipsis': !_vm.scrollable && !_vm.wrapable }],style:(_vm.contentStyle),on:{\"animationend\":_vm.onAnimationEnd,\"webkitAnimationEnd\":_vm.onAnimationEnd}},[_vm._t(\"default\",function(){return [_vm._v(_vm._s(_vm.text))]})],2)]),_vm._v(\" \"),(_vm.closeMode)?_c('div',{staticClass:\"right-icon\",on:{\"click\":function($event){$event.stopPropagation();return _vm.onClickIcon.apply(null, arguments)}}},[_c('nut-icon',{attrs:{\"type\":\"cross\",\"color\":_vm.color,\"size\":\"11px\"}})],1):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.scrollList.length > 0 && _vm.direction == 'vertical')?_c('div',{staticClass:\"nut-noticebar-vertical\",style:(_vm.barStyle)},[(_vm.$slots.default)?[_c('div',{staticClass:\"horseLamp_list\",style:(_vm.horseLampStyle)},_vm._l((_vm.scrollList),function(item,index){return _c('ScrollItem',{key:index,style:({ height: _vm.height }),attrs:{\"item\":item}})}),1)]:[_c('ul',{staticClass:\"horseLamp_list\",style:(_vm.horseLampStyle)},_vm._l((_vm.scrollList),function(item,index){return _c('li',{key:index,staticClass:\"horseLamp_list_item\",style:({ height: _vm.height }),on:{\"click\":function($event){return _vm.go(item)}}},[_vm._v(\"\\n \"+_vm._s(item)+\"\\n \")])}),0)],_vm._v(\" \"),_c('div',{staticClass:\"go\",on:{\"click\":function($event){!_vm.$slots.rightIcon && _vm.handleClickIcon()}}},[(_vm.$slots.rightIcon)?[_vm._t(\"rightIcon\")]:(_vm.closeMode)?[_c('nut-icon',{attrs:{\"type\":\"cross\",\"color\":_vm.color,\"size\":\"11px\"}})]:_vm._e()],2)],2):_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!./noticebar.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!./noticebar.vue?vue&type=script&lang=js&\"","<template>\n <div>\n <div\n v-show=\"showNoticeBar\"\n class=\"nut-noticebar\"\n :class=\"{ withicon: closeMode, close: closeMode, wrapable: wrapable }\"\n :style=\"barStyle\"\n @click=\"handleClick\"\n v-if=\"direction == 'across'\"\n >\n <div class=\"left-icon\" v-if=\"iconShow\" :style=\"{ 'background-image': `url(${iconBg})` }\">\n <nut-icon type=\"notice\" :color=\"color\" size=\"16px\" v-if=\"!iconBg\"></nut-icon>\n </div>\n <div ref=\"wrap\" class=\"wrap\">\n <div\n ref=\"content\"\n class=\"content\"\n :class=\"[animationClass, { 'nut-ellipsis': !scrollable && !wrapable }]\"\n :style=\"contentStyle\"\n @animationend=\"onAnimationEnd\"\n @webkitAnimationEnd=\"onAnimationEnd\"\n >\n <slot>{{ text }}</slot>\n </div>\n </div>\n <div v-if=\"closeMode\" class=\"right-icon\" @click.stop=\"onClickIcon\">\n <nut-icon type=\"cross\" :color=\"color\" size=\"11px\"></nut-icon>\n </div>\n </div>\n\n <div class=\"nut-noticebar-vertical\" v-if=\"scrollList.length > 0 && direction == 'vertical'\" :style=\"barStyle\">\n <template v-if=\"$slots.default\">\n <div class=\"horseLamp_list\" :style=\"horseLampStyle\">\n <ScrollItem v-for=\"(item, index) in scrollList\" v-bind:key=\"index\" :style=\"{ height: height }\" :item=\"item\"></ScrollItem>\n </div>\n </template>\n\n <template v-else>\n <ul class=\"horseLamp_list\" :style=\"horseLampStyle\">\n <li class=\"horseLamp_list_item\" v-for=\"(item, index) in scrollList\" :key=\"index\" :style=\"{ height: height }\" @click=\"go(item)\">\n {{ item }}\n </li>\n </ul>\n </template>\n\n <div class=\"go\" @click=\"!$slots.rightIcon && handleClickIcon()\">\n <template v-if=\"$slots.rightIcon\">\n <slot name=\"rightIcon\"></slot>\n </template>\n <template v-else-if=\"closeMode\">\n <nut-icon type=\"cross\" :color=\"color\" size=\"11px\"></nut-icon>\n </template>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport ScrollItem from './item';\nexport default {\n name: 'nut-noticebar',\n props: {\n // 滚动方向 across 横向 vertical 纵向\n direction: {\n type: String,\n default: 'across'\n },\n list: {\n type: Array,\n default: () => {\n return [];\n }\n },\n standTime: {\n type: Number,\n default: 1000\n },\n complexAm: {\n type: Boolean,\n default: false\n },\n height: {\n type: Number,\n default: 40\n },\n text: {\n type: String,\n default: ''\n },\n closeMode: {\n type: Boolean,\n default: false\n },\n wrapable: {\n type: Boolean,\n default: false\n },\n leftIcon: { type: String, default: '' },\n color: {\n type: String,\n default: '#F9911B'\n },\n background: {\n type: String,\n default: 'rgba(254,250,216,1)'\n },\n delay: {\n type: [String, Number],\n default: 1\n },\n scrollable: {\n type: Boolean,\n default: true\n },\n speed: {\n type: Number,\n default: 50\n }\n },\n data() {\n return {\n wrapWidth: 0,\n firstRound: true,\n duration: 0,\n offsetWidth: 0,\n showNoticeBar: true,\n animationClass: '',\n\n animate: false,\n scrollList: [],\n distance: 0,\n timer: null,\n keepAlive: false\n };\n },\n components: {\n ScrollItem: ScrollItem\n },\n computed: {\n iconShow() {\n if (this.leftIcon == 'close') {\n return false;\n } else {\n return true;\n }\n },\n barStyle() {\n let style = {\n color: this.color,\n background: this.background\n };\n\n if (this.direction == 'vertical') {\n style.height = `${this.height}px`;\n }\n return style;\n },\n contentStyle() {\n return {\n paddingLeft: this.firstRound ? 0 : this.wrapWidth + 'px',\n animationDelay: (this.firstRound ? this.delay : 0) + 's',\n animationDuration: this.duration + 's'\n };\n },\n iconBg() {\n let iconBg = null;\n if (this.leftIcon) {\n iconBg = this.leftIcon;\n }\n return iconBg;\n },\n horseLampStyle() {\n let styles = {};\n if (this.complexAm) {\n styles = {\n transform: `translateY(${this.distance}px)`\n };\n } else {\n if (this.animate) {\n styles = {\n transition: `all ${~~(this.height / this.speed / 4)}s`,\n 'margin-top': `-${this.height}px`\n };\n }\n }\n return styles;\n }\n },\n watch: {\n text: {\n handler(val, newVal) {\n // console.log(val, newVal, this.showNoticeBar == false, 'text');\n\n if (this.showNoticeBar == false) {\n return;\n }\n this.$nextTick(() => {\n const { wrap, content } = this.$refs;\n\n if (!wrap || !content) {\n return;\n }\n const wrapWidth = wrap.getBoundingClientRect().width;\n\n const offsetWidth = content.getBoundingClientRect().width;\n // console.log(wrapWidth, offsetWidth, 'text222');\n\n if (this.scrollable && offsetWidth > wrapWidth) {\n this.wrapWidth = wrapWidth;\n this.offsetWidth = offsetWidth;\n\n this.duration = offsetWidth / this.speed;\n this.animationClass = 'play';\n } else {\n this.animationClass = '';\n }\n });\n },\n immediate: true\n },\n list(newValue, oldValue) {\n this.scrollList = [].concat(newValue);\n }\n },\n mounted() {\n console.log(this.direction);\n if (this.direction == 'vertical') {\n if (this.$slots.default) {\n this.scrollList = [].concat(this.$slots.default);\n } else {\n this.scrollList = [].concat(this.list);\n }\n\n setTimeout(() => {\n this.complexAm ? this.startRoll() : this.startRollEasy();\n }, this.standTime);\n }\n },\n methods: {\n handleClick(event) {\n this.$emit('click', event);\n },\n onClickIcon(event) {\n this.showNoticeBar = !this.closeMode;\n this.$emit('close', event);\n },\n onAnimationEnd() {\n this.firstRound = false;\n this.$nextTick(() => {\n this.duration = (this.offsetWidth + this.wrapWidth) / this.speed;\n this.animationClass = 'play-infinite';\n });\n },\n /**\n * 利益点滚动方式一\n */\n startRollEasy() {\n this.showhorseLamp();\n this.timer = setInterval(this.showhorseLamp, ~~(this.height / this.speed / 4) * 1000 + this.standTime);\n },\n showhorseLamp() {\n this.animate = true;\n setTimeout(() => {\n this.scrollList.push(this.scrollList[0]);\n this.scrollList.shift();\n this.animate = false;\n }, ~~(this.height / this.speed / 4) * 1000);\n },\n\n startRoll() {\n this.timer = setInterval(() => {\n let chunk = 100;\n for (let i = 0; i < chunk; i++) {\n this.scroll(i, i < chunk - 1 ? false : true);\n }\n }, this.standTime + 100 * this.speed);\n },\n scroll(n, last) {\n setTimeout(() => {\n this.distance -= this.height / 100;\n if (last) {\n this.scrollList.push(this.scrollList[0]);\n this.scrollList.shift();\n this.distance = 0;\n }\n }, n * this.speed);\n },\n\n /**\n * 点击滚动单元\n */\n go(item) {\n this.$emit('click', item);\n },\n\n handleClickIcon() {\n this.$emit('close', this.scrollList[0]);\n },\n\n activated() {\n if (this.keepAlive) {\n this.keepAlive = false;\n }\n },\n\n deactivated() {\n this.keepAlive = true;\n clearInterval(this.timer);\n },\n\n destroyed() {\n clearInterval(this.timer);\n }\n }\n};\n</script>\n<style lang=\"scss\">\n@import 'noticebar.scss';\n</style>\n","export default {\n name: 'ScrollItem',\n functional: true,\n props: {\n item: null\n },\n render: (createElement, context) => {\n // console.log(context.props.item)\n // console.log(context.slots().default)\n const { tag, children, data } = context.props.item;\n return createElement(tag, data, children);\n }\n};\n","import { render, staticRenderFns } from \"./noticebar.vue?vue&type=template&id=257e2140&\"\nimport script from \"./noticebar.vue?vue&type=script&lang=js&\"\nexport * from \"./noticebar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./noticebar.vue?vue&type=style&index=0&id=257e2140&prod&lang=scss&\"\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 NoticeBar from './noticebar.vue';\nimport './noticebar.scss';\n\nNoticeBar.install = function(Vue) {\n Vue.component(NoticeBar.name, NoticeBar);\n};\n\nexport default NoticeBar;\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--0-0!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js!../../../node_modules/sass-loader/dist/cjs.js??ref--0-3!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./noticebar.vue?vue&type=style&index=0&id=257e2140&prod&lang=scss&\""],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://[name]/webpack/universalModuleDefinition","webpack://[name]/webpack/bootstrap","webpack://[name]/./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://[name]/./src/packages/noticebar/noticebar.vue?d1e8","webpack://[name]/./src/packages/noticebar/noticebar.vue?4bff","webpack://[name]/src/packages/noticebar/noticebar.vue","webpack://[name]/./src/packages/noticebar/item.js","webpack://[name]/./src/packages/noticebar/noticebar.vue","webpack://[name]/./src/packages/noticebar/index.js","webpack://[name]/./src/packages/noticebar/noticebar.vue?97a4"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","props","direction","type","String","default","list","Array","standTime","Number","complexAm","Boolean","height","text","closeMode","wrapable","leftIcon","color","background","delay","scrollable","speed","data","wrapWidth","firstRound","duration","offsetWidth","showNoticeBar","animationClass","animate","scrollList","distance","timer","keepAlive","components","ScrollItem","item","createElement","_context$props$item","tag","children","computed","iconShow","barStyle","style","contentStyle","paddingLeft","animationDelay","animationDuration","iconBg","horseLampStyle","styles","transform","transition","watch","handler","val","newVal","_this","$nextTick","_this$$refs","$refs","wrap","content","getBoundingClientRect","width","immediate","newValue","oldValue","mounted","_this2","console","log","$slots","setTimeout","startRoll","startRollEasy","methods","handleClick","event","$emit","onClickIcon","onAnimationEnd","_this3","showhorseLamp","setInterval","_this4","push","shift","_this5","scroll","chunk","last","_this6","go","handleClickIcon","activated","deactivated","clearInterval","destroyed","_vm","_h","$createElement","_c","_self","directives","rawName","expression","staticClass","class","withicon","close","on","_e","attrs","_v","ref","_t","_s","$event","stopPropagation","apply","arguments","length","_l","index","rightIcon","NoticeBar","install","Vue","component"],"mappings":";;;;;CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,YAAa,GAAIH,GACE,iBAAZC,QACdA,QAAmB,UAAID,IAEvBD,EAAgB,UAAIC,IARtB,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,G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,CAAC9I,IAAIoK,EAAMjF,MAAM,CAAGhC,OAAQwF,EAAIxF,QAAUsG,MAAM,CAAC,KAAO9E,QAAU,IAAI,CAACmE,EAAG,KAAK,CAACK,YAAY,iBAAiBhE,MAAOwD,EAAkB,gBAAGA,EAAIwB,GAAIxB,EAAc,YAAE,SAAShE,EAAKyF,GAAO,OAAOtB,EAAG,KAAK,CAAC9I,IAAIoK,EAAMjB,YAAY,sBAAsBhE,MAAM,CAAGhC,OAAQwF,EAAIxF,QAAUoG,GAAG,CAAC,MAAQ,SAASO,GAAQ,OAAOnB,EAAIN,GAAG1D,MAAS,CAACgE,EAAIe,GAAG,eAAef,EAAIkB,GAAGlF,GAAM,mBAAkB,IAAIgE,EAAIe,GAAG,KAAKZ,EAAG,MAAM,CAACK,YAAY,KAAKI,GAAG,CAAC,MAAQ,SAASO,IAASnB,EAAI3B,OAAOqD,WAAa1B,EAAIL,qBAAqB,CAAEK,EAAI3B,OAAgB,UAAE,CAAC2B,EAAIiB,GAAG,cAAejB,EAAa,UAAE,CAACG,EAAG,WAAW,CAACW,MAAM,CAAC,KAAO,QAAQ,MAAQd,EAAInF,MAAM,KAAO,WAAWmF,EAAIa,MAAM,IAAI,GAAGb,EAAIa,SAC/nE,IIWpB,EACA,KACA,KACA,M,cCZFc,EAAUC,QAAU,SAASC,GAC3BA,EAAIC,UAAUH,EAAUtL,KAAMsL,IAGjBA,a,qDCPf,O","file":"noticebar/noticebar.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(\"noticebar\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"noticebar\"] = factory();\n\telse\n\t\troot[\"noticebar\"] = 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 = 165);\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 render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.direction == 'across')?_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showNoticeBar),expression:\"showNoticeBar\"}],staticClass:\"nut-noticebar\",class:{ withicon: _vm.closeMode, close: _vm.closeMode, wrapable: _vm.wrapable },style:(_vm.barStyle),on:{\"click\":_vm.handleClick}},[(_vm.iconShow)?_c('div',{staticClass:\"left-icon\",style:({ 'background-image': (\"url(\" + _vm.iconBg + \")\") })},[(!_vm.iconBg)?_c('nut-icon',{attrs:{\"type\":\"notice\",\"color\":_vm.color,\"size\":\"16px\"}}):_vm._e()],1):_vm._e(),_vm._v(\" \"),_c('div',{ref:\"wrap\",staticClass:\"wrap\"},[_c('div',{ref:\"content\",staticClass:\"content\",class:[_vm.animationClass, { 'nut-ellipsis': !_vm.scrollable && !_vm.wrapable }],style:(_vm.contentStyle),on:{\"animationend\":_vm.onAnimationEnd,\"webkitAnimationEnd\":_vm.onAnimationEnd}},[_vm._t(\"default\",function(){return [_vm._v(_vm._s(_vm.text))]})],2)]),_vm._v(\" \"),(_vm.closeMode)?_c('div',{staticClass:\"right-icon\",on:{\"click\":function($event){$event.stopPropagation();return _vm.onClickIcon.apply(null, arguments)}}},[_c('nut-icon',{attrs:{\"type\":\"cross\",\"color\":_vm.color,\"size\":\"11px\"}})],1):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.scrollList.length > 0 && _vm.direction == 'vertical')?_c('div',{staticClass:\"nut-noticebar-vertical\",style:(_vm.barStyle)},[(_vm.$slots.default)?[_c('div',{staticClass:\"horseLamp_list\",style:(_vm.horseLampStyle)},_vm._l((_vm.scrollList),function(item,index){return _c('ScrollItem',{key:index,style:({ height: _vm.height }),attrs:{\"item\":item}})}),1)]:[_c('ul',{staticClass:\"horseLamp_list\",style:(_vm.horseLampStyle)},_vm._l((_vm.scrollList),function(item,index){return _c('li',{key:index,staticClass:\"horseLamp_list_item\",style:({ height: _vm.height }),on:{\"click\":function($event){return _vm.go(item)}}},[_vm._v(\"\\n \"+_vm._s(item)+\"\\n \")])}),0)],_vm._v(\" \"),_c('div',{staticClass:\"go\",on:{\"click\":function($event){!_vm.$slots.rightIcon && _vm.handleClickIcon()}}},[(_vm.$slots.rightIcon)?[_vm._t(\"rightIcon\")]:(_vm.closeMode)?[_c('nut-icon',{attrs:{\"type\":\"cross\",\"color\":_vm.color,\"size\":\"11px\"}})]:_vm._e()],2)],2):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./noticebar.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!./noticebar.vue?vue&type=script&lang=js&\"","<template>\n <div>\n <div\n v-show=\"showNoticeBar\"\n class=\"nut-noticebar\"\n :class=\"{ withicon: closeMode, close: closeMode, wrapable: wrapable }\"\n :style=\"barStyle\"\n @click=\"handleClick\"\n v-if=\"direction == 'across'\"\n >\n <div class=\"left-icon\" v-if=\"iconShow\" :style=\"{ 'background-image': `url(${iconBg})` }\">\n <nut-icon type=\"notice\" :color=\"color\" size=\"16px\" v-if=\"!iconBg\"></nut-icon>\n </div>\n <div ref=\"wrap\" class=\"wrap\">\n <div\n ref=\"content\"\n class=\"content\"\n :class=\"[animationClass, { 'nut-ellipsis': !scrollable && !wrapable }]\"\n :style=\"contentStyle\"\n @animationend=\"onAnimationEnd\"\n @webkitAnimationEnd=\"onAnimationEnd\"\n >\n <slot>{{ text }}</slot>\n </div>\n </div>\n <div v-if=\"closeMode\" class=\"right-icon\" @click.stop=\"onClickIcon\">\n <nut-icon type=\"cross\" :color=\"color\" size=\"11px\"></nut-icon>\n </div>\n </div>\n\n <div class=\"nut-noticebar-vertical\" v-if=\"scrollList.length > 0 && direction == 'vertical'\" :style=\"barStyle\">\n <template v-if=\"$slots.default\">\n <div class=\"horseLamp_list\" :style=\"horseLampStyle\">\n <ScrollItem v-for=\"(item, index) in scrollList\" v-bind:key=\"index\" :style=\"{ height: height }\" :item=\"item\"></ScrollItem>\n </div>\n </template>\n\n <template v-else>\n <ul class=\"horseLamp_list\" :style=\"horseLampStyle\">\n <li class=\"horseLamp_list_item\" v-for=\"(item, index) in scrollList\" :key=\"index\" :style=\"{ height: height }\" @click=\"go(item)\">\n {{ item }}\n </li>\n </ul>\n </template>\n\n <div class=\"go\" @click=\"!$slots.rightIcon && handleClickIcon()\">\n <template v-if=\"$slots.rightIcon\">\n <slot name=\"rightIcon\"></slot>\n </template>\n <template v-else-if=\"closeMode\">\n <nut-icon type=\"cross\" :color=\"color\" size=\"11px\"></nut-icon>\n </template>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport ScrollItem from './item';\nexport default {\n name: 'nut-noticebar',\n props: {\n // 滚动方向 across 横向 vertical 纵向\n direction: {\n type: String,\n default: 'across'\n },\n list: {\n type: Array,\n default: () => {\n return [];\n }\n },\n standTime: {\n type: Number,\n default: 1000\n },\n complexAm: {\n type: Boolean,\n default: false\n },\n height: {\n type: Number,\n default: 40\n },\n text: {\n type: String,\n default: ''\n },\n closeMode: {\n type: Boolean,\n default: false\n },\n wrapable: {\n type: Boolean,\n default: false\n },\n leftIcon: { type: String, default: '' },\n color: {\n type: String,\n default: '#F9911B'\n },\n background: {\n type: String,\n default: 'rgba(254,250,216,1)'\n },\n delay: {\n type: [String, Number],\n default: 1\n },\n scrollable: {\n type: Boolean,\n default: true\n },\n speed: {\n type: Number,\n default: 50\n }\n },\n data() {\n return {\n wrapWidth: 0,\n firstRound: true,\n duration: 0,\n offsetWidth: 0,\n showNoticeBar: true,\n animationClass: '',\n\n animate: false,\n scrollList: [],\n distance: 0,\n timer: null,\n keepAlive: false\n };\n },\n components: {\n ScrollItem: ScrollItem\n },\n computed: {\n iconShow() {\n if (this.leftIcon == 'close') {\n return false;\n } else {\n return true;\n }\n },\n barStyle() {\n let style = {\n color: this.color,\n background: this.background\n };\n\n if (this.direction == 'vertical') {\n style.height = `${this.height}px`;\n }\n return style;\n },\n contentStyle() {\n return {\n paddingLeft: this.firstRound ? 0 : this.wrapWidth + 'px',\n animationDelay: (this.firstRound ? this.delay : 0) + 's',\n animationDuration: this.duration + 's'\n };\n },\n iconBg() {\n let iconBg = null;\n if (this.leftIcon) {\n iconBg = this.leftIcon;\n }\n return iconBg;\n },\n horseLampStyle() {\n let styles = {};\n if (this.complexAm) {\n styles = {\n transform: `translateY(${this.distance}px)`\n };\n } else {\n if (this.animate) {\n styles = {\n transition: `all ${~~(this.height / this.speed / 4)}s`,\n 'margin-top': `-${this.height}px`\n };\n }\n }\n return styles;\n }\n },\n watch: {\n text: {\n handler(val, newVal) {\n // console.log(val, newVal, this.showNoticeBar == false, 'text');\n\n if (this.showNoticeBar == false) {\n return;\n }\n this.$nextTick(() => {\n const { wrap, content } = this.$refs;\n\n if (!wrap || !content) {\n return;\n }\n const wrapWidth = wrap.getBoundingClientRect().width;\n\n const offsetWidth = content.getBoundingClientRect().width;\n // console.log(wrapWidth, offsetWidth, 'text222');\n\n if (this.scrollable && offsetWidth > wrapWidth) {\n this.wrapWidth = wrapWidth;\n this.offsetWidth = offsetWidth;\n\n this.duration = offsetWidth / this.speed;\n this.animationClass = 'play';\n } else {\n this.animationClass = '';\n }\n });\n },\n immediate: true\n },\n list(newValue, oldValue) {\n this.scrollList = [].concat(newValue);\n }\n },\n mounted() {\n console.log(this.direction);\n if (this.direction == 'vertical') {\n if (this.$slots.default) {\n this.scrollList = [].concat(this.$slots.default);\n } else {\n this.scrollList = [].concat(this.list);\n }\n\n setTimeout(() => {\n this.complexAm ? this.startRoll() : this.startRollEasy();\n }, this.standTime);\n }\n },\n methods: {\n handleClick(event) {\n this.$emit('click', event);\n },\n onClickIcon(event) {\n this.showNoticeBar = !this.closeMode;\n this.$emit('close', event);\n },\n onAnimationEnd() {\n this.firstRound = false;\n this.$nextTick(() => {\n this.duration = (this.offsetWidth + this.wrapWidth) / this.speed;\n this.animationClass = 'play-infinite';\n });\n },\n /**\n * 利益点滚动方式一\n */\n startRollEasy() {\n this.showhorseLamp();\n this.timer = setInterval(this.showhorseLamp, ~~(this.height / this.speed / 4) * 1000 + this.standTime);\n },\n showhorseLamp() {\n this.animate = true;\n setTimeout(() => {\n this.scrollList.push(this.scrollList[0]);\n this.scrollList.shift();\n this.animate = false;\n }, ~~(this.height / this.speed / 4) * 1000);\n },\n\n startRoll() {\n this.timer = setInterval(() => {\n let chunk = 100;\n for (let i = 0; i < chunk; i++) {\n this.scroll(i, i < chunk - 1 ? false : true);\n }\n }, this.standTime + 100 * this.speed);\n },\n scroll(n, last) {\n setTimeout(() => {\n this.distance -= this.height / 100;\n if (last) {\n this.scrollList.push(this.scrollList[0]);\n this.scrollList.shift();\n this.distance = 0;\n }\n }, n * this.speed);\n },\n\n /**\n * 点击滚动单元\n */\n go(item) {\n this.$emit('click', item);\n },\n\n handleClickIcon() {\n this.$emit('close', this.scrollList[0]);\n },\n\n activated() {\n if (this.keepAlive) {\n this.keepAlive = false;\n }\n },\n\n deactivated() {\n this.keepAlive = true;\n clearInterval(this.timer);\n },\n\n destroyed() {\n clearInterval(this.timer);\n }\n }\n};\n</script>\n<style lang=\"scss\">\n@import 'noticebar.scss';\n</style>\n","export default {\n name: 'ScrollItem',\n functional: true,\n props: {\n item: null\n },\n render: (createElement, context) => {\n // console.log(context.props.item)\n // console.log(context.slots().default)\n const { tag, children, data } = context.props.item;\n return createElement(tag, data, children);\n }\n};\n","import { render, staticRenderFns } from \"./noticebar.vue?vue&type=template&id=257e2140&\"\nimport script from \"./noticebar.vue?vue&type=script&lang=js&\"\nexport * from \"./noticebar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./noticebar.vue?vue&type=style&index=0&id=257e2140&prod&lang=scss&\"\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 NoticeBar from './noticebar.vue';\nimport './noticebar.scss';\n\nNoticeBar.install = function(Vue) {\n Vue.component(NoticeBar.name, NoticeBar);\n};\n\nexport default NoticeBar;\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--0-0!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js!../../../node_modules/sass-loader/dist/cjs.js??ref--0-3!../../../node_modules/cache-loader/dist/cjs.js!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./noticebar.vue?vue&type=style&index=0&id=257e2140&prod&lang=scss&\""],"sourceRoot":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v2.3.
|
|
2
|
+
* @nutui/nutui v2.3.14 - notify.css, ea1cfeedc4af744045aa, Thu Jul 27 2023 18:33:12 GMT+0800 (GMT+08:00)
|
|
3
3
|
* (c) 2017-2020 JDC
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/.nut-icon{list-style:none;display:inline-block;width:20px;height:20px;color:#2d2d2d}.nut-icon svg{vertical-align:top;width:100%;height:100%;fill:currentColor}.popup-fade-enter-active{-webkit-animation:nut-fade-in;animation:nut-fade-in}.popup-fade-leave-active{-webkit-animation:nut-fade-out;animation:nut-fade-out}.popup-slide-center-enter-active{-webkit-animation:nut-fade-in;animation:nut-fade-in}.popup-slide-center-leave-active{-webkit-animation:nut-fade-out;animation:nut-fade-out}.popup-slide-top-enter,.popup-slide-top-leave-active{-webkit-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%)}.popup-slide-right-enter,.popup-slide-right-leave-active{-webkit-transform:translate(100%);-ms-transform:translate(100%);transform:translate(100%)}.popup-slide-bottom-enter,.popup-slide-bottom-leave-active{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%)}.popup-slide-left-enter,.popup-slide-left-leave-active{-webkit-transform:translate(-100%);-ms-transform:translate(-100%);transform:translate(-100%)}.popup-center{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.popup-bottom{bottom:0;left:0;width:100%}.popup-bottom.round{border-radius:20px 20px 0 0}.popup-right{top:0;right:0}.popup-right.round{border-radius:20px 0 0 20px}.popup-left{top:0;left:0}.popup-left.round{border-radius:0 20px 20px 0}.popup-top{top:0;left:0;width:100%}.popup-top.round{border-radius:0 0 20px 20px}.popup-box{position:fixed;max-height:100%;overflow-y:auto;background-color:#fff;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;-o-transition:transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;-webkit-overflow-scrolling:touch}@-webkit-keyframes nut-fade-in{0%{opacity:0}to{opacity:1}}@-webkit-keyframes nut-fade-out{0%{opacity:1}to{opacity:0}}.nut-overflow-hidden{overflow:hidden!important}.nutui-popup__close-icon{position:absolute;z-index:1;color:#969799;font-size:18px;cursor:pointer}.nutui-popup__close-icon:active{opacity:.7}.nutui-popup__close-icon--top-left{top:16px;left:16px}.nutui-popup__close-icon--top-right{top:16px;right:16px}.nutui-popup__close-icon--bottom-left{bottom:16px;left:16px}.nutui-popup__close-icon--bottom-right{right:16px;bottom:16px}.popup-bg{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7)}@keyframes nut-fade-in{0%{opacity:0}to{opacity:1}}@keyframes nut-fade-out{0%{opacity:1}to{opacity:0}}.nut-notify{-webkit-box-sizing:border-box;box-sizing:border-box;padding:8px 16px;color:#fff;font-size:14px;line-height:20px;white-space:pre-wrap;text-align:center;word-wrap:break-word}.nut-notify--primary{background-color:#1989fa}.nut-notify--success{background-color:#07c160}.nut-notify--danger{background-color:#ee0a24}.nut-notify--warning{background-color:#ff976a}
|