@wanjunshijie/vue-seamless-scroll 2.0.0 → 3.0.0
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/LICENSE +21 -0
- package/README.md +41 -46
- package/dist/style.css +1 -0
- package/dist/vue-seamless-scroll.es.js +143 -0
- package/dist/vue-seamless-scroll.umd.js +1 -914
- package/package.json +34 -38
- package/dist/demo.html +0 -1
- package/dist/vue-seamless-scroll.common.js +0 -903
- package/dist/vue-seamless-scroll.common.js.map +0 -1
- package/dist/vue-seamless-scroll.umd.js.map +0 -1
- package/dist/vue-seamless-scroll.umd.min.js +0 -2
- package/dist/vue-seamless-scroll.umd.min.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vue-seamless-scroll.common.js","mappings":";;;;;;;;;;;;AAAA;AACkH;AACtB;AAC5F,8BAA8B,mFAA2B,CAAC,8FAAwC;AAClG;AACA,0EAA0E,kBAAkB,sEAAsE,gBAAgB,oDAAoD,qBAAqB,YAAY;AACvQ;AACA,+DAAe,uBAAuB,EAAC;;;;;;;;;ACP1B;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA,gDAAgD;AAChD;AACA;AACA,qFAAqF;AACrF;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,iBAAiB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,qBAAqB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sFAAsF,qBAAqB;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,iDAAiD,qBAAqB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sDAAsD,qBAAqB;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpFa;;AAEb;AACA;AACA;;;;;;;ACJA;;AAEA;AACA,cAAc,mBAAO,CAAC,GAA2a;AACjc;AACA;AACA;AACA;AACA,UAAU,8CAA8E;AACxF,6CAA6C,qCAAqC;;;;;;;;;;;;;;;ACTlF;AACA;AACA;AACA;AACe;AACf;AACA;AACA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,uBAAuB;AAC3D,MAAM;AACN;AACA;AACA;AACA;AACA;;;AC1BA;AACA;AACA;AACA;AACA;;AAEyC;;AAEzC;;AAEA;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;;AAEA;;AAEA,eAAe,YAAY;AAC3B;;AAEA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA,MAAM;AACN;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA,wBAAwB,2BAA2B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;AACA,sBAAsB,2BAA2B;AACjD;AACA;AACA,aAAa,uBAAuB;AACpC;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,sBAAsB,uBAAuB;AAC7C;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;;;;;;UC7NA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA,eAAe,4BAA4B;WAC3C,eAAe;WACf,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;;;;;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACA,kDAAe,IAAI;;;ACtBnB,IAAIA,MAAM,GAAG,SAASA,MAAMA,CAAA,EAAE;EAAC,IAAIC,GAAG,GAAC,IAAI;IAACC,EAAE,GAACD,GAAG,CAACE,KAAK,CAACD,EAAE;EAAC,OAAOA,EAAE,CAAC,KAAK,EAAC;IAACE,GAAG,EAAC,YAAY;IAACC,WAAW,EAAC,eAAe;IAACC,EAAE,EAAC;MAAC,YAAY,EAACL,GAAG,CAACM,YAAY;MAAC,YAAY,EAACN,GAAG,CAACO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;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC/F+F;AACvC;AACL;AACnD,CAA6F;;;AAG7F;AACmG;AACnG,gBAAgB,kBAAU;AAC1B,EAAE,mDAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,wDAAe;;ACnB4B;AAE3CyB,mBAAiB,CAACC,OAAO,GAAG,UAAUC,GAAG,EAAE;EACvCA,GAAG,CAACC,SAAS,CAACH,mBAAiB,CAAC/D,IAAI,EAAE+D,mBAAiB,CAAC;AAC5D,CAAC;AAED,iEAAeA,mBAAiB;;ACNqB;AAErD,MAAMI,UAAU,GAAG,CAACJ,4BAAiB,CAAC;AAEtC,MAAMC,OAAO,GAAG,SAAAA,CAAUC,GAAG,EAAE;EAC3BE,UAAU,CAACC,OAAO,CAACC,IAAI,IAAI;IACvBJ,GAAG,CAACC,SAAS,CAACG,IAAI,CAACrE,IAAI,EAAEqE,IAAI,CAAC;EAClC,CAAC,CAAC;AACN,CAAC;AAED,IAAI,OAAOzB,MAAM,KAAK,WAAW,IAAIA,MAAM,CAACqB,GAAG,EAAE;EAC7CD,OAAO,CAACpB,MAAM,CAACqB,GAAG,CAAC;AACvB;AAEA,+CAAe;EACXD,OAAO;EACPD,iBAAiBA,EAAAA,4BAAAA;AACrB,CAAC;;ACjBuB;AACA;AACxB,8CAAe,UAAG;AACI","sources":["webpack://@wanjunshijie/vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue?9fca","webpack://@wanjunshijie/vue-seamless-scroll/./node_modules/css-loader/dist/runtime/api.js","webpack://@wanjunshijie/vue-seamless-scroll/./node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://@wanjunshijie/vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue?1a80","webpack://@wanjunshijie/vue-seamless-scroll/./node_modules/vue-style-loader/lib/listToStyles.js","webpack://@wanjunshijie/vue-seamless-scroll/./node_modules/vue-style-loader/lib/addStylesClient.js","webpack://@wanjunshijie/vue-seamless-scroll/webpack/bootstrap","webpack://@wanjunshijie/vue-seamless-scroll/webpack/runtime/compat get default export","webpack://@wanjunshijie/vue-seamless-scroll/webpack/runtime/define property getters","webpack://@wanjunshijie/vue-seamless-scroll/webpack/runtime/hasOwnProperty shorthand","webpack://@wanjunshijie/vue-seamless-scroll/webpack/runtime/make namespace object","webpack://@wanjunshijie/vue-seamless-scroll/webpack/runtime/publicPath","webpack://@wanjunshijie/vue-seamless-scroll/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://@wanjunshijie/vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue","webpack://@wanjunshijie/vue-seamless-scroll/packages/vue-seamless-scroll/index.vue","webpack://@wanjunshijie/vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue?37c5","webpack://@wanjunshijie/vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue?798d","webpack://@wanjunshijie/vue-seamless-scroll/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://@wanjunshijie/vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue?9166","webpack://@wanjunshijie/vue-seamless-scroll/./packages/vue-seamless-scroll/index.js","webpack://@wanjunshijie/vue-seamless-scroll/./packages/index.js","webpack://@wanjunshijie/vue-seamless-scroll/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".seamless-list[data-v-44bde8d8]{touch-action:none}.seamless-list[data-v-44bde8d8],.seamless-list__body[data-v-44bde8d8]{overflow:hidden}.seamless-list__body.is-horizontal[data-v-44bde8d8]{display:inline-block;font-size:0}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=44bde8d8&prod&scoped=true&lang=css\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"7ede6155\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nexport default function listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n","/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\nimport listToStyles from './listToStyles'\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array<StyleObjectPart>\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n// tags it will allow on a page\nvar isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())\n\nexport default function addStylesClient (parentId, list, _isProduction, _options) {\n isProduction = _isProduction\n\n options = _options || {}\n\n var styles = listToStyles(parentId, list)\n addStylesToDom(styles)\n\n return function update (newList) {\n var mayRemove = []\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n domStyle.refs--\n mayRemove.push(domStyle)\n }\n if (newList) {\n styles = listToStyles(parentId, newList)\n addStylesToDom(styles)\n } else {\n styles = []\n }\n for (var i = 0; i < mayRemove.length; i++) {\n var domStyle = mayRemove[i]\n if (domStyle.refs === 0) {\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j]()\n }\n delete stylesInDom[domStyle.id]\n }\n }\n }\n}\n\nfunction addStylesToDom (styles /* Array<StyleObject> */) {\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n if (domStyle) {\n domStyle.refs++\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j](item.parts[j])\n }\n for (; j < item.parts.length; j++) {\n domStyle.parts.push(addStyle(item.parts[j]))\n }\n if (domStyle.parts.length > item.parts.length) {\n domStyle.parts.length = item.parts.length\n }\n } else {\n var parts = []\n for (var j = 0; j < item.parts.length; j++) {\n parts.push(addStyle(item.parts[j]))\n }\n stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }\n }\n }\n}\n\nfunction createStyleElement () {\n var styleElement = document.createElement('style')\n styleElement.type = 'text/css'\n head.appendChild(styleElement)\n return styleElement\n}\n\nfunction addStyle (obj /* StyleObjectPart */) {\n var update, remove\n var styleElement = document.querySelector('style[' + ssrIdKey + '~=\"' + obj.id + '\"]')\n\n if (styleElement) {\n if (isProduction) {\n // has SSR styles and in production mode.\n // simply do nothing.\n return noop\n } else {\n // has SSR styles but in dev mode.\n // for some reason Chrome can't handle source map in server-rendered\n // style tags - source maps in <style> only works if the style tag is\n // created and inserted dynamically. So we remove the server rendered\n // styles and inject new ones.\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n if (isOldIE) {\n // use singleton mode for IE9.\n var styleIndex = singletonCounter++\n styleElement = singletonElement || (singletonElement = createStyleElement())\n update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)\n remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)\n } else {\n // use multi-style-tag mode in all other cases\n styleElement = createStyleElement()\n update = applyToTag.bind(null, styleElement)\n remove = function () {\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n update(obj)\n\n return function updateStyle (newObj /* StyleObjectPart */) {\n if (newObj) {\n if (newObj.css === obj.css &&\n newObj.media === obj.media &&\n newObj.sourceMap === obj.sourceMap) {\n return\n }\n update(obj = newObj)\n } else {\n remove()\n }\n }\n}\n\nvar replaceText = (function () {\n var textStore = []\n\n return function (index, replacement) {\n textStore[index] = replacement\n return textStore.filter(Boolean).join('\\n')\n }\n})()\n\nfunction applyToSingletonTag (styleElement, index, remove, obj) {\n var css = remove ? '' : obj.css\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = replaceText(index, css)\n } else {\n var cssNode = document.createTextNode(css)\n var childNodes = styleElement.childNodes\n if (childNodes[index]) styleElement.removeChild(childNodes[index])\n if (childNodes.length) {\n styleElement.insertBefore(cssNode, childNodes[index])\n } else {\n styleElement.appendChild(cssNode)\n }\n }\n}\n\nfunction applyToTag (styleElement, obj) {\n var css = obj.css\n var media = obj.media\n var sourceMap = obj.sourceMap\n\n if (media) {\n styleElement.setAttribute('media', media)\n }\n if (options.ssrId) {\n styleElement.setAttribute(ssrIdKey, obj.id)\n }\n\n if (sourceMap) {\n // https://developer.chrome.com/devtools/docs/javascript-debugging\n // this makes source maps inside style tags work properly in Chrome\n css += '\\n/*# sourceURL=' + sourceMap.sources[0] + ' */'\n // http://stackoverflow.com/a/26603875\n css += '\\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'\n }\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild)\n }\n styleElement.appendChild(document.createTextNode(css))\n }\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:\"scrollBody\",staticClass:\"seamless-list\",on:{\"mouseenter\":_vm.onMouseenter,\"mouseleave\":_vm.onMouseleave,\"wheel\":_vm.onWheel,\"touchstart\":_vm.onTouchStart,\"touchmove\":_vm.onTouchMove,\"touchend\":_vm.onTouchEnd,\"touchcancel\":_vm.onTouchEnd}},[_c('div',{ref:\"listBody\",staticClass:\"seamless-list__body\",class:{ 'is-horizontal': _vm.isHorizontal },style:({ transform: _vm.getScrollStyle() })},[_vm._t(\"default\")],2),(_vm.canScroll)?_c('div',{staticClass:\"seamless-list__body\",class:{ 'is-horizontal': _vm.isHorizontal },style:({ transform: _vm.getScrollStyle() })},[_vm._t(\"default\")],2):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"seamless-list\" ref=\"scrollBody\" @mouseenter=\"onMouseenter\" @mouseleave=\"onMouseleave\" @wheel=\"onWheel\"\n @touchstart=\"onTouchStart\" @touchmove=\"onTouchMove\" @touchend=\"onTouchEnd\" @touchcancel=\"onTouchEnd\">\n <div class=\"seamless-list__body\" :class=\"{ 'is-horizontal': isHorizontal }\" ref=\"listBody\"\n :style=\"{ transform: getScrollStyle() }\">\n <slot></slot>\n </div>\n <div class=\"seamless-list__body\" :class=\"{ 'is-horizontal': isHorizontal }\" v-if=\"canScroll\"\n :style=\"{ transform: getScrollStyle() }\">\n <slot></slot>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'VueSeamlessScroll',\n props: {\n // 滚动方向\n direction: {\n type: String,\n default: 'top'\n },\n // 滚动速度\n steep: {\n type: Number,\n default: 0.5\n },\n // 是否可以滑轮滚动\n roller: {\n type: Boolean,\n default: true\n },\n // 滑轮滚动的距离\n distance: {\n type: Number,\n default: 20\n },\n data: Array\n },\n data() {\n return {\n listWidth: 0,\n listHeight: 0,\n bodyWidth: 0,\n bodyHeight: 0,\n canScroll: false,\n isStop: false,\n scrollDistance: 0,\n animationFrame: null,\n touchStartX: 0,\n touchStartY: 0,\n touchStartDistance: 0\n }\n },\n computed: {\n isHorizontal() {\n return this.direction === 'left' || this.direction === 'right'\n }\n },\n watch: {\n data: {\n handler() {\n this.$nextTick(() => {\n this.initData()\n })\n },\n deep: true\n }\n },\n mounted() {\n this.$nextTick(() => {\n this.initData()\n })\n },\n destroyed() {\n this.stop()\n },\n methods: {\n initData() {\n this.stop()\n this.$nextTick(() => {\n this.listWidth = this.$refs.listBody ? this.$refs.listBody.clientWidth : 0\n this.listHeight = this.$refs.listBody ? this.$refs.listBody.clientHeight : 0\n this.bodyWidth = this.$refs.scrollBody ? this.$refs.scrollBody.clientWidth : 0\n this.bodyHeight = this.$refs.scrollBody ? this.$refs.scrollBody.clientHeight : 0\n this.scrollDistance = 0\n this.start()\n })\n },\n\n start() {\n this.isStop = false\n if (this.isHorizontal) {\n this.getCanScroll(this.listWidth, this.bodyWidth)\n } else {\n this.getCanScroll(this.listHeight, this.bodyHeight)\n }\n if (this.canScroll) {\n this.run()\n }\n },\n\n run() {\n let that = this\n this.clearAnimation()\n if (this.steep == 0) {\n this.setScrollDistance()\n return\n }\n this.animationFrame = window.requestAnimationFrame(() => {\n that.setScrollDistance()\n if (!that.isStop) {\n if (that.direction === 'top' || that.direction === 'left') {\n that.scrollDistance -= that.steep\n } else if (that.direction === 'bottom' || that.direction === 'right') {\n that.scrollDistance += that.steep\n }\n that.run()\n }\n })\n },\n\n stop() {\n this.isStop = true\n this.clearAnimation()\n },\n\n getCanScroll(listSize, bodySize) {\n this.canScroll = listSize && bodySize && listSize > bodySize\n },\n\n setScrollDistance() {\n if (this.isHorizontal) {\n this.getScrollDistance(this.listWidth, this.bodyWidth)\n } else {\n this.getScrollDistance(this.listHeight, this.bodyHeight)\n }\n },\n\n getScrollDistance(listSize, bodySize) {\n let scrollDistance = Math.abs(this.scrollDistance)\n if (this.scrollDistance < 0) {\n let size = 2 * listSize - bodySize\n if (scrollDistance > size) {\n this.scrollDistance = -(listSize - bodySize)\n }\n } else {\n this.scrollDistance = -listSize\n }\n },\n\n getScrollStyle() {\n let style = ''\n if (!this.isHorizontal) {\n style = `translate(0, ${this.scrollDistance}px)`\n } else {\n style = `translate(${this.scrollDistance}px, 0)`\n }\n return style\n },\n\n clearAnimation() {\n if (this.animationFrame) {\n cancelAnimationFrame(this.animationFrame)\n this.animationFrame = null\n }\n },\n\n onMouseenter() {\n this.stop()\n },\n\n onMouseleave() {\n this.start()\n },\n\n onWheel(e) {\n e.preventDefault()\n if (!this.canScroll || !this.roller) {\n return false\n }\n let dis = e.deltaY\n if (dis > 0) {\n this.scrollDistance -= this.distance\n } else {\n this.scrollDistance += this.distance\n }\n this.run()\n },\n\n onTouchStart(e) {\n this.stop()\n let touch = e.touches[0]\n if (!touch) {\n return\n }\n this.touchStartX = touch.clientX\n this.touchStartY = touch.clientY\n this.touchStartDistance = this.scrollDistance\n },\n\n onTouchMove(e) {\n e.preventDefault()\n if (!this.canScroll) {\n return false\n }\n let touch = e.touches[0]\n if (!touch) {\n return false\n }\n if (this.isHorizontal) {\n this.scrollDistance = this.touchStartDistance + touch.clientX - this.touchStartX\n this.scrollDistance = Math.max(-(this.listWidth - this.bodyWidth), Math.min(0, this.scrollDistance))\n } else {\n this.scrollDistance = this.touchStartDistance + touch.clientY - this.touchStartY\n this.scrollDistance = Math.max(-(this.listHeight - this.bodyHeight), Math.min(0, this.scrollDistance))\n }\n },\n\n onTouchEnd() {\n this.start()\n }\n }\n}\n</script>\n\n<style scoped>\n.seamless-list {\n overflow: hidden;\n touch-action: none;\n}\n\n.seamless-list__body {\n overflow: hidden;\n}\n\n.seamless-list__body.is-horizontal {\n display: inline-block;\n font-size: 0;\n}\n</style>\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"","export * from \"-!../../node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=44bde8d8&prod&scoped=true&lang=css\"","/* 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","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=44bde8d8&scoped=true\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=44bde8d8&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"44bde8d8\",\n null\n \n)\n\nexport default component.exports","import VueSeamlessScroll from './index.vue'\n\nVueSeamlessScroll.install = function (Vue) {\n Vue.component(VueSeamlessScroll.name, VueSeamlessScroll)\n}\n\nexport default VueSeamlessScroll\n","import VueSeamlessScroll from './vue-seamless-scroll'\n\nconst components = [VueSeamlessScroll]\n\nconst install = function (Vue) {\n components.forEach(comp => {\n Vue.component(comp.name, comp)\n })\n}\n\nif (typeof window !== 'undefined' && window.Vue) {\n install(window.Vue)\n}\n\nexport default {\n install,\n VueSeamlessScroll\n}\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["render","_vm","_c","_self","ref","staticClass","on","onMouseenter","onMouseleave","onWheel","onTouchStart","onTouchMove","onTouchEnd","class","isHorizontal","style","transform","getScrollStyle","_t","canScroll","_e","staticRenderFns","name","props","direction","type","String","default","steep","Number","roller","Boolean","distance","data","Array","listWidth","listHeight","bodyWidth","bodyHeight","isStop","scrollDistance","animationFrame","touchStartX","touchStartY","touchStartDistance","computed","watch","handler","$nextTick","initData","deep","mounted","destroyed","stop","methods","$refs","listBody","clientWidth","clientHeight","scrollBody","start","getCanScroll","run","that","clearAnimation","setScrollDistance","window","requestAnimationFrame","listSize","bodySize","getScrollDistance","Math","abs","size","cancelAnimationFrame","e","preventDefault","dis","deltaY","touch","touches","clientX","clientY","max","min","VueSeamlessScroll","install","Vue","component","components","forEach","comp"],"sourceRoot":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vue-seamless-scroll.umd.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;ACVA;AACkH;AACtB;AAC5F,8BAA8B,mFAA2B,CAAC,8FAAwC;AAClG;AACA,0EAA0E,kBAAkB,sEAAsE,gBAAgB,oDAAoD,qBAAqB,YAAY;AACvQ;AACA,+DAAe,uBAAuB,EAAC;;;;;;;;;ACP1B;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA,gDAAgD;AAChD;AACA;AACA,qFAAqF;AACrF;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,iBAAiB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,qBAAqB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sFAAsF,qBAAqB;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,iDAAiD,qBAAqB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sDAAsD,qBAAqB;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpFa;;AAEb;AACA;AACA;;;;;;;ACJA;;AAEA;AACA,cAAc,mBAAO,CAAC,GAA2a;AACjc;AACA;AACA;AACA;AACA,UAAU,8CAA8E;AACxF,6CAA6C,qCAAqC;;;;;;;;;;;;;;;ACTlF;AACA;AACA;AACA;AACe;AACf;AACA;AACA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,uBAAuB;AAC3D,MAAM;AACN;AACA;AACA;AACA;AACA;;;AC1BA;AACA;AACA;AACA;AACA;;AAEyC;;AAEzC;;AAEA;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;;AAEA;;AAEA,eAAe,YAAY;AAC3B;;AAEA;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,YAAY;AAC3B;AACA,MAAM;AACN;AACA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA,wBAAwB,2BAA2B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;AACA,sBAAsB,2BAA2B;AACjD;AACA;AACA,aAAa,uBAAuB;AACpC;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,sBAAsB,uBAAuB;AAC7C;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;;AAE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;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC/F+F;AACvC;AACL;AACnD,CAA6F;;;AAG7F;AACmG;AACnG,gBAAgB,kBAAU;AAC1B,EAAE,mDAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,wDAAe;;ACnB4B;AAE3CyB,mBAAiB,CAACC,OAAO,GAAG,UAAUC,GAAG,EAAE;EACvCA,GAAG,CAACC,SAAS,CAACH,mBAAiB,CAAC/D,IAAI,EAAE+D,mBAAiB,CAAC;AAC5D,CAAC;AAED,iEAAeA,mBAAiB;;ACNqB;AAErD,MAAMI,UAAU,GAAG,CAACJ,4BAAiB,CAAC;AAEtC,MAAMC,OAAO,GAAG,SAAAA,CAAUC,GAAG,EAAE;EAC3BE,UAAU,CAACC,OAAO,CAACC,IAAI,IAAI;IACvBJ,GAAG,CAACC,SAAS,CAACG,IAAI,CAACrE,IAAI,EAAEqE,IAAI,CAAC;EAClC,CAAC,CAAC;AACN,CAAC;AAED,IAAI,OAAOzB,MAAM,KAAK,WAAW,IAAIA,MAAM,CAACqB,GAAG,EAAE;EAC7CD,OAAO,CAACpB,MAAM,CAACqB,GAAG,CAAC;AACvB;AAEA,+CAAe;EACXD,OAAO;EACPD,iBAAiBA,EAAAA,4BAAAA;AACrB,CAAC;;ACjBuB;AACA;AACxB,8CAAe,UAAG;AACI","sources":["webpack://vue-seamless-scroll/webpack/universalModuleDefinition","webpack://vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue?f097","webpack://vue-seamless-scroll/./node_modules/css-loader/dist/runtime/api.js","webpack://vue-seamless-scroll/./node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue?e6f0","webpack://vue-seamless-scroll/./node_modules/vue-style-loader/lib/listToStyles.js","webpack://vue-seamless-scroll/./node_modules/vue-style-loader/lib/addStylesClient.js","webpack://vue-seamless-scroll/webpack/bootstrap","webpack://vue-seamless-scroll/webpack/runtime/compat get default export","webpack://vue-seamless-scroll/webpack/runtime/define property getters","webpack://vue-seamless-scroll/webpack/runtime/hasOwnProperty shorthand","webpack://vue-seamless-scroll/webpack/runtime/make namespace object","webpack://vue-seamless-scroll/webpack/runtime/publicPath","webpack://vue-seamless-scroll/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue","webpack://vue-seamless-scroll/packages/vue-seamless-scroll/index.vue","webpack://vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue?174f","webpack://vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue?2c8e","webpack://vue-seamless-scroll/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue?9166","webpack://vue-seamless-scroll/./packages/vue-seamless-scroll/index.js","webpack://vue-seamless-scroll/./packages/index.js","webpack://vue-seamless-scroll/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.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([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vue-seamless-scroll\"] = factory();\n\telse\n\t\troot[\"vue-seamless-scroll\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn ","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".seamless-list[data-v-44bde8d8]{touch-action:none}.seamless-list[data-v-44bde8d8],.seamless-list__body[data-v-44bde8d8]{overflow:hidden}.seamless-list__body.is-horizontal[data-v-44bde8d8]{display:inline-block;font-size:0}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[3]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=44bde8d8&prod&scoped=true&lang=css\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"41adcc57\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nexport default function listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n","/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\nimport listToStyles from './listToStyles'\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array<StyleObjectPart>\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n// tags it will allow on a page\nvar isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())\n\nexport default function addStylesClient (parentId, list, _isProduction, _options) {\n isProduction = _isProduction\n\n options = _options || {}\n\n var styles = listToStyles(parentId, list)\n addStylesToDom(styles)\n\n return function update (newList) {\n var mayRemove = []\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n domStyle.refs--\n mayRemove.push(domStyle)\n }\n if (newList) {\n styles = listToStyles(parentId, newList)\n addStylesToDom(styles)\n } else {\n styles = []\n }\n for (var i = 0; i < mayRemove.length; i++) {\n var domStyle = mayRemove[i]\n if (domStyle.refs === 0) {\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j]()\n }\n delete stylesInDom[domStyle.id]\n }\n }\n }\n}\n\nfunction addStylesToDom (styles /* Array<StyleObject> */) {\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n if (domStyle) {\n domStyle.refs++\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j](item.parts[j])\n }\n for (; j < item.parts.length; j++) {\n domStyle.parts.push(addStyle(item.parts[j]))\n }\n if (domStyle.parts.length > item.parts.length) {\n domStyle.parts.length = item.parts.length\n }\n } else {\n var parts = []\n for (var j = 0; j < item.parts.length; j++) {\n parts.push(addStyle(item.parts[j]))\n }\n stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }\n }\n }\n}\n\nfunction createStyleElement () {\n var styleElement = document.createElement('style')\n styleElement.type = 'text/css'\n head.appendChild(styleElement)\n return styleElement\n}\n\nfunction addStyle (obj /* StyleObjectPart */) {\n var update, remove\n var styleElement = document.querySelector('style[' + ssrIdKey + '~=\"' + obj.id + '\"]')\n\n if (styleElement) {\n if (isProduction) {\n // has SSR styles and in production mode.\n // simply do nothing.\n return noop\n } else {\n // has SSR styles but in dev mode.\n // for some reason Chrome can't handle source map in server-rendered\n // style tags - source maps in <style> only works if the style tag is\n // created and inserted dynamically. So we remove the server rendered\n // styles and inject new ones.\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n if (isOldIE) {\n // use singleton mode for IE9.\n var styleIndex = singletonCounter++\n styleElement = singletonElement || (singletonElement = createStyleElement())\n update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)\n remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)\n } else {\n // use multi-style-tag mode in all other cases\n styleElement = createStyleElement()\n update = applyToTag.bind(null, styleElement)\n remove = function () {\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n update(obj)\n\n return function updateStyle (newObj /* StyleObjectPart */) {\n if (newObj) {\n if (newObj.css === obj.css &&\n newObj.media === obj.media &&\n newObj.sourceMap === obj.sourceMap) {\n return\n }\n update(obj = newObj)\n } else {\n remove()\n }\n }\n}\n\nvar replaceText = (function () {\n var textStore = []\n\n return function (index, replacement) {\n textStore[index] = replacement\n return textStore.filter(Boolean).join('\\n')\n }\n})()\n\nfunction applyToSingletonTag (styleElement, index, remove, obj) {\n var css = remove ? '' : obj.css\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = replaceText(index, css)\n } else {\n var cssNode = document.createTextNode(css)\n var childNodes = styleElement.childNodes\n if (childNodes[index]) styleElement.removeChild(childNodes[index])\n if (childNodes.length) {\n styleElement.insertBefore(cssNode, childNodes[index])\n } else {\n styleElement.appendChild(cssNode)\n }\n }\n}\n\nfunction applyToTag (styleElement, obj) {\n var css = obj.css\n var media = obj.media\n var sourceMap = obj.sourceMap\n\n if (media) {\n styleElement.setAttribute('media', media)\n }\n if (options.ssrId) {\n styleElement.setAttribute(ssrIdKey, obj.id)\n }\n\n if (sourceMap) {\n // https://developer.chrome.com/devtools/docs/javascript-debugging\n // this makes source maps inside style tags work properly in Chrome\n css += '\\n/*# sourceURL=' + sourceMap.sources[0] + ' */'\n // http://stackoverflow.com/a/26603875\n css += '\\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'\n }\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild)\n }\n styleElement.appendChild(document.createTextNode(css))\n }\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:\"scrollBody\",staticClass:\"seamless-list\",on:{\"mouseenter\":_vm.onMouseenter,\"mouseleave\":_vm.onMouseleave,\"wheel\":_vm.onWheel,\"touchstart\":_vm.onTouchStart,\"touchmove\":_vm.onTouchMove,\"touchend\":_vm.onTouchEnd,\"touchcancel\":_vm.onTouchEnd}},[_c('div',{ref:\"listBody\",staticClass:\"seamless-list__body\",class:{ 'is-horizontal': _vm.isHorizontal },style:({ transform: _vm.getScrollStyle() })},[_vm._t(\"default\")],2),(_vm.canScroll)?_c('div',{staticClass:\"seamless-list__body\",class:{ 'is-horizontal': _vm.isHorizontal },style:({ transform: _vm.getScrollStyle() })},[_vm._t(\"default\")],2):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"seamless-list\" ref=\"scrollBody\" @mouseenter=\"onMouseenter\" @mouseleave=\"onMouseleave\" @wheel=\"onWheel\"\n @touchstart=\"onTouchStart\" @touchmove=\"onTouchMove\" @touchend=\"onTouchEnd\" @touchcancel=\"onTouchEnd\">\n <div class=\"seamless-list__body\" :class=\"{ 'is-horizontal': isHorizontal }\" ref=\"listBody\"\n :style=\"{ transform: getScrollStyle() }\">\n <slot></slot>\n </div>\n <div class=\"seamless-list__body\" :class=\"{ 'is-horizontal': isHorizontal }\" v-if=\"canScroll\"\n :style=\"{ transform: getScrollStyle() }\">\n <slot></slot>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'VueSeamlessScroll',\n props: {\n // 滚动方向\n direction: {\n type: String,\n default: 'top'\n },\n // 滚动速度\n steep: {\n type: Number,\n default: 0.5\n },\n // 是否可以滑轮滚动\n roller: {\n type: Boolean,\n default: true\n },\n // 滑轮滚动的距离\n distance: {\n type: Number,\n default: 20\n },\n data: Array\n },\n data() {\n return {\n listWidth: 0,\n listHeight: 0,\n bodyWidth: 0,\n bodyHeight: 0,\n canScroll: false,\n isStop: false,\n scrollDistance: 0,\n animationFrame: null,\n touchStartX: 0,\n touchStartY: 0,\n touchStartDistance: 0\n }\n },\n computed: {\n isHorizontal() {\n return this.direction === 'left' || this.direction === 'right'\n }\n },\n watch: {\n data: {\n handler() {\n this.$nextTick(() => {\n this.initData()\n })\n },\n deep: true\n }\n },\n mounted() {\n this.$nextTick(() => {\n this.initData()\n })\n },\n destroyed() {\n this.stop()\n },\n methods: {\n initData() {\n this.stop()\n this.$nextTick(() => {\n this.listWidth = this.$refs.listBody ? this.$refs.listBody.clientWidth : 0\n this.listHeight = this.$refs.listBody ? this.$refs.listBody.clientHeight : 0\n this.bodyWidth = this.$refs.scrollBody ? this.$refs.scrollBody.clientWidth : 0\n this.bodyHeight = this.$refs.scrollBody ? this.$refs.scrollBody.clientHeight : 0\n this.scrollDistance = 0\n this.start()\n })\n },\n\n start() {\n this.isStop = false\n if (this.isHorizontal) {\n this.getCanScroll(this.listWidth, this.bodyWidth)\n } else {\n this.getCanScroll(this.listHeight, this.bodyHeight)\n }\n if (this.canScroll) {\n this.run()\n }\n },\n\n run() {\n let that = this\n this.clearAnimation()\n if (this.steep == 0) {\n this.setScrollDistance()\n return\n }\n this.animationFrame = window.requestAnimationFrame(() => {\n that.setScrollDistance()\n if (!that.isStop) {\n if (that.direction === 'top' || that.direction === 'left') {\n that.scrollDistance -= that.steep\n } else if (that.direction === 'bottom' || that.direction === 'right') {\n that.scrollDistance += that.steep\n }\n that.run()\n }\n })\n },\n\n stop() {\n this.isStop = true\n this.clearAnimation()\n },\n\n getCanScroll(listSize, bodySize) {\n this.canScroll = listSize && bodySize && listSize > bodySize\n },\n\n setScrollDistance() {\n if (this.isHorizontal) {\n this.getScrollDistance(this.listWidth, this.bodyWidth)\n } else {\n this.getScrollDistance(this.listHeight, this.bodyHeight)\n }\n },\n\n getScrollDistance(listSize, bodySize) {\n let scrollDistance = Math.abs(this.scrollDistance)\n if (this.scrollDistance < 0) {\n let size = 2 * listSize - bodySize\n if (scrollDistance > size) {\n this.scrollDistance = -(listSize - bodySize)\n }\n } else {\n this.scrollDistance = -listSize\n }\n },\n\n getScrollStyle() {\n let style = ''\n if (!this.isHorizontal) {\n style = `translate(0, ${this.scrollDistance}px)`\n } else {\n style = `translate(${this.scrollDistance}px, 0)`\n }\n return style\n },\n\n clearAnimation() {\n if (this.animationFrame) {\n cancelAnimationFrame(this.animationFrame)\n this.animationFrame = null\n }\n },\n\n onMouseenter() {\n this.stop()\n },\n\n onMouseleave() {\n this.start()\n },\n\n onWheel(e) {\n e.preventDefault()\n if (!this.canScroll || !this.roller) {\n return false\n }\n let dis = e.deltaY\n if (dis > 0) {\n this.scrollDistance -= this.distance\n } else {\n this.scrollDistance += this.distance\n }\n this.run()\n },\n\n onTouchStart(e) {\n this.stop()\n let touch = e.touches[0]\n if (!touch) {\n return\n }\n this.touchStartX = touch.clientX\n this.touchStartY = touch.clientY\n this.touchStartDistance = this.scrollDistance\n },\n\n onTouchMove(e) {\n e.preventDefault()\n if (!this.canScroll) {\n return false\n }\n let touch = e.touches[0]\n if (!touch) {\n return false\n }\n if (this.isHorizontal) {\n this.scrollDistance = this.touchStartDistance + touch.clientX - this.touchStartX\n this.scrollDistance = Math.max(-(this.listWidth - this.bodyWidth), Math.min(0, this.scrollDistance))\n } else {\n this.scrollDistance = this.touchStartDistance + touch.clientY - this.touchStartY\n this.scrollDistance = Math.max(-(this.listHeight - this.bodyHeight), Math.min(0, this.scrollDistance))\n }\n },\n\n onTouchEnd() {\n this.start()\n }\n }\n}\n</script>\n\n<style scoped>\n.seamless-list {\n overflow: hidden;\n touch-action: none;\n}\n\n.seamless-list__body {\n overflow: hidden;\n}\n\n.seamless-list__body.is-horizontal {\n display: inline-block;\n font-size: 0;\n}\n</style>\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"","export * from \"-!../../node_modules/vue-style-loader/index.js??clonedRuleSet-54.use[0]!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[3]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=44bde8d8&prod&scoped=true&lang=css\"","/* 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","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=44bde8d8&scoped=true\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=44bde8d8&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"44bde8d8\",\n null\n \n)\n\nexport default component.exports","import VueSeamlessScroll from './index.vue'\n\nVueSeamlessScroll.install = function (Vue) {\n Vue.component(VueSeamlessScroll.name, VueSeamlessScroll)\n}\n\nexport default VueSeamlessScroll\n","import VueSeamlessScroll from './vue-seamless-scroll'\n\nconst components = [VueSeamlessScroll]\n\nconst install = function (Vue) {\n components.forEach(comp => {\n Vue.component(comp.name, comp)\n })\n}\n\nif (typeof window !== 'undefined' && window.Vue) {\n install(window.Vue)\n}\n\nexport default {\n install,\n VueSeamlessScroll\n}\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["render","_vm","_c","_self","ref","staticClass","on","onMouseenter","onMouseleave","onWheel","onTouchStart","onTouchMove","onTouchEnd","class","isHorizontal","style","transform","getScrollStyle","_t","canScroll","_e","staticRenderFns","name","props","direction","type","String","default","steep","Number","roller","Boolean","distance","data","Array","listWidth","listHeight","bodyWidth","bodyHeight","isStop","scrollDistance","animationFrame","touchStartX","touchStartY","touchStartDistance","computed","watch","handler","$nextTick","initData","deep","mounted","destroyed","stop","methods","$refs","listBody","clientWidth","clientHeight","scrollBody","start","getCanScroll","run","that","clearAnimation","setScrollDistance","window","requestAnimationFrame","listSize","bodySize","getScrollDistance","Math","abs","size","cancelAnimationFrame","e","preventDefault","dis","deltaY","touch","touches","clientX","clientY","max","min","VueSeamlessScroll","install","Vue","component","components","forEach","comp"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-seamless-scroll"]=e():t["vue-seamless-scroll"]=e()})("undefined"!==typeof self?self:this,(function(){return function(){var t={748:function(t,e,i){"use strict";i.r(e);var n=i(81),s=i.n(n),o=i(645),r=i.n(o),a=r()(s());a.push([t.id,".seamless-list[data-v-44bde8d8]{touch-action:none}.seamless-list[data-v-44bde8d8],.seamless-list__body[data-v-44bde8d8]{overflow:hidden}.seamless-list__body.is-horizontal[data-v-44bde8d8]{display:inline-block;font-size:0}",""]),e["default"]=a},645:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n="undefined"!==typeof e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,s,o){"string"===typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(r[l]=!0)}for(var c=0;c<t.length;c++){var d=[].concat(t[c]);n&&r[d[0]]||("undefined"!==typeof o&&("undefined"===typeof d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=o),i&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=i):d[2]=i),s&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=s):d[4]="".concat(s)),e.push(d))}},e}},81:function(t){"use strict";t.exports=function(t){return t[1]}},67:function(t,e,i){var n=i(748);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=i(402).Z;s("047d3759",n,!0,{sourceMap:!1,shadowMode:!1})},402:function(t,e,i){"use strict";function n(t,e){for(var i=[],n={},s=0;s<e.length;s++){var o=e[s],r=o[0],a=o[1],l=o[2],c=o[3],d={id:t+":"+s,css:a,media:l,sourceMap:c};n[r]?n[r].parts.push(d):i.push(n[r]={id:r,parts:[d]})}return i}i.d(e,{Z:function(){return p}});var s="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!s)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},r=s&&(document.head||document.getElementsByTagName("head")[0]),a=null,l=0,c=!1,d=function(){},h=null,u="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,i,s){c=i,h=s||{};var r=n(t,e);return m(r),function(e){for(var i=[],s=0;s<r.length;s++){var a=r[s],l=o[a.id];l.refs--,i.push(l)}e?(r=n(t,e),m(r)):r=[];for(s=0;s<i.length;s++){l=i[s];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}}function m(t){for(var e=0;e<t.length;e++){var i=t[e],n=o[i.id];if(n){n.refs++;for(var s=0;s<n.parts.length;s++)n.parts[s](i.parts[s]);for(;s<i.parts.length;s++)n.parts.push(y(i.parts[s]));n.parts.length>i.parts.length&&(n.parts.length=i.parts.length)}else{var r=[];for(s=0;s<i.parts.length;s++)r.push(y(i.parts[s]));o[i.id]={id:i.id,refs:1,parts:r}}}}function v(){var t=document.createElement("style");return t.type="text/css",r.appendChild(t),t}function y(t){var e,i,n=document.querySelector("style["+u+'~="'+t.id+'"]');if(n){if(c)return d;n.parentNode.removeChild(n)}if(f){var s=l++;n=a||(a=v()),e=S.bind(null,n,s,!1),i=S.bind(null,n,s,!0)}else n=v(),e=b.bind(null,n),i=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else i()}}var g=function(){var t=[];return function(e,i){return t[e]=i,t.filter(Boolean).join("\n")}}();function S(t,e,i,n){var s=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=g(e,s);else{var o=document.createTextNode(s),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(o,r[e]):t.appendChild(o)}}function b(t,e){var i=e.css,n=e.media,s=e.sourceMap;if(n&&t.setAttribute("media",n),h.ssrId&&t.setAttribute(u,e.id),s&&(i+="\n/*# sourceURL="+s.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),t.styleSheet)t.styleSheet.cssText=i;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var o=e[n]={id:n,exports:{}};return t[n](o,o.exports,i),o.exports}!function(){i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,{a:e}),e}}(),function(){i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){i.p=""}();var n={};return function(){"use strict";if(i.r(n),i.d(n,{default:function(){return m}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(i.p=e[1])}var s=function(){var t=this,e=t._self._c;return e("div",{ref:"scrollBody",staticClass:"seamless-list",on:{mouseenter:t.onMouseenter,mouseleave:t.onMouseleave,wheel:t.onWheel,touchstart:t.onTouchStart,touchmove:t.onTouchMove,touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}},[e("div",{ref:"listBody",staticClass:"seamless-list__body",class:{"is-horizontal":t.isHorizontal},style:{transform:t.getScrollStyle()}},[t._t("default")],2),t.canScroll?e("div",{staticClass:"seamless-list__body",class:{"is-horizontal":t.isHorizontal},style:{transform:t.getScrollStyle()}},[t._t("default")],2):t._e()])},o=[],r={name:"VueSeamlessScroll",props:{direction:{type:String,default:"top"},steep:{type:Number,default:.5},roller:{type:Boolean,default:!0},distance:{type:Number,default:20},data:Array},data(){return{listWidth:0,listHeight:0,bodyWidth:0,bodyHeight:0,canScroll:!1,isStop:!1,scrollDistance:0,animationFrame:null,touchStartX:0,touchStartY:0,touchStartDistance:0}},computed:{isHorizontal(){return"left"===this.direction||"right"===this.direction}},watch:{data:{handler(){this.$nextTick((()=>{this.initData()}))},deep:!0}},mounted(){this.$nextTick((()=>{this.initData()}))},destroyed(){this.stop()},methods:{initData(){this.stop(),this.$nextTick((()=>{this.listWidth=this.$refs.listBody?this.$refs.listBody.clientWidth:0,this.listHeight=this.$refs.listBody?this.$refs.listBody.clientHeight:0,this.bodyWidth=this.$refs.scrollBody?this.$refs.scrollBody.clientWidth:0,this.bodyHeight=this.$refs.scrollBody?this.$refs.scrollBody.clientHeight:0,this.scrollDistance=0,this.start()}))},start(){this.isStop=!1,this.isHorizontal?this.getCanScroll(this.listWidth,this.bodyWidth):this.getCanScroll(this.listHeight,this.bodyHeight),this.canScroll&&this.run()},run(){let t=this;this.clearAnimation(),0!=this.steep?this.animationFrame=window.requestAnimationFrame((()=>{t.setScrollDistance(),t.isStop||("top"===t.direction||"left"===t.direction?t.scrollDistance-=t.steep:"bottom"!==t.direction&&"right"!==t.direction||(t.scrollDistance+=t.steep),t.run())})):this.setScrollDistance()},stop(){this.isStop=!0,this.clearAnimation()},getCanScroll(t,e){this.canScroll=t&&e&&t>e},setScrollDistance(){this.isHorizontal?this.getScrollDistance(this.listWidth,this.bodyWidth):this.getScrollDistance(this.listHeight,this.bodyHeight)},getScrollDistance(t,e){let i=Math.abs(this.scrollDistance);if(this.scrollDistance<0){let n=2*t-e;i>n&&(this.scrollDistance=-(t-e))}else this.scrollDistance=-t},getScrollStyle(){let t="";return t=this.isHorizontal?`translate(${this.scrollDistance}px, 0)`:`translate(0, ${this.scrollDistance}px)`,t},clearAnimation(){this.animationFrame&&(cancelAnimationFrame(this.animationFrame),this.animationFrame=null)},onMouseenter(){this.stop()},onMouseleave(){this.start()},onWheel(t){if(t.preventDefault(),!this.canScroll||!this.roller)return!1;let e=t.deltaY;e>0?this.scrollDistance-=this.distance:this.scrollDistance+=this.distance,this.run()},onTouchStart(t){this.stop();let e=t.touches[0];e&&(this.touchStartX=e.clientX,this.touchStartY=e.clientY,this.touchStartDistance=this.scrollDistance)},onTouchMove(t){if(t.preventDefault(),!this.canScroll)return!1;let e=t.touches[0];if(!e)return!1;this.isHorizontal?(this.scrollDistance=this.touchStartDistance+e.clientX-this.touchStartX,this.scrollDistance=Math.max(-(this.listWidth-this.bodyWidth),Math.min(0,this.scrollDistance))):(this.scrollDistance=this.touchStartDistance+e.clientY-this.touchStartY,this.scrollDistance=Math.max(-(this.listHeight-this.bodyHeight),Math.min(0,this.scrollDistance)))},onTouchEnd(){this.start()}}},a=r;i(67);function l(t,e,i,n,s,o,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),o&&(c._scopeId="data-v-"+o),r?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=l):s&&(l=a?function(){s.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:s),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}var c=l(a,s,o,!1,null,"44bde8d8",null),d=c.exports;d.install=function(t){t.component(d.name,d)};var h=d;const u=[h],f=function(t){u.forEach((e=>{t.component(e.name,e)}))};"undefined"!==typeof window&&window.Vue&&f(window.Vue);var p={install:f,VueSeamlessScroll:h},m=p}(),n}()}));
|
|
2
|
-
//# sourceMappingURL=vue-seamless-scroll.umd.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vue-seamless-scroll.umd.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,kBAAZC,SAA0C,kBAAXC,OACxCA,OAAOD,QAAUD,IACQ,oBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,kBAAZC,QACdA,QAAQ,uBAAyBD,IAEjCD,EAAK,uBAAyBC,GAC/B,EATD,CASoB,qBAATK,KAAuBA,KAAOC,MAAO,WAChD,O,iGCPIC,EAA0B,IAA4B,KAE1DA,EAAwBC,KAAK,CAACN,EAAOO,GAAI,gOAAiO,KAE1Q,c,+BCDAP,EAAOD,QAAU,SAAUS,GACzB,IAAIC,EAAO,GA4EX,OAzEAA,EAAKC,SAAW,WACd,OAAON,KAAKO,KAAI,SAAUC,GACxB,IAAIC,EAAU,GACVC,EAA+B,qBAAZF,EAAK,GAoB5B,OAnBIA,EAAK,KACPC,GAAW,cAAcE,OAAOH,EAAK,GAAI,QAEvCA,EAAK,KACPC,GAAW,UAAUE,OAAOH,EAAK,GAAI,OAEnCE,IACFD,GAAW,SAASE,OAAOH,EAAK,GAAGI,OAAS,EAAI,IAAID,OAAOH,EAAK,IAAM,GAAI,OAE5EC,GAAWL,EAAuBI,GAC9BE,IACFD,GAAW,KAETD,EAAK,KACPC,GAAW,KAETD,EAAK,KACPC,GAAW,KAENA,CACT,IAAGI,KAAK,GACV,EAGAR,EAAKS,EAAI,SAAWC,EAASC,EAAOC,EAAQC,EAAUC,GAC7B,kBAAZJ,IACTA,EAAU,CAAC,CAAC,KA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AAesF,EAAiB,QCjBhCC,EAAkBC,QAAU,SAAUC,GAClCA,EAAIH,UAAUC,EAAkBtF,KAAMsF,EAC1C,EAEA,QCJA,MAAMG,EAAa,CAACH,GAEdC,EAAU,SAAUC,GACtBC,EAAWC,SAAQC,IACfH,EAAIH,UAAUM,EAAK3F,KAAM2F,EAAK,GAEtC,EAEsB,qBAAXrH,QAA0BA,OAAOkH,KACxCD,EAAQjH,OAAOkH,KAGnB,OACID,UACAD,kBAAiBA,GCdrB,G","sources":["webpack://vue-seamless-scroll/webpack/universalModuleDefinition","webpack://vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue?ae61","webpack://vue-seamless-scroll/./node_modules/css-loader/dist/runtime/api.js","webpack://vue-seamless-scroll/./node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue?203f","webpack://vue-seamless-scroll/./node_modules/vue-style-loader/lib/listToStyles.js","webpack://vue-seamless-scroll/./node_modules/vue-style-loader/lib/addStylesClient.js","webpack://vue-seamless-scroll/webpack/bootstrap","webpack://vue-seamless-scroll/webpack/runtime/compat get default export","webpack://vue-seamless-scroll/webpack/runtime/define property getters","webpack://vue-seamless-scroll/webpack/runtime/hasOwnProperty shorthand","webpack://vue-seamless-scroll/webpack/runtime/make namespace object","webpack://vue-seamless-scroll/webpack/runtime/publicPath","webpack://vue-seamless-scroll/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue","webpack://vue-seamless-scroll/packages/vue-seamless-scroll/index.vue","webpack://vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue?a5d6","webpack://vue-seamless-scroll/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://vue-seamless-scroll/./packages/vue-seamless-scroll/index.vue?9166","webpack://vue-seamless-scroll/./packages/vue-seamless-scroll/index.js","webpack://vue-seamless-scroll/./packages/index.js","webpack://vue-seamless-scroll/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.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([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vue-seamless-scroll\"] = factory();\n\telse\n\t\troot[\"vue-seamless-scroll\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn ","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".seamless-list[data-v-44bde8d8]{touch-action:none}.seamless-list[data-v-44bde8d8],.seamless-list__body[data-v-44bde8d8]{overflow:hidden}.seamless-list__body.is-horizontal[data-v-44bde8d8]{display:inline-block;font-size:0}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-96.use[1]!../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-96.use[2]!../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-96.use[3]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=44bde8d8&prod&scoped=true&lang=css\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"047d3759\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nexport default function listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n","/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\nimport listToStyles from './listToStyles'\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array<StyleObjectPart>\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n// tags it will allow on a page\nvar isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())\n\nexport default function addStylesClient (parentId, list, _isProduction, _options) {\n isProduction = _isProduction\n\n options = _options || {}\n\n var styles = listToStyles(parentId, list)\n addStylesToDom(styles)\n\n return function update (newList) {\n var mayRemove = []\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n domStyle.refs--\n mayRemove.push(domStyle)\n }\n if (newList) {\n styles = listToStyles(parentId, newList)\n addStylesToDom(styles)\n } else {\n styles = []\n }\n for (var i = 0; i < mayRemove.length; i++) {\n var domStyle = mayRemove[i]\n if (domStyle.refs === 0) {\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j]()\n }\n delete stylesInDom[domStyle.id]\n }\n }\n }\n}\n\nfunction addStylesToDom (styles /* Array<StyleObject> */) {\n for (var i = 0; i < styles.length; i++) {\n var item = styles[i]\n var domStyle = stylesInDom[item.id]\n if (domStyle) {\n domStyle.refs++\n for (var j = 0; j < domStyle.parts.length; j++) {\n domStyle.parts[j](item.parts[j])\n }\n for (; j < item.parts.length; j++) {\n domStyle.parts.push(addStyle(item.parts[j]))\n }\n if (domStyle.parts.length > item.parts.length) {\n domStyle.parts.length = item.parts.length\n }\n } else {\n var parts = []\n for (var j = 0; j < item.parts.length; j++) {\n parts.push(addStyle(item.parts[j]))\n }\n stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }\n }\n }\n}\n\nfunction createStyleElement () {\n var styleElement = document.createElement('style')\n styleElement.type = 'text/css'\n head.appendChild(styleElement)\n return styleElement\n}\n\nfunction addStyle (obj /* StyleObjectPart */) {\n var update, remove\n var styleElement = document.querySelector('style[' + ssrIdKey + '~=\"' + obj.id + '\"]')\n\n if (styleElement) {\n if (isProduction) {\n // has SSR styles and in production mode.\n // simply do nothing.\n return noop\n } else {\n // has SSR styles but in dev mode.\n // for some reason Chrome can't handle source map in server-rendered\n // style tags - source maps in <style> only works if the style tag is\n // created and inserted dynamically. So we remove the server rendered\n // styles and inject new ones.\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n if (isOldIE) {\n // use singleton mode for IE9.\n var styleIndex = singletonCounter++\n styleElement = singletonElement || (singletonElement = createStyleElement())\n update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)\n remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)\n } else {\n // use multi-style-tag mode in all other cases\n styleElement = createStyleElement()\n update = applyToTag.bind(null, styleElement)\n remove = function () {\n styleElement.parentNode.removeChild(styleElement)\n }\n }\n\n update(obj)\n\n return function updateStyle (newObj /* StyleObjectPart */) {\n if (newObj) {\n if (newObj.css === obj.css &&\n newObj.media === obj.media &&\n newObj.sourceMap === obj.sourceMap) {\n return\n }\n update(obj = newObj)\n } else {\n remove()\n }\n }\n}\n\nvar replaceText = (function () {\n var textStore = []\n\n return function (index, replacement) {\n textStore[index] = replacement\n return textStore.filter(Boolean).join('\\n')\n }\n})()\n\nfunction applyToSingletonTag (styleElement, index, remove, obj) {\n var css = remove ? '' : obj.css\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = replaceText(index, css)\n } else {\n var cssNode = document.createTextNode(css)\n var childNodes = styleElement.childNodes\n if (childNodes[index]) styleElement.removeChild(childNodes[index])\n if (childNodes.length) {\n styleElement.insertBefore(cssNode, childNodes[index])\n } else {\n styleElement.appendChild(cssNode)\n }\n }\n}\n\nfunction applyToTag (styleElement, obj) {\n var css = obj.css\n var media = obj.media\n var sourceMap = obj.sourceMap\n\n if (media) {\n styleElement.setAttribute('media', media)\n }\n if (options.ssrId) {\n styleElement.setAttribute(ssrIdKey, obj.id)\n }\n\n if (sourceMap) {\n // https://developer.chrome.com/devtools/docs/javascript-debugging\n // this makes source maps inside style tags work properly in Chrome\n css += '\\n/*# sourceURL=' + sourceMap.sources[0] + ' */'\n // http://stackoverflow.com/a/26603875\n css += '\\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'\n }\n\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild)\n }\n styleElement.appendChild(document.createTextNode(css))\n }\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:\"scrollBody\",staticClass:\"seamless-list\",on:{\"mouseenter\":_vm.onMouseenter,\"mouseleave\":_vm.onMouseleave,\"wheel\":_vm.onWheel,\"touchstart\":_vm.onTouchStart,\"touchmove\":_vm.onTouchMove,\"touchend\":_vm.onTouchEnd,\"touchcancel\":_vm.onTouchEnd}},[_c('div',{ref:\"listBody\",staticClass:\"seamless-list__body\",class:{ 'is-horizontal': _vm.isHorizontal },style:({ transform: _vm.getScrollStyle() })},[_vm._t(\"default\")],2),(_vm.canScroll)?_c('div',{staticClass:\"seamless-list__body\",class:{ 'is-horizontal': _vm.isHorizontal },style:({ transform: _vm.getScrollStyle() })},[_vm._t(\"default\")],2):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"seamless-list\" ref=\"scrollBody\" @mouseenter=\"onMouseenter\" @mouseleave=\"onMouseleave\" @wheel=\"onWheel\"\n @touchstart=\"onTouchStart\" @touchmove=\"onTouchMove\" @touchend=\"onTouchEnd\" @touchcancel=\"onTouchEnd\">\n <div class=\"seamless-list__body\" :class=\"{ 'is-horizontal': isHorizontal }\" ref=\"listBody\"\n :style=\"{ transform: getScrollStyle() }\">\n <slot></slot>\n </div>\n <div class=\"seamless-list__body\" :class=\"{ 'is-horizontal': isHorizontal }\" v-if=\"canScroll\"\n :style=\"{ transform: getScrollStyle() }\">\n <slot></slot>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'VueSeamlessScroll',\n props: {\n // 滚动方向\n direction: {\n type: String,\n default: 'top'\n },\n // 滚动速度\n steep: {\n type: Number,\n default: 0.5\n },\n // 是否可以滑轮滚动\n roller: {\n type: Boolean,\n default: true\n },\n // 滑轮滚动的距离\n distance: {\n type: Number,\n default: 20\n },\n data: Array\n },\n data() {\n return {\n listWidth: 0,\n listHeight: 0,\n bodyWidth: 0,\n bodyHeight: 0,\n canScroll: false,\n isStop: false,\n scrollDistance: 0,\n animationFrame: null,\n touchStartX: 0,\n touchStartY: 0,\n touchStartDistance: 0\n }\n },\n computed: {\n isHorizontal() {\n return this.direction === 'left' || this.direction === 'right'\n }\n },\n watch: {\n data: {\n handler() {\n this.$nextTick(() => {\n this.initData()\n })\n },\n deep: true\n }\n },\n mounted() {\n this.$nextTick(() => {\n this.initData()\n })\n },\n destroyed() {\n this.stop()\n },\n methods: {\n initData() {\n this.stop()\n this.$nextTick(() => {\n this.listWidth = this.$refs.listBody ? this.$refs.listBody.clientWidth : 0\n this.listHeight = this.$refs.listBody ? this.$refs.listBody.clientHeight : 0\n this.bodyWidth = this.$refs.scrollBody ? this.$refs.scrollBody.clientWidth : 0\n this.bodyHeight = this.$refs.scrollBody ? this.$refs.scrollBody.clientHeight : 0\n this.scrollDistance = 0\n this.start()\n })\n },\n\n start() {\n this.isStop = false\n if (this.isHorizontal) {\n this.getCanScroll(this.listWidth, this.bodyWidth)\n } else {\n this.getCanScroll(this.listHeight, this.bodyHeight)\n }\n if (this.canScroll) {\n this.run()\n }\n },\n\n run() {\n let that = this\n this.clearAnimation()\n if (this.steep == 0) {\n this.setScrollDistance()\n return\n }\n this.animationFrame = window.requestAnimationFrame(() => {\n that.setScrollDistance()\n if (!that.isStop) {\n if (that.direction === 'top' || that.direction === 'left') {\n that.scrollDistance -= that.steep\n } else if (that.direction === 'bottom' || that.direction === 'right') {\n that.scrollDistance += that.steep\n }\n that.run()\n }\n })\n },\n\n stop() {\n this.isStop = true\n this.clearAnimation()\n },\n\n getCanScroll(listSize, bodySize) {\n this.canScroll = listSize && bodySize && listSize > bodySize\n },\n\n setScrollDistance() {\n if (this.isHorizontal) {\n this.getScrollDistance(this.listWidth, this.bodyWidth)\n } else {\n this.getScrollDistance(this.listHeight, this.bodyHeight)\n }\n },\n\n getScrollDistance(listSize, bodySize) {\n let scrollDistance = Math.abs(this.scrollDistance)\n if (this.scrollDistance < 0) {\n let size = 2 * listSize - bodySize\n if (scrollDistance > size) {\n this.scrollDistance = -(listSize - bodySize)\n }\n } else {\n this.scrollDistance = -listSize\n }\n },\n\n getScrollStyle() {\n let style = ''\n if (!this.isHorizontal) {\n style = `translate(0, ${this.scrollDistance}px)`\n } else {\n style = `translate(${this.scrollDistance}px, 0)`\n }\n return style\n },\n\n clearAnimation() {\n if (this.animationFrame) {\n cancelAnimationFrame(this.animationFrame)\n this.animationFrame = null\n }\n },\n\n onMouseenter() {\n this.stop()\n },\n\n onMouseleave() {\n this.start()\n },\n\n onWheel(e) {\n e.preventDefault()\n if (!this.canScroll || !this.roller) {\n return false\n }\n let dis = e.deltaY\n if (dis > 0) {\n this.scrollDistance -= this.distance\n } else {\n this.scrollDistance += this.distance\n }\n this.run()\n },\n\n onTouchStart(e) {\n this.stop()\n let touch = e.touches[0]\n if (!touch) {\n return\n }\n this.touchStartX = touch.clientX\n this.touchStartY = touch.clientY\n this.touchStartDistance = this.scrollDistance\n },\n\n onTouchMove(e) {\n e.preventDefault()\n if (!this.canScroll) {\n return false\n }\n let touch = e.touches[0]\n if (!touch) {\n return false\n }\n if (this.isHorizontal) {\n this.scrollDistance = this.touchStartDistance + touch.clientX - this.touchStartX\n this.scrollDistance = Math.max(-(this.listWidth - this.bodyWidth), Math.min(0, this.scrollDistance))\n } else {\n this.scrollDistance = this.touchStartDistance + touch.clientY - this.touchStartY\n this.scrollDistance = Math.max(-(this.listHeight - this.bodyHeight), Math.min(0, this.scrollDistance))\n }\n },\n\n onTouchEnd() {\n this.start()\n }\n }\n}\n</script>\n\n<style scoped>\n.seamless-list {\n overflow: hidden;\n touch-action: none;\n}\n\n.seamless-list__body {\n overflow: hidden;\n}\n\n.seamless-list__body.is-horizontal {\n display: inline-block;\n font-size: 0;\n}\n</style>\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-124.use[1]!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-124.use[1]!../../node_modules/babel-loader/lib/index.js!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"","/* 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","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=44bde8d8&scoped=true\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=44bde8d8&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"44bde8d8\",\n null\n \n)\n\nexport default component.exports","import VueSeamlessScroll from './index.vue'\n\nVueSeamlessScroll.install = function (Vue) {\n Vue.component(VueSeamlessScroll.name, VueSeamlessScroll)\n}\n\nexport default VueSeamlessScroll\n","import VueSeamlessScroll from './vue-seamless-scroll'\n\nconst components = [VueSeamlessScroll]\n\nconst install = function (Vue) {\n components.forEach(comp => {\n Vue.component(comp.name, comp)\n })\n}\n\nif (typeof window !== 'undefined' && window.Vue) {\n install(window.Vue)\n}\n\nexport default {\n install,\n VueSeamlessScroll\n}\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["root","factory","exports","module","define","amd","self","this","___CSS_LOADER_EXPORT___","push","id","cssWithMappingToString","list","toString","map","item","content","needLayer","concat","length","join","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","__esModule","default","locals","add","listToStyles","parentId","styles","newStyles","css","sourceMap","part","parts","hasDocument","document","DEBUG","Error","stylesInDom","head","getElementsByTagName","singletonElement","singletonCounter","isProduction","noop","options","ssrIdKey","isOldIE","navigator","test","userAgent","toLowerCase","addStylesClient","_isProduction","_options","addStylesToDom","newList","mayRemove","domStyle","refs","j","addStyle","createStyleElement","styleElement","createElement","type","appendChild","obj","update","remove","querySelector","parentNode","removeChild","styleIndex","applyToSingletonTag","bind","applyToTag","newObj","replaceText","textStore","index","replacement","filter","Boolean","styleSheet","cssText","cssNode","createTextNode","childNodes","insertBefore","setAttribute","ssrId","sources","btoa","unescape","encodeURIComponent","JSON","stringify","firstChild","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","d","a","definition","key","o","Object","defineProperty","enumerable","get","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","p","window","currentScript","src","match","render","_vm","_c","_self","ref","staticClass","on","onMouseenter","onMouseleave","onWheel","onTouchStart","onTouchMove","onTouchEnd","class","isHorizontal","style","transform","getScrollStyle","_t","canScroll","_e","staticRenderFns","name","props","direction","String","steep","Number","roller","distance","data","Array","listWidth","listHeight","bodyWidth","bodyHeight","isStop","scrollDistance","animationFrame","touchStartX","touchStartY","touchStartDistance","computed","watch","handler","$nextTick","initData","deep","mounted","destroyed","stop","methods","$refs","listBody","clientWidth","clientHeight","scrollBody","start","getCanScroll","run","that","clearAnimation","requestAnimationFrame","setScrollDistance","listSize","bodySize","getScrollDistance","Math","abs","size","cancelAnimationFrame","e","preventDefault","dis","deltaY","touch","touches","clientX","clientY","max","min","normalizeComponent","scriptExports","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","component","VueSeamlessScroll","install","Vue","components","forEach","comp"],"sourceRoot":""}
|