├── .gitignore ├── LICENSE ├── README.md ├── README_US.md ├── babel.config.js ├── dist ├── VueActiveSwiper.common.js ├── VueActiveSwiper.css ├── VueActiveSwiper.umd.js ├── VueActiveSwiper.umd.min.js └── demo.html ├── example ├── basic-slot.vue └── basic-urlList.vue ├── package-lock.json ├── package.json ├── public ├── favicon.ico ├── index.html └── swiper-1.gif └── src ├── index.js ├── swiper-item.vue └── swiper.vue /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | 4 | # local env files 5 | .env.local 6 | .env.*.local 7 | 8 | # Log files 9 | npm-debug.log* 10 | yarn-debug.log* 11 | yarn-error.log* 12 | 13 | # Editor directories and files 14 | .idea 15 | .vscode 16 | *.suo 17 | *.ntvs* 18 | *.njsproj 19 | *.sln 20 | *.sw* 21 | *.map 22 | babel.config.js 23 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 KQ 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vue-active-swiper 2 | 3 | ![NPM](https://nodei.co/npm/vue-active-swiper.png?downloads=true&downloadRank=true&stars=true) 4 | 5 | ![img](https://img.shields.io/npm/v/vue-active-swiper.svg) ![img](https://img.shields.io/bundlephobia/minzip/vue-active-swiper.svg) ![img](https://img.shields.io/npm/dt/vue-active-swiper.svg) ![img](https://img.shields.io/github/license/accforgit/vue-active-swiper.svg) 6 | 7 | `vue-active-swiper` 是一个面向移动端、无依赖、轻量级的 `vue`轮播组件 8 | 9 | ![img](https://raw.githubusercontent.com/accforgit/vue-active-swiper/master/public/swiper-1.gif) 10 | 11 | [English](https://github.com/accforgit/vue-active-swiper/blob/master/README_US.md) | 简体中文 12 | 13 | ## 示例 14 | 15 | - [Basic Demo](https://accforgit.github.io/vue-active-swiper/basic.html) 16 | 17 | - [vue-active-preview](https://github.com/accforgit/vue-active-preview) 与 [vue-active-swiper](https://github.com/accforgit/vue-active-swiper)结合使用的 [Live Demo](https://accforgit.github.io/vue-active-preview/swiper_preview.html) 18 | 19 | ## 安装 20 | 21 | ``` 22 | npm install vue-active-swiper --save 23 | ``` 24 | 25 | ## 导入 26 | 27 | ### 全局导入 28 | 29 | ```js 30 | // 样式引用 31 | import 'vue-active-swiper/dist/VueActiveSwiper.css' 32 | 33 | import Vue from 'vue' 34 | import VueActiveSwiper from 'vue-active-swiper' 35 | 36 | Vue.use(VueActiveSwiper) 37 | ``` 38 | 39 | ### 局部导入 40 | 41 | ```js 42 | // 样式引用 43 | import 'vue-active-swiper/dist/VueActiveSwiper.css' 44 | 45 | // in ES6 modules 46 | import { Swiper, SwiperItem } from 'vue-active-swiper' 47 | 48 | // in CommonJS 49 | const { Swiper, SwiperItem } = require('vue-active-swiper') 50 | 51 | export default { 52 | components: { 53 | Swiper, 54 | SwiperItem 55 | } 56 | } 57 | ``` 58 | 59 | ### script 脚本形式导入 60 | 61 | ```html 62 | 63 | 64 | ``` 65 | 66 | ```js 67 | const Swiper = VueActiveSwiper.Swiper 68 | const SwiperItem = VueActiveSwiper.SwiperItem 69 | 70 | new Vue({ 71 | el: '#app', 72 | components: { 73 | Swiper, 74 | SwiperItem 75 | } 76 | }) 77 | ``` 78 | 79 | ## 用法 80 | 81 | 在 `Vue`组件实例中使用: 82 | ```html 83 | 84 | 1 85 | 2 86 | 3 87 | 88 | ``` 89 | `or` 90 | ```html 91 | 96 | ``` 97 | 98 | ## Options 99 | 100 | ### Props 101 | 102 | |参数|类型|描述|默认值|是否必须| 103 | |----|---|----|----|---| 104 | |urlList|Array|传入的图片数组
如果指定了此值,则 `Swiper`组件传入的 `SwiperItem`子组件将不起作用,
`urlList` 与 `SwiperItem`二选一,如果二者同时存在,优先以 `urlList`为准|null|否| 105 | |backgroundSize|String|图片以何种缩放的形式铺在滑动容器框(`Swiper`)内,取值及效果都与 `CSS background-size`一致
只有当指定了 urlList 时才有效|cover|否| 106 | |clientW|Number|滑动容器框(`Swiper`)的宽度|`document.documentElement.clientWidth`|否| 107 | |clientH|Number|滑动容器框(`Swiper`)的宽度|200|否| 108 | |showCounter|Boolean|是否需要默认的计数器|false|否| 109 | |counterStyle|Object|自定义默认计数器的样式
只有当 `showCounter`为 `true`时才有效|null|否| 110 | |startIndex|Number|起始渲染显示的SwiperItem index|0|否| 111 | |criticalValue|Number|临界点的比例值,当超过此值代表的临界点,则将自动滑动到下一张图片|1/3|否| 112 | |autoPlayDelay|Number|如果指定了此参数,并且值 `>= 0`,则将会将此值当做 自动轮播`delay`的时间(单位为 `ms`)进行自动轮播;不指定则不自动轮播
如果想要指定此值,一般建议设置为 `3000`|null|否| 113 | |duration|Number|自动滚动到稳定位置所需的时间,单位是秒(ms)|350|否| 114 | |noDragWhenSingle|Boolean|如果只有一个 swipeItem,是否禁止拖动|true|否| 115 | 116 | ### Events 117 | 118 | |事件名|描述|参数| 119 | |---|---|---| 120 | |click|整个组件的点击事件(可用于控制组件的显示/隐藏)|activeIndex| 121 | |change|每次滚动结束后的回调|activeIndex| 122 | 123 | ## 额外的能力 124 | 125 | ### goto 126 | 127 | `Swiper`组件提供了一个 `goto`方法,允许使用者自行指定滑动到哪一个 `SwiperItem`的位置: 128 | 129 | ```js 130 | this.$refs.mySwiper.goto(2) 131 | ``` 132 | `goto`方法接收一个 `number`类型的参数(`index`),表示将要滑动到的 `SwiperItem`的位置 133 | 参数 `index`从 `0` 开始 134 | 135 | 具体参见示例 [example - basic-slot](https://github.com/accforgit/vue-active-swiper/blob/master/example/basic-slot.vue) 136 | 137 | ### 具名 slot 138 | 139 | `Swiper`组件还可以接收一个 `name`为 `extra`的具名 `slot`,方便开发者更加自由地定制化组件: 140 | 141 | ```html 142 | 143 | 1 144 | 2 145 | 3 146 | 147 |

custom extra content

148 |
149 | ``` 150 | 151 | ## License 152 | 153 | MIT 154 | -------------------------------------------------------------------------------- /README_US.md: -------------------------------------------------------------------------------- 1 | # vue-active-swiper 2 | 3 | ![NPM](https://nodei.co/npm/vue-active-swiper.png?downloads=true&downloadRank=true&stars=true) 4 | 5 | ![img](https://img.shields.io/npm/v/vue-active-swiper.svg) ![img](https://img.shields.io/bundlephobia/minzip/vue-active-swiper.svg) ![img](https://img.shields.io/npm/dt/vue-active-swiper.svg) ![img](https://img.shields.io/github/license/accforgit/vue-active-swiper.svg) 6 | 7 | `vue-active-swiper` is a Mobile-oriented、No dependencies、Lightweight Swiper component for Vue 8 | 9 | ![img](https://raw.githubusercontent.com/accforgit/vue-active-swiper/master/public/swiper-1.gif) 10 | 11 | [简体中文](https://github.com/accforgit/vue-active-swiper/blob/master/README.md) | English 12 | 13 | ## Example 14 | 15 | - [Basic Demo](https://accforgit.github.io/vue-active-swiper/basic.html) 16 | 17 | - [vue-active-preview](https://github.com/accforgit/vue-active-preview) && [vue-active-swiper](https://github.com/accforgit/vue-active-swiper) [Live Demo](https://accforgit.github.io/vue-active-preview/swiper_preview.html) 18 | 19 | ## Install 20 | 21 | ``` 22 | npm install vue-active-swiper --save 23 | ``` 24 | 25 | ## Import 26 | 27 | ### import with global 28 | 29 | ```js 30 | // require styles 31 | import 'vue-active-swiper/dist/VueActiveSwiper.css' 32 | 33 | import Vue from 'vue' 34 | import VueActiveSwiper from 'vue-active-swiper' 35 | 36 | Vue.use(VueActiveSwiper) 37 | ``` 38 | 39 | ### import with component 40 | 41 | ```js 42 | // require styles 43 | import 'vue-active-swiper/dist/VueActiveSwiper.css' 44 | 45 | // in ES6 modules 46 | import { Swiper, SwiperItem } from 'vue-active-swiper' 47 | 48 | // in CommonJS 49 | const { Swiper, SwiperItem } = require('vue-active-swiper') 50 | 51 | export default { 52 | components: { 53 | Swiper, 54 | SwiperItem 55 | } 56 | } 57 | ``` 58 | 59 | ### import with script 60 | 61 | ```html 62 | 63 | 64 | ``` 65 | 66 | ```js 67 | const Swiper = VueActiveSwiper.Swiper 68 | const SwiperItem = VueActiveSwiper.SwiperItem 69 | 70 | new Vue({ 71 | el: '#app', 72 | components: { 73 | Swiper, 74 | SwiperItem 75 | } 76 | }) 77 | ``` 78 | 79 | ## Usage 80 | 81 | Work on a Vue instance: 82 | ```html 83 | 84 | 1 85 | 2 86 | 3 87 | 88 | ``` 89 | `or` 90 | ```html 91 | 96 | ``` 97 | 98 | ## Options 99 | 100 | ### Props 101 | 102 | |Option|Type|Description|Default|necessary| 103 | |----|---|----|----|---| 104 | |urlList|Array|image array
If specified, subcomponents(`SwiperItem`) passed in by components will not work,
Either `urlList` or `SwiperItem`,If both exist at the same time,`urlList` shall prevail|null|false| 105 | |backgroundSize|String|`Specifies how the image is scaled in the sliding-container-box`(`Swiper`),Value and Effect are the same as `CSS background-size`
Valid only when urlList is specified|cover|false| 106 | |clientW|Number|Width of the sliding-container-box (`Swiper`)|`document.documentElement.clientWidth`|false| 107 | |clientH|Number|Height of the sliding-container-box (`Swiper')|200|false| 108 | |showCounter|Boolean|if need a default counter|false|false| 109 | |counterStyle|Object|Customize the style of the default counter
Valid only when `showCounter` is `true`|null|false| 110 | |startIndex|Number|Start swipe item index|0|false| 111 | |criticalValue|Number|Proportional value of critical point
When it exceeds the critical point represented by this value, it will automatically slide to the next picture.|1/3|false| 112 | |autoPlayDelay|Number|If this parameter is specified and the value `>= 0`, the value will be taken as the time of automatic rotation `delay`(`ms`) for automatic rotation;Non-designated non-automatic rotation
If you want to specify this value, it is generally recommended to set it to `3000`|null|false| 113 | |duration|Number|The time(`ms`) required to automatically scroll to a stable position|350|false| 114 | |noDragWhenSingle|Boolean|If there is only one `swipeItem`, is dragging prohibited|true|false| 115 | 116 | ### Events 117 | 118 | |Event Name|Description|params| 119 | |---|---|---| 120 | |click|Click events for the component|activeIndex| 121 | |change|Callback after each scroll|activeIndex| 122 | 123 | ## Extra 124 | 125 | ### goto 126 | 127 | The `Swiper`component provides a method `goto`, which allows users to specify slide to which `Swiper Item`: 128 | 129 | ```js 130 | this.$refs.mySwiper.goto(2) 131 | ``` 132 | `goto` receives a `Number` parameter(`index`),eepresents sliding to `a Swiper Item` with `index` subscript 133 | `index` start at `0` 134 | 135 | see more [example - basic-slot](https://github.com/accforgit/vue-active-swiper/blob/master/example/basic-slot.vue) 136 | 137 | ### Named Slot 138 | 139 | `Swiper` can also receive a named slot - `extra`,make it easier for developers to customize components more freely: 140 | 141 | ```html 142 | 143 | 1 144 | 2 145 | 3 146 | 147 |

custom extra content

148 |
149 | ``` 150 | 151 | ## License 152 | 153 | MIT -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/app' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /dist/VueActiveSwiper.common.js: -------------------------------------------------------------------------------- 1 | module.exports = 2 | /******/ (function(modules) { // webpackBootstrap 3 | /******/ // The module cache 4 | /******/ var installedModules = {}; 5 | /******/ 6 | /******/ // The require function 7 | /******/ function __webpack_require__(moduleId) { 8 | /******/ 9 | /******/ // Check if module is in cache 10 | /******/ if(installedModules[moduleId]) { 11 | /******/ return installedModules[moduleId].exports; 12 | /******/ } 13 | /******/ // Create a new module (and put it into the cache) 14 | /******/ var module = installedModules[moduleId] = { 15 | /******/ i: moduleId, 16 | /******/ l: false, 17 | /******/ exports: {} 18 | /******/ }; 19 | /******/ 20 | /******/ // Execute the module function 21 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 22 | /******/ 23 | /******/ // Flag the module as loaded 24 | /******/ module.l = true; 25 | /******/ 26 | /******/ // Return the exports of the module 27 | /******/ return module.exports; 28 | /******/ } 29 | /******/ 30 | /******/ 31 | /******/ // expose the modules object (__webpack_modules__) 32 | /******/ __webpack_require__.m = modules; 33 | /******/ 34 | /******/ // expose the module cache 35 | /******/ __webpack_require__.c = installedModules; 36 | /******/ 37 | /******/ // define getter function for harmony exports 38 | /******/ __webpack_require__.d = function(exports, name, getter) { 39 | /******/ if(!__webpack_require__.o(exports, name)) { 40 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 41 | /******/ } 42 | /******/ }; 43 | /******/ 44 | /******/ // define __esModule on exports 45 | /******/ __webpack_require__.r = function(exports) { 46 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 47 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 48 | /******/ } 49 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 50 | /******/ }; 51 | /******/ 52 | /******/ // create a fake namespace object 53 | /******/ // mode & 1: value is a module id, require it 54 | /******/ // mode & 2: merge all properties of value into the ns 55 | /******/ // mode & 4: return value when already ns object 56 | /******/ // mode & 8|1: behave like require 57 | /******/ __webpack_require__.t = function(value, mode) { 58 | /******/ if(mode & 1) value = __webpack_require__(value); 59 | /******/ if(mode & 8) return value; 60 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 61 | /******/ var ns = Object.create(null); 62 | /******/ __webpack_require__.r(ns); 63 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 64 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 65 | /******/ return ns; 66 | /******/ }; 67 | /******/ 68 | /******/ // getDefaultExport function for compatibility with non-harmony modules 69 | /******/ __webpack_require__.n = function(module) { 70 | /******/ var getter = module && module.__esModule ? 71 | /******/ function getDefault() { return module['default']; } : 72 | /******/ function getModuleExports() { return module; }; 73 | /******/ __webpack_require__.d(getter, 'a', getter); 74 | /******/ return getter; 75 | /******/ }; 76 | /******/ 77 | /******/ // Object.prototype.hasOwnProperty.call 78 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 79 | /******/ 80 | /******/ // __webpack_public_path__ 81 | /******/ __webpack_require__.p = ""; 82 | /******/ 83 | /******/ 84 | /******/ // Load entry module and return exports 85 | /******/ return __webpack_require__(__webpack_require__.s = "fb15"); 86 | /******/ }) 87 | /************************************************************************/ 88 | /******/ ({ 89 | 90 | /***/ "0d58": 91 | /***/ (function(module, exports, __webpack_require__) { 92 | 93 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) 94 | var $keys = __webpack_require__("ce10"); 95 | var enumBugKeys = __webpack_require__("e11e"); 96 | 97 | module.exports = Object.keys || function keys(O) { 98 | return $keys(O, enumBugKeys); 99 | }; 100 | 101 | 102 | /***/ }), 103 | 104 | /***/ "11e9": 105 | /***/ (function(module, exports, __webpack_require__) { 106 | 107 | var pIE = __webpack_require__("52a7"); 108 | var createDesc = __webpack_require__("4630"); 109 | var toIObject = __webpack_require__("6821"); 110 | var toPrimitive = __webpack_require__("6a99"); 111 | var has = __webpack_require__("69a8"); 112 | var IE8_DOM_DEFINE = __webpack_require__("c69a"); 113 | var gOPD = Object.getOwnPropertyDescriptor; 114 | 115 | exports.f = __webpack_require__("9e1e") ? gOPD : function getOwnPropertyDescriptor(O, P) { 116 | O = toIObject(O); 117 | P = toPrimitive(P, true); 118 | if (IE8_DOM_DEFINE) try { 119 | return gOPD(O, P); 120 | } catch (e) { /* empty */ } 121 | if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 122 | }; 123 | 124 | 125 | /***/ }), 126 | 127 | /***/ "1495": 128 | /***/ (function(module, exports, __webpack_require__) { 129 | 130 | var dP = __webpack_require__("86cc"); 131 | var anObject = __webpack_require__("cb7c"); 132 | var getKeys = __webpack_require__("0d58"); 133 | 134 | module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) { 135 | anObject(O); 136 | var keys = getKeys(Properties); 137 | var length = keys.length; 138 | var i = 0; 139 | var P; 140 | while (length > i) dP.f(O, P = keys[i++], Properties[P]); 141 | return O; 142 | }; 143 | 144 | 145 | /***/ }), 146 | 147 | /***/ "230e": 148 | /***/ (function(module, exports, __webpack_require__) { 149 | 150 | var isObject = __webpack_require__("d3f4"); 151 | var document = __webpack_require__("7726").document; 152 | // typeof document.createElement is 'object' in old IE 153 | var is = isObject(document) && isObject(document.createElement); 154 | module.exports = function (it) { 155 | return is ? document.createElement(it) : {}; 156 | }; 157 | 158 | 159 | /***/ }), 160 | 161 | /***/ "2aba": 162 | /***/ (function(module, exports, __webpack_require__) { 163 | 164 | var global = __webpack_require__("7726"); 165 | var hide = __webpack_require__("32e9"); 166 | var has = __webpack_require__("69a8"); 167 | var SRC = __webpack_require__("ca5a")('src'); 168 | var TO_STRING = 'toString'; 169 | var $toString = Function[TO_STRING]; 170 | var TPL = ('' + $toString).split(TO_STRING); 171 | 172 | __webpack_require__("8378").inspectSource = function (it) { 173 | return $toString.call(it); 174 | }; 175 | 176 | (module.exports = function (O, key, val, safe) { 177 | var isFunction = typeof val == 'function'; 178 | if (isFunction) has(val, 'name') || hide(val, 'name', key); 179 | if (O[key] === val) return; 180 | if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); 181 | if (O === global) { 182 | O[key] = val; 183 | } else if (!safe) { 184 | delete O[key]; 185 | hide(O, key, val); 186 | } else if (O[key]) { 187 | O[key] = val; 188 | } else { 189 | hide(O, key, val); 190 | } 191 | // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative 192 | })(Function.prototype, TO_STRING, function toString() { 193 | return typeof this == 'function' && this[SRC] || $toString.call(this); 194 | }); 195 | 196 | 197 | /***/ }), 198 | 199 | /***/ "2aeb": 200 | /***/ (function(module, exports, __webpack_require__) { 201 | 202 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 203 | var anObject = __webpack_require__("cb7c"); 204 | var dPs = __webpack_require__("1495"); 205 | var enumBugKeys = __webpack_require__("e11e"); 206 | var IE_PROTO = __webpack_require__("613b")('IE_PROTO'); 207 | var Empty = function () { /* empty */ }; 208 | var PROTOTYPE = 'prototype'; 209 | 210 | // Create object with fake `null` prototype: use iframe Object with cleared prototype 211 | var createDict = function () { 212 | // Thrash, waste and sodomy: IE GC bug 213 | var iframe = __webpack_require__("230e")('iframe'); 214 | var i = enumBugKeys.length; 215 | var lt = '<'; 216 | var gt = '>'; 217 | var iframeDocument; 218 | iframe.style.display = 'none'; 219 | __webpack_require__("fab2").appendChild(iframe); 220 | iframe.src = 'javascript:'; // eslint-disable-line no-script-url 221 | // createDict = iframe.contentWindow.Object; 222 | // html.removeChild(iframe); 223 | iframeDocument = iframe.contentWindow.document; 224 | iframeDocument.open(); 225 | iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); 226 | iframeDocument.close(); 227 | createDict = iframeDocument.F; 228 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 229 | return createDict(); 230 | }; 231 | 232 | module.exports = Object.create || function create(O, Properties) { 233 | var result; 234 | if (O !== null) { 235 | Empty[PROTOTYPE] = anObject(O); 236 | result = new Empty(); 237 | Empty[PROTOTYPE] = null; 238 | // add "__proto__" for Object.getPrototypeOf polyfill 239 | result[IE_PROTO] = O; 240 | } else result = createDict(); 241 | return Properties === undefined ? result : dPs(result, Properties); 242 | }; 243 | 244 | 245 | /***/ }), 246 | 247 | /***/ "2d00": 248 | /***/ (function(module, exports) { 249 | 250 | module.exports = false; 251 | 252 | 253 | /***/ }), 254 | 255 | /***/ "2d95": 256 | /***/ (function(module, exports) { 257 | 258 | var toString = {}.toString; 259 | 260 | module.exports = function (it) { 261 | return toString.call(it).slice(8, -1); 262 | }; 263 | 264 | 265 | /***/ }), 266 | 267 | /***/ "327d": 268 | /***/ (function(module, exports, __webpack_require__) { 269 | 270 | // extracted by mini-css-extract-plugin 271 | 272 | /***/ }), 273 | 274 | /***/ "32e9": 275 | /***/ (function(module, exports, __webpack_require__) { 276 | 277 | var dP = __webpack_require__("86cc"); 278 | var createDesc = __webpack_require__("4630"); 279 | module.exports = __webpack_require__("9e1e") ? function (object, key, value) { 280 | return dP.f(object, key, createDesc(1, value)); 281 | } : function (object, key, value) { 282 | object[key] = value; 283 | return object; 284 | }; 285 | 286 | 287 | /***/ }), 288 | 289 | /***/ "4588": 290 | /***/ (function(module, exports) { 291 | 292 | // 7.1.4 ToInteger 293 | var ceil = Math.ceil; 294 | var floor = Math.floor; 295 | module.exports = function (it) { 296 | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 297 | }; 298 | 299 | 300 | /***/ }), 301 | 302 | /***/ "4630": 303 | /***/ (function(module, exports) { 304 | 305 | module.exports = function (bitmap, value) { 306 | return { 307 | enumerable: !(bitmap & 1), 308 | configurable: !(bitmap & 2), 309 | writable: !(bitmap & 4), 310 | value: value 311 | }; 312 | }; 313 | 314 | 315 | /***/ }), 316 | 317 | /***/ "52a7": 318 | /***/ (function(module, exports) { 319 | 320 | exports.f = {}.propertyIsEnumerable; 321 | 322 | 323 | /***/ }), 324 | 325 | /***/ "5537": 326 | /***/ (function(module, exports, __webpack_require__) { 327 | 328 | var core = __webpack_require__("8378"); 329 | var global = __webpack_require__("7726"); 330 | var SHARED = '__core-js_shared__'; 331 | var store = global[SHARED] || (global[SHARED] = {}); 332 | 333 | (module.exports = function (key, value) { 334 | return store[key] || (store[key] = value !== undefined ? value : {}); 335 | })('versions', []).push({ 336 | version: core.version, 337 | mode: __webpack_require__("2d00") ? 'pure' : 'global', 338 | copyright: '© 2018 Denis Pushkarev (zloirock.ru)' 339 | }); 340 | 341 | 342 | /***/ }), 343 | 344 | /***/ "5ca1": 345 | /***/ (function(module, exports, __webpack_require__) { 346 | 347 | var global = __webpack_require__("7726"); 348 | var core = __webpack_require__("8378"); 349 | var hide = __webpack_require__("32e9"); 350 | var redefine = __webpack_require__("2aba"); 351 | var ctx = __webpack_require__("9b43"); 352 | var PROTOTYPE = 'prototype'; 353 | 354 | var $export = function (type, name, source) { 355 | var IS_FORCED = type & $export.F; 356 | var IS_GLOBAL = type & $export.G; 357 | var IS_STATIC = type & $export.S; 358 | var IS_PROTO = type & $export.P; 359 | var IS_BIND = type & $export.B; 360 | var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; 361 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 362 | var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); 363 | var key, own, out, exp; 364 | if (IS_GLOBAL) source = name; 365 | for (key in source) { 366 | // contains in native 367 | own = !IS_FORCED && target && target[key] !== undefined; 368 | // export native or passed 369 | out = (own ? target : source)[key]; 370 | // bind timers to global for call from export context 371 | exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; 372 | // extend global 373 | if (target) redefine(target, key, out, type & $export.U); 374 | // export 375 | if (exports[key] != out) hide(exports, key, exp); 376 | if (IS_PROTO && expProto[key] != out) expProto[key] = out; 377 | } 378 | }; 379 | global.core = core; 380 | // type bitmap 381 | $export.F = 1; // forced 382 | $export.G = 2; // global 383 | $export.S = 4; // static 384 | $export.P = 8; // proto 385 | $export.B = 16; // bind 386 | $export.W = 32; // wrap 387 | $export.U = 64; // safe 388 | $export.R = 128; // real proto method for `library` 389 | module.exports = $export; 390 | 391 | 392 | /***/ }), 393 | 394 | /***/ "5dbc": 395 | /***/ (function(module, exports, __webpack_require__) { 396 | 397 | var isObject = __webpack_require__("d3f4"); 398 | var setPrototypeOf = __webpack_require__("8b97").set; 399 | module.exports = function (that, target, C) { 400 | var S = target.constructor; 401 | var P; 402 | if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { 403 | setPrototypeOf(that, P); 404 | } return that; 405 | }; 406 | 407 | 408 | /***/ }), 409 | 410 | /***/ "613b": 411 | /***/ (function(module, exports, __webpack_require__) { 412 | 413 | var shared = __webpack_require__("5537")('keys'); 414 | var uid = __webpack_require__("ca5a"); 415 | module.exports = function (key) { 416 | return shared[key] || (shared[key] = uid(key)); 417 | }; 418 | 419 | 420 | /***/ }), 421 | 422 | /***/ "626a": 423 | /***/ (function(module, exports, __webpack_require__) { 424 | 425 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 426 | var cof = __webpack_require__("2d95"); 427 | // eslint-disable-next-line no-prototype-builtins 428 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 429 | return cof(it) == 'String' ? it.split('') : Object(it); 430 | }; 431 | 432 | 433 | /***/ }), 434 | 435 | /***/ "6821": 436 | /***/ (function(module, exports, __webpack_require__) { 437 | 438 | // to indexed object, toObject with fallback for non-array-like ES3 strings 439 | var IObject = __webpack_require__("626a"); 440 | var defined = __webpack_require__("be13"); 441 | module.exports = function (it) { 442 | return IObject(defined(it)); 443 | }; 444 | 445 | 446 | /***/ }), 447 | 448 | /***/ "69a8": 449 | /***/ (function(module, exports) { 450 | 451 | var hasOwnProperty = {}.hasOwnProperty; 452 | module.exports = function (it, key) { 453 | return hasOwnProperty.call(it, key); 454 | }; 455 | 456 | 457 | /***/ }), 458 | 459 | /***/ "6a99": 460 | /***/ (function(module, exports, __webpack_require__) { 461 | 462 | // 7.1.1 ToPrimitive(input [, PreferredType]) 463 | var isObject = __webpack_require__("d3f4"); 464 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 465 | // and the second argument - flag - preferred type is a string 466 | module.exports = function (it, S) { 467 | if (!isObject(it)) return it; 468 | var fn, val; 469 | if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 470 | if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; 471 | if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 472 | throw TypeError("Can't convert object to primitive value"); 473 | }; 474 | 475 | 476 | /***/ }), 477 | 478 | /***/ "7726": 479 | /***/ (function(module, exports) { 480 | 481 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 482 | var global = module.exports = typeof window != 'undefined' && window.Math == Math 483 | ? window : typeof self != 'undefined' && self.Math == Math ? self 484 | // eslint-disable-next-line no-new-func 485 | : Function('return this')(); 486 | if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 487 | 488 | 489 | /***/ }), 490 | 491 | /***/ "77f1": 492 | /***/ (function(module, exports, __webpack_require__) { 493 | 494 | var toInteger = __webpack_require__("4588"); 495 | var max = Math.max; 496 | var min = Math.min; 497 | module.exports = function (index, length) { 498 | index = toInteger(index); 499 | return index < 0 ? max(index + length, 0) : min(index, length); 500 | }; 501 | 502 | 503 | /***/ }), 504 | 505 | /***/ "79e5": 506 | /***/ (function(module, exports) { 507 | 508 | module.exports = function (exec) { 509 | try { 510 | return !!exec(); 511 | } catch (e) { 512 | return true; 513 | } 514 | }; 515 | 516 | 517 | /***/ }), 518 | 519 | /***/ "7f7f": 520 | /***/ (function(module, exports, __webpack_require__) { 521 | 522 | var dP = __webpack_require__("86cc").f; 523 | var FProto = Function.prototype; 524 | var nameRE = /^\s*function ([^ (]*)/; 525 | var NAME = 'name'; 526 | 527 | // 19.2.4.2 name 528 | NAME in FProto || __webpack_require__("9e1e") && dP(FProto, NAME, { 529 | configurable: true, 530 | get: function () { 531 | try { 532 | return ('' + this).match(nameRE)[1]; 533 | } catch (e) { 534 | return ''; 535 | } 536 | } 537 | }); 538 | 539 | 540 | /***/ }), 541 | 542 | /***/ "8378": 543 | /***/ (function(module, exports) { 544 | 545 | var core = module.exports = { version: '2.6.1' }; 546 | if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 547 | 548 | 549 | /***/ }), 550 | 551 | /***/ "86cc": 552 | /***/ (function(module, exports, __webpack_require__) { 553 | 554 | var anObject = __webpack_require__("cb7c"); 555 | var IE8_DOM_DEFINE = __webpack_require__("c69a"); 556 | var toPrimitive = __webpack_require__("6a99"); 557 | var dP = Object.defineProperty; 558 | 559 | exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) { 560 | anObject(O); 561 | P = toPrimitive(P, true); 562 | anObject(Attributes); 563 | if (IE8_DOM_DEFINE) try { 564 | return dP(O, P, Attributes); 565 | } catch (e) { /* empty */ } 566 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 567 | if ('value' in Attributes) O[P] = Attributes.value; 568 | return O; 569 | }; 570 | 571 | 572 | /***/ }), 573 | 574 | /***/ "8b97": 575 | /***/ (function(module, exports, __webpack_require__) { 576 | 577 | // Works with __proto__ only. Old v8 can't work with null proto objects. 578 | /* eslint-disable no-proto */ 579 | var isObject = __webpack_require__("d3f4"); 580 | var anObject = __webpack_require__("cb7c"); 581 | var check = function (O, proto) { 582 | anObject(O); 583 | if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); 584 | }; 585 | module.exports = { 586 | set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line 587 | function (test, buggy, set) { 588 | try { 589 | set = __webpack_require__("9b43")(Function.call, __webpack_require__("11e9").f(Object.prototype, '__proto__').set, 2); 590 | set(test, []); 591 | buggy = !(test instanceof Array); 592 | } catch (e) { buggy = true; } 593 | return function setPrototypeOf(O, proto) { 594 | check(O, proto); 595 | if (buggy) O.__proto__ = proto; 596 | else set(O, proto); 597 | return O; 598 | }; 599 | }({}, false) : undefined), 600 | check: check 601 | }; 602 | 603 | 604 | /***/ }), 605 | 606 | /***/ "9093": 607 | /***/ (function(module, exports, __webpack_require__) { 608 | 609 | // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) 610 | var $keys = __webpack_require__("ce10"); 611 | var hiddenKeys = __webpack_require__("e11e").concat('length', 'prototype'); 612 | 613 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { 614 | return $keys(O, hiddenKeys); 615 | }; 616 | 617 | 618 | /***/ }), 619 | 620 | /***/ "9b2c": 621 | /***/ (function(module, exports, __webpack_require__) { 622 | 623 | // extracted by mini-css-extract-plugin 624 | 625 | /***/ }), 626 | 627 | /***/ "9b43": 628 | /***/ (function(module, exports, __webpack_require__) { 629 | 630 | // optional / simple context binding 631 | var aFunction = __webpack_require__("d8e8"); 632 | module.exports = function (fn, that, length) { 633 | aFunction(fn); 634 | if (that === undefined) return fn; 635 | switch (length) { 636 | case 1: return function (a) { 637 | return fn.call(that, a); 638 | }; 639 | case 2: return function (a, b) { 640 | return fn.call(that, a, b); 641 | }; 642 | case 3: return function (a, b, c) { 643 | return fn.call(that, a, b, c); 644 | }; 645 | } 646 | return function (/* ...args */) { 647 | return fn.apply(that, arguments); 648 | }; 649 | }; 650 | 651 | 652 | /***/ }), 653 | 654 | /***/ "9def": 655 | /***/ (function(module, exports, __webpack_require__) { 656 | 657 | // 7.1.15 ToLength 658 | var toInteger = __webpack_require__("4588"); 659 | var min = Math.min; 660 | module.exports = function (it) { 661 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 662 | }; 663 | 664 | 665 | /***/ }), 666 | 667 | /***/ "9e1e": 668 | /***/ (function(module, exports, __webpack_require__) { 669 | 670 | // Thank's IE8 for his funny defineProperty 671 | module.exports = !__webpack_require__("79e5")(function () { 672 | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 673 | }); 674 | 675 | 676 | /***/ }), 677 | 678 | /***/ "aa77": 679 | /***/ (function(module, exports, __webpack_require__) { 680 | 681 | var $export = __webpack_require__("5ca1"); 682 | var defined = __webpack_require__("be13"); 683 | var fails = __webpack_require__("79e5"); 684 | var spaces = __webpack_require__("fdef"); 685 | var space = '[' + spaces + ']'; 686 | var non = '\u200b\u0085'; 687 | var ltrim = RegExp('^' + space + space + '*'); 688 | var rtrim = RegExp(space + space + '*$'); 689 | 690 | var exporter = function (KEY, exec, ALIAS) { 691 | var exp = {}; 692 | var FORCE = fails(function () { 693 | return !!spaces[KEY]() || non[KEY]() != non; 694 | }); 695 | var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; 696 | if (ALIAS) exp[ALIAS] = fn; 697 | $export($export.P + $export.F * FORCE, 'String', exp); 698 | }; 699 | 700 | // 1 -> String#trimLeft 701 | // 2 -> String#trimRight 702 | // 3 -> String#trim 703 | var trim = exporter.trim = function (string, TYPE) { 704 | string = String(defined(string)); 705 | if (TYPE & 1) string = string.replace(ltrim, ''); 706 | if (TYPE & 2) string = string.replace(rtrim, ''); 707 | return string; 708 | }; 709 | 710 | module.exports = exporter; 711 | 712 | 713 | /***/ }), 714 | 715 | /***/ "be13": 716 | /***/ (function(module, exports) { 717 | 718 | // 7.2.1 RequireObjectCoercible(argument) 719 | module.exports = function (it) { 720 | if (it == undefined) throw TypeError("Can't call method on " + it); 721 | return it; 722 | }; 723 | 724 | 725 | /***/ }), 726 | 727 | /***/ "c366": 728 | /***/ (function(module, exports, __webpack_require__) { 729 | 730 | // false -> Array#indexOf 731 | // true -> Array#includes 732 | var toIObject = __webpack_require__("6821"); 733 | var toLength = __webpack_require__("9def"); 734 | var toAbsoluteIndex = __webpack_require__("77f1"); 735 | module.exports = function (IS_INCLUDES) { 736 | return function ($this, el, fromIndex) { 737 | var O = toIObject($this); 738 | var length = toLength(O.length); 739 | var index = toAbsoluteIndex(fromIndex, length); 740 | var value; 741 | // Array#includes uses SameValueZero equality algorithm 742 | // eslint-disable-next-line no-self-compare 743 | if (IS_INCLUDES && el != el) while (length > index) { 744 | value = O[index++]; 745 | // eslint-disable-next-line no-self-compare 746 | if (value != value) return true; 747 | // Array#indexOf ignores holes, Array#includes - not 748 | } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 749 | if (O[index] === el) return IS_INCLUDES || index || 0; 750 | } return !IS_INCLUDES && -1; 751 | }; 752 | }; 753 | 754 | 755 | /***/ }), 756 | 757 | /***/ "c5f6": 758 | /***/ (function(module, exports, __webpack_require__) { 759 | 760 | "use strict"; 761 | 762 | var global = __webpack_require__("7726"); 763 | var has = __webpack_require__("69a8"); 764 | var cof = __webpack_require__("2d95"); 765 | var inheritIfRequired = __webpack_require__("5dbc"); 766 | var toPrimitive = __webpack_require__("6a99"); 767 | var fails = __webpack_require__("79e5"); 768 | var gOPN = __webpack_require__("9093").f; 769 | var gOPD = __webpack_require__("11e9").f; 770 | var dP = __webpack_require__("86cc").f; 771 | var $trim = __webpack_require__("aa77").trim; 772 | var NUMBER = 'Number'; 773 | var $Number = global[NUMBER]; 774 | var Base = $Number; 775 | var proto = $Number.prototype; 776 | // Opera ~12 has broken Object#toString 777 | var BROKEN_COF = cof(__webpack_require__("2aeb")(proto)) == NUMBER; 778 | var TRIM = 'trim' in String.prototype; 779 | 780 | // 7.1.3 ToNumber(argument) 781 | var toNumber = function (argument) { 782 | var it = toPrimitive(argument, false); 783 | if (typeof it == 'string' && it.length > 2) { 784 | it = TRIM ? it.trim() : $trim(it, 3); 785 | var first = it.charCodeAt(0); 786 | var third, radix, maxCode; 787 | if (first === 43 || first === 45) { 788 | third = it.charCodeAt(2); 789 | if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix 790 | } else if (first === 48) { 791 | switch (it.charCodeAt(1)) { 792 | case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i 793 | case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i 794 | default: return +it; 795 | } 796 | for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { 797 | code = digits.charCodeAt(i); 798 | // parseInt parses a string to a first unavailable symbol 799 | // but ToNumber should return NaN if a string contains unavailable symbols 800 | if (code < 48 || code > maxCode) return NaN; 801 | } return parseInt(digits, radix); 802 | } 803 | } return +it; 804 | }; 805 | 806 | if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { 807 | $Number = function Number(value) { 808 | var it = arguments.length < 1 ? 0 : value; 809 | var that = this; 810 | return that instanceof $Number 811 | // check on 1..constructor(foo) case 812 | && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER) 813 | ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); 814 | }; 815 | for (var keys = __webpack_require__("9e1e") ? gOPN(Base) : ( 816 | // ES3: 817 | 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + 818 | // ES6 (in case, if modules with ES6 Number statics required before): 819 | 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + 820 | 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' 821 | ).split(','), j = 0, key; keys.length > j; j++) { 822 | if (has(Base, key = keys[j]) && !has($Number, key)) { 823 | dP($Number, key, gOPD(Base, key)); 824 | } 825 | } 826 | $Number.prototype = proto; 827 | proto.constructor = $Number; 828 | __webpack_require__("2aba")(global, NUMBER, $Number); 829 | } 830 | 831 | 832 | /***/ }), 833 | 834 | /***/ "c69a": 835 | /***/ (function(module, exports, __webpack_require__) { 836 | 837 | module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () { 838 | return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7; 839 | }); 840 | 841 | 842 | /***/ }), 843 | 844 | /***/ "ca5a": 845 | /***/ (function(module, exports) { 846 | 847 | var id = 0; 848 | var px = Math.random(); 849 | module.exports = function (key) { 850 | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 851 | }; 852 | 853 | 854 | /***/ }), 855 | 856 | /***/ "ca66": 857 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 858 | 859 | "use strict"; 860 | /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_item_vue_vue_type_style_index_0_id_7c28c452_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("327d"); 861 | /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_item_vue_vue_type_style_index_0_id_7c28c452_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_item_vue_vue_type_style_index_0_id_7c28c452_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__); 862 | /* unused harmony reexport * */ 863 | /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_item_vue_vue_type_style_index_0_id_7c28c452_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); 864 | 865 | /***/ }), 866 | 867 | /***/ "cb7c": 868 | /***/ (function(module, exports, __webpack_require__) { 869 | 870 | var isObject = __webpack_require__("d3f4"); 871 | module.exports = function (it) { 872 | if (!isObject(it)) throw TypeError(it + ' is not an object!'); 873 | return it; 874 | }; 875 | 876 | 877 | /***/ }), 878 | 879 | /***/ "ce10": 880 | /***/ (function(module, exports, __webpack_require__) { 881 | 882 | var has = __webpack_require__("69a8"); 883 | var toIObject = __webpack_require__("6821"); 884 | var arrayIndexOf = __webpack_require__("c366")(false); 885 | var IE_PROTO = __webpack_require__("613b")('IE_PROTO'); 886 | 887 | module.exports = function (object, names) { 888 | var O = toIObject(object); 889 | var i = 0; 890 | var result = []; 891 | var key; 892 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 893 | // Don't enum bug & hidden keys 894 | while (names.length > i) if (has(O, key = names[i++])) { 895 | ~arrayIndexOf(result, key) || result.push(key); 896 | } 897 | return result; 898 | }; 899 | 900 | 901 | /***/ }), 902 | 903 | /***/ "d3f4": 904 | /***/ (function(module, exports) { 905 | 906 | module.exports = function (it) { 907 | return typeof it === 'object' ? it !== null : typeof it === 'function'; 908 | }; 909 | 910 | 911 | /***/ }), 912 | 913 | /***/ "d8e8": 914 | /***/ (function(module, exports) { 915 | 916 | module.exports = function (it) { 917 | if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 918 | return it; 919 | }; 920 | 921 | 922 | /***/ }), 923 | 924 | /***/ "e11e": 925 | /***/ (function(module, exports) { 926 | 927 | // IE 8- don't enum bug keys 928 | module.exports = ( 929 | 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 930 | ).split(','); 931 | 932 | 933 | /***/ }), 934 | 935 | /***/ "e2ec": 936 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 937 | 938 | "use strict"; 939 | /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9b2c"); 940 | /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__); 941 | /* unused harmony reexport * */ 942 | /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); 943 | 944 | /***/ }), 945 | 946 | /***/ "fab2": 947 | /***/ (function(module, exports, __webpack_require__) { 948 | 949 | var document = __webpack_require__("7726").document; 950 | module.exports = document && document.documentElement; 951 | 952 | 953 | /***/ }), 954 | 955 | /***/ "fb15": 956 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 957 | 958 | "use strict"; 959 | __webpack_require__.r(__webpack_exports__); 960 | 961 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js 962 | // This file is imported into lib/wc client bundles. 963 | 964 | if (typeof window !== 'undefined') { 965 | var i 966 | if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) { 967 | __webpack_require__.p = i[1] // eslint-disable-line 968 | } 969 | } 970 | 971 | // Indicate to webpack that this file can be concatenated 972 | /* harmony default export */ var setPublicPath = (null); 973 | 974 | // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.function.name.js 975 | var es6_function_name = __webpack_require__("7f7f"); 976 | 977 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"ca0e2238-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/swiper.vue?vue&type=template&id=40e726dc& 978 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"swiperContainer",staticClass:"active-swiper-container",style:({ width: _vm.clientW + 'px', height: _vm.clientH + 'px' }),on:{"click":_vm.swipeClick}},[_c('div',{ref:"sliderWrapper",staticClass:"swiper-wrapper",style:({ 979 | transform: ("translate3d(" + _vm.transX + "px, 0, 0)"), 980 | transition: _vm.isTransToX ? ("transform " + _vm.duration + "ms cubic-bezier(0, 0, 0.25, 1)") : '' 981 | }),on:{"touchstart":_vm.touchstartFn,"touchmove":_vm.touchmoveFn,"touchend":_vm.touchendFn,"transitionend":_vm.transitionendFn}},[(_vm.urlList)?_vm._l((_vm.currentList),function(item){return _c('div',{key:item._id,staticClass:"img-box",style:({ 982 | backgroundImage: ("url(" + (item.url) + ")"), 983 | backgroundSize: _vm.backgroundSize 984 | })})}):[_c(_vm.firstSwiperItem,{tag:"component"}),_vm._t("default"),_c(_vm.lastSwiperItem,{tag:"component"})]],2),(_vm.showCounter && _vm.swiperItemCount > 1)?_c('span',{staticClass:"swiper-pagination",style:(_vm.counterStyle)},[_vm._v("\n "+_vm._s(_vm.activeIndex)+"/"+_vm._s(_vm.swiperItemCount - 2)+"\n ")]):_vm._e(),_vm._t("extra")],2)} 985 | var staticRenderFns = [] 986 | 987 | 988 | // CONCATENATED MODULE: ./src/swiper.vue?vue&type=template&id=40e726dc& 989 | 990 | // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js 991 | var es6_number_constructor = __webpack_require__("c5f6"); 992 | 993 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/swiper.vue?vue&type=script&lang=js& 994 | 995 | // 996 | // 997 | // 998 | // 999 | // 1000 | // 1001 | // 1002 | // 1003 | // 1004 | // 1005 | // 1006 | // 1007 | // 1008 | // 1009 | // 1010 | // 1011 | // 1012 | // 1013 | // 1014 | // 1015 | // 1016 | // 1017 | // 1018 | // 1019 | // 1020 | // 1021 | // 1022 | // 1023 | // 1024 | // 1025 | // 1026 | // 1027 | // 1028 | // 1029 | // 1030 | // 滚动容器的宽度 1031 | var clientW = 375; 1032 | var criticalWidth = 0; // 用户标识当前的滑动状态 1033 | 1034 | var touchStatus = 0; // 单指操作 - 滑动坐标相关 1035 | // touchStart 点击坐标 1036 | 1037 | var stStartX = 0; // 上个周期中的tranlateX 坐标 1038 | 1039 | var stPrevX = 0; // 当前是否需要自动滑动到下一张图片 1040 | 1041 | var stAutoNext = 0; // 滑动的方向,-1 为右滑,1 为左滑 1042 | 1043 | var stDirectionFlag = 0; // 当前正在预览的图片次序,用于位置计算 1044 | 1045 | var activeIndex = 0; // sliderWrapper上的触摸点数量 1046 | 1047 | var touchCount = 0; // 用于取消自动轮播(如果指定了的话) 1048 | 1049 | var _autoPlayTimer = null; // getBoundingClientRect的兼容性 1050 | 1051 | var isSupportGetBoundingClientRect = typeof document.documentElement.getBoundingClientRect === 'function'; 1052 | /* harmony default export */ var swipervue_type_script_lang_js_ = ({ 1053 | name: 'Swiper', 1054 | props: { 1055 | urlList: { 1056 | type: Array, 1057 | required: false, 1058 | default: null 1059 | }, 1060 | // 图片以何种缩放的形式铺在 滑动容器框内,只有当指定了 urlList 时才有效 1061 | backgroundSize: { 1062 | type: String, 1063 | required: false, 1064 | default: 'cover' 1065 | }, 1066 | // swiperContainer容器的宽度 1067 | clientW: { 1068 | type: Number, 1069 | required: false, 1070 | default: document.documentElement.clientWidth 1071 | }, 1072 | // swiperContainer容器的高度 1073 | clientH: { 1074 | type: Number, 1075 | required: false, 1076 | default: 200 1077 | }, 1078 | // 是否需要默认的计数器 1079 | showCounter: { 1080 | type: Boolean, 1081 | required: false, 1082 | default: false 1083 | }, 1084 | // 自定义默认计数器的样式 1085 | counterStyle: { 1086 | type: Object, 1087 | required: false, 1088 | default: null 1089 | }, 1090 | // 起始index 1091 | startIndex: { 1092 | type: Number, 1093 | required: false, 1094 | default: 0 1095 | }, 1096 | // 临界点的比例值,当超过这个临界点,则需要自动滑动到下一张图片 1097 | criticalValue: { 1098 | type: Number, 1099 | required: false, 1100 | default: 1 / 3 1101 | }, 1102 | // 如果指定了此参数,并且值 >= 0,则将会将此值当做 delay的时间(单位为 ms)进行自动轮播; 1103 | // 不指定或指定值小于 0 则不自动轮播 1104 | // 如果想要指定此值,一般建议设置为 3000 1105 | autoPlayDelay: { 1106 | type: Number, 1107 | required: false, 1108 | default: null 1109 | }, 1110 | // 自动滚动到稳定位置所需的时间,单位是秒(ms) 1111 | duration: { 1112 | type: Number, 1113 | required: false, 1114 | default: 350, 1115 | validator: function validator(value) { 1116 | return value >= 0; 1117 | } 1118 | }, 1119 | // 如果只有一个 swipeItem,是否允许拖动 1120 | noDragWhenSingle: { 1121 | type: Boolean, 1122 | required: false, 1123 | default: true 1124 | } 1125 | }, 1126 | data: function data() { 1127 | return { 1128 | // 当前显示在DOM中的图片列表 1129 | currentList: [], 1130 | // 单指滑动的位移 1131 | transX: 0, 1132 | // 当前正在预览的图片次序,用于给模板渲染计数器使用 1133 | activeIndex: 0, 1134 | // 正在自动滚动到固定位置的过程中 1135 | isTransToX: false, 1136 | firstSwiperItem: null, 1137 | lastSwiperItem: null, 1138 | swiperItemCount: 0 1139 | }; 1140 | }, 1141 | created: function created() { 1142 | var _this = this; 1143 | 1144 | if (this.urlList) { 1145 | this.currentList = this.urlList.length > 1 ? this.urlList.slice(-1).concat(this.urlList, this.urlList.slice(0, 1)).map(function (url, index) { 1146 | return { 1147 | url: url, 1148 | _id: index 1149 | }; 1150 | }) : this.urlList.map(function (url, index) { 1151 | return { 1152 | url: url, 1153 | _id: index 1154 | }; 1155 | }); 1156 | this.swiperItemCount = this.currentList.length; 1157 | } else { 1158 | var slots = this.$slots.default || []; 1159 | this.swiperItemCount = slots.length; 1160 | 1161 | if (slots.length > 1) { 1162 | // 加上首尾多出来的两个 1163 | this.swiperItemCount = slots.length + 2; 1164 | this.updateChild(slots); 1165 | } 1166 | } 1167 | 1168 | clientW = this.clientW; 1169 | criticalWidth = clientW * this.criticalValue; 1170 | 1171 | if (this.swiperItemCount > 1) { 1172 | // 因为首尾都多加了一个swiperItem元素,所以顺延一位 1173 | this.activeIndex = activeIndex = this.getActiveIndex(this.startIndex + 1); 1174 | this.transX = stPrevX = -clientW * activeIndex; 1175 | } // 自动轮播 1176 | 1177 | 1178 | clearTimeout(_autoPlayTimer); 1179 | _autoPlayTimer = setTimeout(function () { 1180 | _this.autoPlayFn(); 1181 | }, 14); 1182 | }, 1183 | destroy: function destroy() { 1184 | clearTimeout(_autoPlayTimer); 1185 | }, 1186 | watch: { 1187 | autoPlayDelay: function autoPlayDelay() { 1188 | // 修改了 autoPlayDelay 的值,需要重新触发事件 1189 | this.autoPlayFn(); 1190 | } 1191 | }, 1192 | methods: { 1193 | touchstartFn: function touchstartFn(e) { 1194 | // 取消还没结束的自动轮播(如果指定了轮播的话) 1195 | clearTimeout(_autoPlayTimer); 1196 | if (this.ignoreTouch()) return; 1197 | 1198 | if (this.isTransToX) { 1199 | if (!isSupportGetBoundingClientRect) { 1200 | return touchStatus = 0; 1201 | } 1202 | 1203 | this.isTransToX = false; 1204 | this.transX = stPrevX = this.$refs.sliderWrapper.getBoundingClientRect().left - this.$refs.swiperContainer.getBoundingClientRect().left; 1205 | } 1206 | 1207 | touchStatus = 1; 1208 | touchCount = e.touches.length; 1209 | this.singleTouchStartFn(e); 1210 | }, 1211 | touchmoveFn: function touchmoveFn(e) { 1212 | e.preventDefault(); 1213 | if (this.ignoreTouch() || touchStatus !== 1) return; 1214 | 1215 | if (this.swiperItemCount !== 1) { 1216 | this.singleTouchMoveFn(e); 1217 | } else { 1218 | // swiperItem 数量为1 1219 | if (!this.noDragWhenSingle) { 1220 | // 允许拖动 1221 | this.transX = (e.touches[touchCount - 1].clientX - stStartX) * 0.1 + stPrevX; 1222 | } 1223 | } 1224 | }, 1225 | touchendFn: function touchendFn(e) { 1226 | touchCount = e.touches.length; 1227 | if (this.ignoreTouch() || touchStatus !== 1) return; 1228 | 1229 | if (this.swiperItemCount !== 1 || !this.noDragWhenSingle) { 1230 | if (touchCount !== 0) { 1231 | stStartX = e.touches[touchCount - 1].clientX; 1232 | stPrevX = this.transX; 1233 | return; 1234 | } 1235 | 1236 | this.singleTouchEndFn(e); 1237 | } 1238 | }, 1239 | // 单指滑动行为 - start 1240 | singleTouchStartFn: function singleTouchStartFn(e) { 1241 | stStartX = e.touches[touchCount - 1].clientX; 1242 | 1243 | if (touchCount > 1) { 1244 | stPrevX = this.transX; 1245 | } 1246 | }, 1247 | // 单指滑动行为 - move 1248 | singleTouchMoveFn: function singleTouchMoveFn(e) { 1249 | var transX = e.touches[touchCount - 1].clientX - stStartX + stPrevX; 1250 | 1251 | if (transX > 0) { 1252 | // 滑动到到第一个了 1253 | stStartX = e.touches[touchCount - 1].clientX; // 矫正到正确位置 1254 | 1255 | stPrevX = transX = -clientW * (this.swiperItemCount - 2); 1256 | } else if (transX < -clientW * (this.swiperItemCount - 1)) { 1257 | // 滑动到最后一个了 1258 | stStartX = e.touches[touchCount - 1].clientX; // 矫正到正确位置 1259 | 1260 | stPrevX = transX = -clientW; 1261 | } 1262 | 1263 | this.transX = transX; 1264 | }, 1265 | // 单指滑动行为 - end 1266 | singleTouchEndFn: function singleTouchEndFn() { 1267 | var toX = this.swiperItemCount === 1 ? 0 : this.getSingleTouchEndMultipleChildToX(); 1268 | this.gotoX(toX); 1269 | }, 1270 | // 单指滑动行为 - end,swiper-item数量大于 1 的情况 1271 | getSingleTouchEndMultipleChildToX: function getSingleTouchEndMultipleChildToX() { 1272 | var toX = 0; 1273 | var diffX = this.transX + clientW * activeIndex; 1274 | var wholeBlock = Math.floor(diffX / clientW); // 如果连续滑过超过一个 swiperItem 块,当做一个来处理 1275 | 1276 | if (Math.abs(diffX) > clientW) { 1277 | activeIndex = Math.ceil(-this.transX / clientW); 1278 | diffX = diffX - clientW * wholeBlock; 1279 | } // diffX 大于0 说明是右滑,小于0 则是左滑 1280 | 1281 | 1282 | if (diffX > 0) { 1283 | stDirectionFlag = -1; 1284 | stAutoNext = diffX > criticalWidth; 1285 | toX = stAutoNext ? -clientW * (activeIndex - 1) : -clientW * activeIndex; 1286 | } else if (diffX < 0) { 1287 | stDirectionFlag = 1; 1288 | stAutoNext = Math.abs(diffX) > criticalWidth; 1289 | toX = stAutoNext ? -clientW * (activeIndex + 1) : -clientW * activeIndex; 1290 | } else { 1291 | stDirectionFlag = 0; 1292 | stAutoNext = false; 1293 | toX = -clientW * activeIndex; 1294 | } 1295 | 1296 | this.activeIndex = activeIndex = this.getActiveIndex(activeIndex + (stAutoNext ? stDirectionFlag : 0)); 1297 | return toX; 1298 | }, 1299 | transEndFn: function transEndFn() { 1300 | var _this2 = this; 1301 | 1302 | this.activeIndex = activeIndex = this.getActiveIndex(activeIndex); 1303 | this.transX = stPrevX = -clientW * activeIndex; 1304 | this.$emit('change', activeIndex); // setTimeout是为了避免当 autoPlayDelay值被指定为 0 时无限轮播出现问题 1305 | // 16.7 是 1000/60 的大约值 1306 | 1307 | clearTimeout(_autoPlayTimer); 1308 | _autoPlayTimer = setTimeout(function () { 1309 | _this2.autoPlayFn(); 1310 | }, 16.7); 1311 | }, 1312 | transitionendFn: function transitionendFn(e) { 1313 | if (e.target.className === 'swiper-wrapper') { 1314 | if (this.isTransToX) { 1315 | this.isTransToX = false; // 单指操作 - 自动滑动结束 1316 | 1317 | this.transEndFn(); 1318 | } 1319 | } 1320 | }, 1321 | // 首尾多添加两个swiperItem,也就是swiperItem的元素数量比传进来的多两个 1322 | updateChild: function updateChild(slots) { 1323 | this.firstSwiperItem = { 1324 | render: function render(h) { 1325 | return h('div', { 1326 | staticClass: 'swiper-item-box' 1327 | }, slots.slice(-1)); 1328 | } 1329 | }; 1330 | this.lastSwiperItem = { 1331 | render: function render(h) { 1332 | return h('div', { 1333 | staticClass: 'swiper-item-box' 1334 | }, slots.slice(0, 1)); 1335 | } 1336 | }; 1337 | }, 1338 | getActiveIndex: function getActiveIndex(index) { 1339 | if (this.swiperItemCount === 1) return 0; 1340 | if (index >= this.swiperItemCount - 1) return 1; 1341 | if (index <= 0) return this.swiperItemCount - 2; 1342 | return index; 1343 | }, 1344 | autoPlayFn: function autoPlayFn() { 1345 | var _this3 = this; 1346 | 1347 | // 判断是否满足自动轮播的条件 1348 | if (this.swiperItemCount > 1 && typeof this.autoPlayDelay === 'number' && this.autoPlayDelay >= 0 && touchCount === 0 && this.transX % clientW === 0) { 1349 | clearTimeout(_autoPlayTimer); 1350 | _autoPlayTimer = setTimeout(function () { 1351 | activeIndex = activeIndex + 1; 1352 | _this3.transX = -clientW * activeIndex; 1353 | _this3.isTransToX = true; 1354 | 1355 | _this3.correctDurationAct(); 1356 | }, this.autoPlayDelay); 1357 | } 1358 | }, 1359 | // 如果没有传入 swiper-item子元素,或者只传入了一个子元素并且 noDragWhenSingle为 true, 1360 | // 则不对 touch 事件进行滑动响应 1361 | ignoreTouch: function ignoreTouch() { 1362 | return this.swiperItemCount === 0 || this.swiperItemCount === 1 && this.noDragWhenSingle; 1363 | }, 1364 | // duration不正确或为0,导致不会触发transitionend函数,所以需要直接调用 transEndFn 1365 | correctDurationAct: function correctDurationAct() { 1366 | if (typeof this.duration !== 'number' || this.duration <= 0) { 1367 | this.isTransToX = false; 1368 | this.transEndFn(); 1369 | } 1370 | }, 1371 | // 组件的点击事件 1372 | swipeClick: function swipeClick() { 1373 | this.$emit('click', this.activeIndex - 1); 1374 | }, 1375 | gotoX: function gotoX(toX) { 1376 | if (this.transX === toX) { 1377 | // 已经手动滑到正确的位置 1378 | this.transEndFn(); 1379 | } else { 1380 | // 自由滚动到合适的位置 1381 | this.isTransToX = true; 1382 | this.transX = toX; 1383 | this.correctDurationAct(); 1384 | } 1385 | }, 1386 | goto: function goto(index) { 1387 | clearTimeout(_autoPlayTimer); 1388 | activeIndex = index % (this.swiperItemCount - 2) + 1; 1389 | 1390 | if (this.activeIndex !== activeIndex) { 1391 | this.activeIndex = activeIndex; 1392 | this.gotoX(-clientW * activeIndex); 1393 | } else { 1394 | this.autoPlayFn(); 1395 | } 1396 | } 1397 | } 1398 | }); 1399 | // CONCATENATED MODULE: ./src/swiper.vue?vue&type=script&lang=js& 1400 | /* harmony default export */ var src_swipervue_type_script_lang_js_ = (swipervue_type_script_lang_js_); 1401 | // EXTERNAL MODULE: ./src/swiper.vue?vue&type=style&index=0&lang=css& 1402 | var swipervue_type_style_index_0_lang_css_ = __webpack_require__("e2ec"); 1403 | 1404 | // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js 1405 | /* globals __VUE_SSR_CONTEXT__ */ 1406 | 1407 | // IMPORTANT: Do NOT use ES2015 features in this file (except for modules). 1408 | // This module is a runtime utility for cleaner component module output and will 1409 | // be included in the final webpack user bundle. 1410 | 1411 | function normalizeComponent ( 1412 | scriptExports, 1413 | render, 1414 | staticRenderFns, 1415 | functionalTemplate, 1416 | injectStyles, 1417 | scopeId, 1418 | moduleIdentifier, /* server only */ 1419 | shadowMode /* vue-cli only */ 1420 | ) { 1421 | // Vue.extend constructor export interop 1422 | var options = typeof scriptExports === 'function' 1423 | ? scriptExports.options 1424 | : scriptExports 1425 | 1426 | // render functions 1427 | if (render) { 1428 | options.render = render 1429 | options.staticRenderFns = staticRenderFns 1430 | options._compiled = true 1431 | } 1432 | 1433 | // functional template 1434 | if (functionalTemplate) { 1435 | options.functional = true 1436 | } 1437 | 1438 | // scopedId 1439 | if (scopeId) { 1440 | options._scopeId = 'data-v-' + scopeId 1441 | } 1442 | 1443 | var hook 1444 | if (moduleIdentifier) { // server build 1445 | hook = function (context) { 1446 | // 2.3 injection 1447 | context = 1448 | context || // cached call 1449 | (this.$vnode && this.$vnode.ssrContext) || // stateful 1450 | (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional 1451 | // 2.2 with runInNewContext: true 1452 | if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { 1453 | context = __VUE_SSR_CONTEXT__ 1454 | } 1455 | // inject component styles 1456 | if (injectStyles) { 1457 | injectStyles.call(this, context) 1458 | } 1459 | // register component module identifier for async chunk inferrence 1460 | if (context && context._registeredComponents) { 1461 | context._registeredComponents.add(moduleIdentifier) 1462 | } 1463 | } 1464 | // used by ssr in case component is cached and beforeCreate 1465 | // never gets called 1466 | options._ssrRegister = hook 1467 | } else if (injectStyles) { 1468 | hook = shadowMode 1469 | ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } 1470 | : injectStyles 1471 | } 1472 | 1473 | if (hook) { 1474 | if (options.functional) { 1475 | // for template-only hot-reload because in that case the render fn doesn't 1476 | // go through the normalizer 1477 | options._injectStyles = hook 1478 | // register for functioal component in vue file 1479 | var originalRender = options.render 1480 | options.render = function renderWithStyleInjection (h, context) { 1481 | hook.call(context) 1482 | return originalRender(h, context) 1483 | } 1484 | } else { 1485 | // inject component registration as beforeCreate hook 1486 | var existing = options.beforeCreate 1487 | options.beforeCreate = existing 1488 | ? [].concat(existing, hook) 1489 | : [hook] 1490 | } 1491 | } 1492 | 1493 | return { 1494 | exports: scriptExports, 1495 | options: options 1496 | } 1497 | } 1498 | 1499 | // CONCATENATED MODULE: ./src/swiper.vue 1500 | 1501 | 1502 | 1503 | 1504 | 1505 | 1506 | /* normalize component */ 1507 | 1508 | var component = normalizeComponent( 1509 | src_swipervue_type_script_lang_js_, 1510 | render, 1511 | staticRenderFns, 1512 | false, 1513 | null, 1514 | null, 1515 | null 1516 | 1517 | ) 1518 | 1519 | component.options.__file = "swiper.vue" 1520 | /* harmony default export */ var swiper = (component.exports); 1521 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"ca0e2238-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/swiper-item.vue?vue&type=template&id=7c28c452&scoped=true& 1522 | var swiper_itemvue_type_template_id_7c28c452_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"swiper-item"},[_vm._t("default")],2)} 1523 | var swiper_itemvue_type_template_id_7c28c452_scoped_true_staticRenderFns = [] 1524 | 1525 | 1526 | // CONCATENATED MODULE: ./src/swiper-item.vue?vue&type=template&id=7c28c452&scoped=true& 1527 | 1528 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/swiper-item.vue?vue&type=script&lang=js& 1529 | // 1530 | // 1531 | // 1532 | // 1533 | // 1534 | // 1535 | /* harmony default export */ var swiper_itemvue_type_script_lang_js_ = ({ 1536 | name: 'SwiperItem' 1537 | }); 1538 | // CONCATENATED MODULE: ./src/swiper-item.vue?vue&type=script&lang=js& 1539 | /* harmony default export */ var src_swiper_itemvue_type_script_lang_js_ = (swiper_itemvue_type_script_lang_js_); 1540 | // EXTERNAL MODULE: ./src/swiper-item.vue?vue&type=style&index=0&id=7c28c452&scoped=true&lang=css& 1541 | var swiper_itemvue_type_style_index_0_id_7c28c452_scoped_true_lang_css_ = __webpack_require__("ca66"); 1542 | 1543 | // CONCATENATED MODULE: ./src/swiper-item.vue 1544 | 1545 | 1546 | 1547 | 1548 | 1549 | 1550 | /* normalize component */ 1551 | 1552 | var swiper_item_component = normalizeComponent( 1553 | src_swiper_itemvue_type_script_lang_js_, 1554 | swiper_itemvue_type_template_id_7c28c452_scoped_true_render, 1555 | swiper_itemvue_type_template_id_7c28c452_scoped_true_staticRenderFns, 1556 | false, 1557 | null, 1558 | "7c28c452", 1559 | null 1560 | 1561 | ) 1562 | 1563 | swiper_item_component.options.__file = "swiper-item.vue" 1564 | /* harmony default export */ var swiper_item = (swiper_item_component.exports); 1565 | // CONCATENATED MODULE: ./src/index.js 1566 | 1567 | 1568 | 1569 | 1570 | var src_install = function install(Vue) { 1571 | Vue.component(swiper.name, swiper); 1572 | Vue.component(swiper_item.name, swiper_item); 1573 | }; 1574 | 1575 | var VueActiveSwiper = { 1576 | Swiper: swiper, 1577 | SwiperItem: swiper_item, 1578 | install: src_install 1579 | }; 1580 | /* harmony default export */ var src = (VueActiveSwiper); 1581 | 1582 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js 1583 | /* concated harmony reexport Swiper */__webpack_require__.d(__webpack_exports__, "Swiper", function() { return swiper; }); 1584 | /* concated harmony reexport SwiperItem */__webpack_require__.d(__webpack_exports__, "SwiperItem", function() { return swiper_item; }); 1585 | /* concated harmony reexport install */__webpack_require__.d(__webpack_exports__, "install", function() { return src_install; }); 1586 | 1587 | 1588 | /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src); 1589 | 1590 | 1591 | 1592 | /***/ }), 1593 | 1594 | /***/ "fdef": 1595 | /***/ (function(module, exports) { 1596 | 1597 | module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + 1598 | '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; 1599 | 1600 | 1601 | /***/ }) 1602 | 1603 | /******/ }); 1604 | //# sourceMappingURL=VueActiveSwiper.common.js.map -------------------------------------------------------------------------------- /dist/VueActiveSwiper.css: -------------------------------------------------------------------------------- 1 | .active-swiper-container{position:relative;overflow:hidden;background-color:#eee}.active-swiper-container *{-webkit-box-sizing:border-box;box-sizing:border-box}.active-swiper-container .swiper-wrapper{height:100%;white-space:nowrap}.active-swiper-container .img-box,.active-swiper-container .swiper-item-box{display:inline-block;width:100%;height:100%;overflow:hidden}.active-swiper-container .img-box{background-position:50%;background-repeat:no-repeat}.active-swiper-container .swiper-pagination{position:absolute;bottom:10px;right:10px;height:20px;line-height:20px;padding:0 10px;font-size:12px;color:#fff;border-radius:10px;background-color:hsla(0,0%,39.2%,.6)}.swiper-item[data-v-7c28c452]{display:inline-block;width:100%;height:100%;overflow:hidden} -------------------------------------------------------------------------------- /dist/VueActiveSwiper.umd.js: -------------------------------------------------------------------------------- 1 | (function webpackUniversalModuleDefinition(root, factory) { 2 | if(typeof exports === 'object' && typeof module === 'object') 3 | module.exports = factory(); 4 | else if(typeof define === 'function' && define.amd) 5 | define([], factory); 6 | else if(typeof exports === 'object') 7 | exports["VueActiveSwiper"] = factory(); 8 | else 9 | root["VueActiveSwiper"] = factory(); 10 | })((typeof self !== 'undefined' ? self : this), function() { 11 | return /******/ (function(modules) { // webpackBootstrap 12 | /******/ // The module cache 13 | /******/ var installedModules = {}; 14 | /******/ 15 | /******/ // The require function 16 | /******/ function __webpack_require__(moduleId) { 17 | /******/ 18 | /******/ // Check if module is in cache 19 | /******/ if(installedModules[moduleId]) { 20 | /******/ return installedModules[moduleId].exports; 21 | /******/ } 22 | /******/ // Create a new module (and put it into the cache) 23 | /******/ var module = installedModules[moduleId] = { 24 | /******/ i: moduleId, 25 | /******/ l: false, 26 | /******/ exports: {} 27 | /******/ }; 28 | /******/ 29 | /******/ // Execute the module function 30 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 31 | /******/ 32 | /******/ // Flag the module as loaded 33 | /******/ module.l = true; 34 | /******/ 35 | /******/ // Return the exports of the module 36 | /******/ return module.exports; 37 | /******/ } 38 | /******/ 39 | /******/ 40 | /******/ // expose the modules object (__webpack_modules__) 41 | /******/ __webpack_require__.m = modules; 42 | /******/ 43 | /******/ // expose the module cache 44 | /******/ __webpack_require__.c = installedModules; 45 | /******/ 46 | /******/ // define getter function for harmony exports 47 | /******/ __webpack_require__.d = function(exports, name, getter) { 48 | /******/ if(!__webpack_require__.o(exports, name)) { 49 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 50 | /******/ } 51 | /******/ }; 52 | /******/ 53 | /******/ // define __esModule on exports 54 | /******/ __webpack_require__.r = function(exports) { 55 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 56 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 57 | /******/ } 58 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 59 | /******/ }; 60 | /******/ 61 | /******/ // create a fake namespace object 62 | /******/ // mode & 1: value is a module id, require it 63 | /******/ // mode & 2: merge all properties of value into the ns 64 | /******/ // mode & 4: return value when already ns object 65 | /******/ // mode & 8|1: behave like require 66 | /******/ __webpack_require__.t = function(value, mode) { 67 | /******/ if(mode & 1) value = __webpack_require__(value); 68 | /******/ if(mode & 8) return value; 69 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 70 | /******/ var ns = Object.create(null); 71 | /******/ __webpack_require__.r(ns); 72 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 73 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 74 | /******/ return ns; 75 | /******/ }; 76 | /******/ 77 | /******/ // getDefaultExport function for compatibility with non-harmony modules 78 | /******/ __webpack_require__.n = function(module) { 79 | /******/ var getter = module && module.__esModule ? 80 | /******/ function getDefault() { return module['default']; } : 81 | /******/ function getModuleExports() { return module; }; 82 | /******/ __webpack_require__.d(getter, 'a', getter); 83 | /******/ return getter; 84 | /******/ }; 85 | /******/ 86 | /******/ // Object.prototype.hasOwnProperty.call 87 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 88 | /******/ 89 | /******/ // __webpack_public_path__ 90 | /******/ __webpack_require__.p = ""; 91 | /******/ 92 | /******/ 93 | /******/ // Load entry module and return exports 94 | /******/ return __webpack_require__(__webpack_require__.s = "fb15"); 95 | /******/ }) 96 | /************************************************************************/ 97 | /******/ ({ 98 | 99 | /***/ "0d58": 100 | /***/ (function(module, exports, __webpack_require__) { 101 | 102 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) 103 | var $keys = __webpack_require__("ce10"); 104 | var enumBugKeys = __webpack_require__("e11e"); 105 | 106 | module.exports = Object.keys || function keys(O) { 107 | return $keys(O, enumBugKeys); 108 | }; 109 | 110 | 111 | /***/ }), 112 | 113 | /***/ "11e9": 114 | /***/ (function(module, exports, __webpack_require__) { 115 | 116 | var pIE = __webpack_require__("52a7"); 117 | var createDesc = __webpack_require__("4630"); 118 | var toIObject = __webpack_require__("6821"); 119 | var toPrimitive = __webpack_require__("6a99"); 120 | var has = __webpack_require__("69a8"); 121 | var IE8_DOM_DEFINE = __webpack_require__("c69a"); 122 | var gOPD = Object.getOwnPropertyDescriptor; 123 | 124 | exports.f = __webpack_require__("9e1e") ? gOPD : function getOwnPropertyDescriptor(O, P) { 125 | O = toIObject(O); 126 | P = toPrimitive(P, true); 127 | if (IE8_DOM_DEFINE) try { 128 | return gOPD(O, P); 129 | } catch (e) { /* empty */ } 130 | if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 131 | }; 132 | 133 | 134 | /***/ }), 135 | 136 | /***/ "1495": 137 | /***/ (function(module, exports, __webpack_require__) { 138 | 139 | var dP = __webpack_require__("86cc"); 140 | var anObject = __webpack_require__("cb7c"); 141 | var getKeys = __webpack_require__("0d58"); 142 | 143 | module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) { 144 | anObject(O); 145 | var keys = getKeys(Properties); 146 | var length = keys.length; 147 | var i = 0; 148 | var P; 149 | while (length > i) dP.f(O, P = keys[i++], Properties[P]); 150 | return O; 151 | }; 152 | 153 | 154 | /***/ }), 155 | 156 | /***/ "230e": 157 | /***/ (function(module, exports, __webpack_require__) { 158 | 159 | var isObject = __webpack_require__("d3f4"); 160 | var document = __webpack_require__("7726").document; 161 | // typeof document.createElement is 'object' in old IE 162 | var is = isObject(document) && isObject(document.createElement); 163 | module.exports = function (it) { 164 | return is ? document.createElement(it) : {}; 165 | }; 166 | 167 | 168 | /***/ }), 169 | 170 | /***/ "2aba": 171 | /***/ (function(module, exports, __webpack_require__) { 172 | 173 | var global = __webpack_require__("7726"); 174 | var hide = __webpack_require__("32e9"); 175 | var has = __webpack_require__("69a8"); 176 | var SRC = __webpack_require__("ca5a")('src'); 177 | var TO_STRING = 'toString'; 178 | var $toString = Function[TO_STRING]; 179 | var TPL = ('' + $toString).split(TO_STRING); 180 | 181 | __webpack_require__("8378").inspectSource = function (it) { 182 | return $toString.call(it); 183 | }; 184 | 185 | (module.exports = function (O, key, val, safe) { 186 | var isFunction = typeof val == 'function'; 187 | if (isFunction) has(val, 'name') || hide(val, 'name', key); 188 | if (O[key] === val) return; 189 | if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); 190 | if (O === global) { 191 | O[key] = val; 192 | } else if (!safe) { 193 | delete O[key]; 194 | hide(O, key, val); 195 | } else if (O[key]) { 196 | O[key] = val; 197 | } else { 198 | hide(O, key, val); 199 | } 200 | // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative 201 | })(Function.prototype, TO_STRING, function toString() { 202 | return typeof this == 'function' && this[SRC] || $toString.call(this); 203 | }); 204 | 205 | 206 | /***/ }), 207 | 208 | /***/ "2aeb": 209 | /***/ (function(module, exports, __webpack_require__) { 210 | 211 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 212 | var anObject = __webpack_require__("cb7c"); 213 | var dPs = __webpack_require__("1495"); 214 | var enumBugKeys = __webpack_require__("e11e"); 215 | var IE_PROTO = __webpack_require__("613b")('IE_PROTO'); 216 | var Empty = function () { /* empty */ }; 217 | var PROTOTYPE = 'prototype'; 218 | 219 | // Create object with fake `null` prototype: use iframe Object with cleared prototype 220 | var createDict = function () { 221 | // Thrash, waste and sodomy: IE GC bug 222 | var iframe = __webpack_require__("230e")('iframe'); 223 | var i = enumBugKeys.length; 224 | var lt = '<'; 225 | var gt = '>'; 226 | var iframeDocument; 227 | iframe.style.display = 'none'; 228 | __webpack_require__("fab2").appendChild(iframe); 229 | iframe.src = 'javascript:'; // eslint-disable-line no-script-url 230 | // createDict = iframe.contentWindow.Object; 231 | // html.removeChild(iframe); 232 | iframeDocument = iframe.contentWindow.document; 233 | iframeDocument.open(); 234 | iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); 235 | iframeDocument.close(); 236 | createDict = iframeDocument.F; 237 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 238 | return createDict(); 239 | }; 240 | 241 | module.exports = Object.create || function create(O, Properties) { 242 | var result; 243 | if (O !== null) { 244 | Empty[PROTOTYPE] = anObject(O); 245 | result = new Empty(); 246 | Empty[PROTOTYPE] = null; 247 | // add "__proto__" for Object.getPrototypeOf polyfill 248 | result[IE_PROTO] = O; 249 | } else result = createDict(); 250 | return Properties === undefined ? result : dPs(result, Properties); 251 | }; 252 | 253 | 254 | /***/ }), 255 | 256 | /***/ "2d00": 257 | /***/ (function(module, exports) { 258 | 259 | module.exports = false; 260 | 261 | 262 | /***/ }), 263 | 264 | /***/ "2d95": 265 | /***/ (function(module, exports) { 266 | 267 | var toString = {}.toString; 268 | 269 | module.exports = function (it) { 270 | return toString.call(it).slice(8, -1); 271 | }; 272 | 273 | 274 | /***/ }), 275 | 276 | /***/ "327d": 277 | /***/ (function(module, exports, __webpack_require__) { 278 | 279 | // extracted by mini-css-extract-plugin 280 | 281 | /***/ }), 282 | 283 | /***/ "32e9": 284 | /***/ (function(module, exports, __webpack_require__) { 285 | 286 | var dP = __webpack_require__("86cc"); 287 | var createDesc = __webpack_require__("4630"); 288 | module.exports = __webpack_require__("9e1e") ? function (object, key, value) { 289 | return dP.f(object, key, createDesc(1, value)); 290 | } : function (object, key, value) { 291 | object[key] = value; 292 | return object; 293 | }; 294 | 295 | 296 | /***/ }), 297 | 298 | /***/ "4588": 299 | /***/ (function(module, exports) { 300 | 301 | // 7.1.4 ToInteger 302 | var ceil = Math.ceil; 303 | var floor = Math.floor; 304 | module.exports = function (it) { 305 | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 306 | }; 307 | 308 | 309 | /***/ }), 310 | 311 | /***/ "4630": 312 | /***/ (function(module, exports) { 313 | 314 | module.exports = function (bitmap, value) { 315 | return { 316 | enumerable: !(bitmap & 1), 317 | configurable: !(bitmap & 2), 318 | writable: !(bitmap & 4), 319 | value: value 320 | }; 321 | }; 322 | 323 | 324 | /***/ }), 325 | 326 | /***/ "52a7": 327 | /***/ (function(module, exports) { 328 | 329 | exports.f = {}.propertyIsEnumerable; 330 | 331 | 332 | /***/ }), 333 | 334 | /***/ "5537": 335 | /***/ (function(module, exports, __webpack_require__) { 336 | 337 | var core = __webpack_require__("8378"); 338 | var global = __webpack_require__("7726"); 339 | var SHARED = '__core-js_shared__'; 340 | var store = global[SHARED] || (global[SHARED] = {}); 341 | 342 | (module.exports = function (key, value) { 343 | return store[key] || (store[key] = value !== undefined ? value : {}); 344 | })('versions', []).push({ 345 | version: core.version, 346 | mode: __webpack_require__("2d00") ? 'pure' : 'global', 347 | copyright: '© 2018 Denis Pushkarev (zloirock.ru)' 348 | }); 349 | 350 | 351 | /***/ }), 352 | 353 | /***/ "5ca1": 354 | /***/ (function(module, exports, __webpack_require__) { 355 | 356 | var global = __webpack_require__("7726"); 357 | var core = __webpack_require__("8378"); 358 | var hide = __webpack_require__("32e9"); 359 | var redefine = __webpack_require__("2aba"); 360 | var ctx = __webpack_require__("9b43"); 361 | var PROTOTYPE = 'prototype'; 362 | 363 | var $export = function (type, name, source) { 364 | var IS_FORCED = type & $export.F; 365 | var IS_GLOBAL = type & $export.G; 366 | var IS_STATIC = type & $export.S; 367 | var IS_PROTO = type & $export.P; 368 | var IS_BIND = type & $export.B; 369 | var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; 370 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 371 | var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); 372 | var key, own, out, exp; 373 | if (IS_GLOBAL) source = name; 374 | for (key in source) { 375 | // contains in native 376 | own = !IS_FORCED && target && target[key] !== undefined; 377 | // export native or passed 378 | out = (own ? target : source)[key]; 379 | // bind timers to global for call from export context 380 | exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; 381 | // extend global 382 | if (target) redefine(target, key, out, type & $export.U); 383 | // export 384 | if (exports[key] != out) hide(exports, key, exp); 385 | if (IS_PROTO && expProto[key] != out) expProto[key] = out; 386 | } 387 | }; 388 | global.core = core; 389 | // type bitmap 390 | $export.F = 1; // forced 391 | $export.G = 2; // global 392 | $export.S = 4; // static 393 | $export.P = 8; // proto 394 | $export.B = 16; // bind 395 | $export.W = 32; // wrap 396 | $export.U = 64; // safe 397 | $export.R = 128; // real proto method for `library` 398 | module.exports = $export; 399 | 400 | 401 | /***/ }), 402 | 403 | /***/ "5dbc": 404 | /***/ (function(module, exports, __webpack_require__) { 405 | 406 | var isObject = __webpack_require__("d3f4"); 407 | var setPrototypeOf = __webpack_require__("8b97").set; 408 | module.exports = function (that, target, C) { 409 | var S = target.constructor; 410 | var P; 411 | if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { 412 | setPrototypeOf(that, P); 413 | } return that; 414 | }; 415 | 416 | 417 | /***/ }), 418 | 419 | /***/ "613b": 420 | /***/ (function(module, exports, __webpack_require__) { 421 | 422 | var shared = __webpack_require__("5537")('keys'); 423 | var uid = __webpack_require__("ca5a"); 424 | module.exports = function (key) { 425 | return shared[key] || (shared[key] = uid(key)); 426 | }; 427 | 428 | 429 | /***/ }), 430 | 431 | /***/ "626a": 432 | /***/ (function(module, exports, __webpack_require__) { 433 | 434 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 435 | var cof = __webpack_require__("2d95"); 436 | // eslint-disable-next-line no-prototype-builtins 437 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 438 | return cof(it) == 'String' ? it.split('') : Object(it); 439 | }; 440 | 441 | 442 | /***/ }), 443 | 444 | /***/ "6821": 445 | /***/ (function(module, exports, __webpack_require__) { 446 | 447 | // to indexed object, toObject with fallback for non-array-like ES3 strings 448 | var IObject = __webpack_require__("626a"); 449 | var defined = __webpack_require__("be13"); 450 | module.exports = function (it) { 451 | return IObject(defined(it)); 452 | }; 453 | 454 | 455 | /***/ }), 456 | 457 | /***/ "69a8": 458 | /***/ (function(module, exports) { 459 | 460 | var hasOwnProperty = {}.hasOwnProperty; 461 | module.exports = function (it, key) { 462 | return hasOwnProperty.call(it, key); 463 | }; 464 | 465 | 466 | /***/ }), 467 | 468 | /***/ "6a99": 469 | /***/ (function(module, exports, __webpack_require__) { 470 | 471 | // 7.1.1 ToPrimitive(input [, PreferredType]) 472 | var isObject = __webpack_require__("d3f4"); 473 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 474 | // and the second argument - flag - preferred type is a string 475 | module.exports = function (it, S) { 476 | if (!isObject(it)) return it; 477 | var fn, val; 478 | if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 479 | if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; 480 | if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 481 | throw TypeError("Can't convert object to primitive value"); 482 | }; 483 | 484 | 485 | /***/ }), 486 | 487 | /***/ "7726": 488 | /***/ (function(module, exports) { 489 | 490 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 491 | var global = module.exports = typeof window != 'undefined' && window.Math == Math 492 | ? window : typeof self != 'undefined' && self.Math == Math ? self 493 | // eslint-disable-next-line no-new-func 494 | : Function('return this')(); 495 | if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 496 | 497 | 498 | /***/ }), 499 | 500 | /***/ "77f1": 501 | /***/ (function(module, exports, __webpack_require__) { 502 | 503 | var toInteger = __webpack_require__("4588"); 504 | var max = Math.max; 505 | var min = Math.min; 506 | module.exports = function (index, length) { 507 | index = toInteger(index); 508 | return index < 0 ? max(index + length, 0) : min(index, length); 509 | }; 510 | 511 | 512 | /***/ }), 513 | 514 | /***/ "79e5": 515 | /***/ (function(module, exports) { 516 | 517 | module.exports = function (exec) { 518 | try { 519 | return !!exec(); 520 | } catch (e) { 521 | return true; 522 | } 523 | }; 524 | 525 | 526 | /***/ }), 527 | 528 | /***/ "7f7f": 529 | /***/ (function(module, exports, __webpack_require__) { 530 | 531 | var dP = __webpack_require__("86cc").f; 532 | var FProto = Function.prototype; 533 | var nameRE = /^\s*function ([^ (]*)/; 534 | var NAME = 'name'; 535 | 536 | // 19.2.4.2 name 537 | NAME in FProto || __webpack_require__("9e1e") && dP(FProto, NAME, { 538 | configurable: true, 539 | get: function () { 540 | try { 541 | return ('' + this).match(nameRE)[1]; 542 | } catch (e) { 543 | return ''; 544 | } 545 | } 546 | }); 547 | 548 | 549 | /***/ }), 550 | 551 | /***/ "8378": 552 | /***/ (function(module, exports) { 553 | 554 | var core = module.exports = { version: '2.6.1' }; 555 | if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 556 | 557 | 558 | /***/ }), 559 | 560 | /***/ "86cc": 561 | /***/ (function(module, exports, __webpack_require__) { 562 | 563 | var anObject = __webpack_require__("cb7c"); 564 | var IE8_DOM_DEFINE = __webpack_require__("c69a"); 565 | var toPrimitive = __webpack_require__("6a99"); 566 | var dP = Object.defineProperty; 567 | 568 | exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) { 569 | anObject(O); 570 | P = toPrimitive(P, true); 571 | anObject(Attributes); 572 | if (IE8_DOM_DEFINE) try { 573 | return dP(O, P, Attributes); 574 | } catch (e) { /* empty */ } 575 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 576 | if ('value' in Attributes) O[P] = Attributes.value; 577 | return O; 578 | }; 579 | 580 | 581 | /***/ }), 582 | 583 | /***/ "8b97": 584 | /***/ (function(module, exports, __webpack_require__) { 585 | 586 | // Works with __proto__ only. Old v8 can't work with null proto objects. 587 | /* eslint-disable no-proto */ 588 | var isObject = __webpack_require__("d3f4"); 589 | var anObject = __webpack_require__("cb7c"); 590 | var check = function (O, proto) { 591 | anObject(O); 592 | if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); 593 | }; 594 | module.exports = { 595 | set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line 596 | function (test, buggy, set) { 597 | try { 598 | set = __webpack_require__("9b43")(Function.call, __webpack_require__("11e9").f(Object.prototype, '__proto__').set, 2); 599 | set(test, []); 600 | buggy = !(test instanceof Array); 601 | } catch (e) { buggy = true; } 602 | return function setPrototypeOf(O, proto) { 603 | check(O, proto); 604 | if (buggy) O.__proto__ = proto; 605 | else set(O, proto); 606 | return O; 607 | }; 608 | }({}, false) : undefined), 609 | check: check 610 | }; 611 | 612 | 613 | /***/ }), 614 | 615 | /***/ "9093": 616 | /***/ (function(module, exports, __webpack_require__) { 617 | 618 | // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) 619 | var $keys = __webpack_require__("ce10"); 620 | var hiddenKeys = __webpack_require__("e11e").concat('length', 'prototype'); 621 | 622 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { 623 | return $keys(O, hiddenKeys); 624 | }; 625 | 626 | 627 | /***/ }), 628 | 629 | /***/ "9b2c": 630 | /***/ (function(module, exports, __webpack_require__) { 631 | 632 | // extracted by mini-css-extract-plugin 633 | 634 | /***/ }), 635 | 636 | /***/ "9b43": 637 | /***/ (function(module, exports, __webpack_require__) { 638 | 639 | // optional / simple context binding 640 | var aFunction = __webpack_require__("d8e8"); 641 | module.exports = function (fn, that, length) { 642 | aFunction(fn); 643 | if (that === undefined) return fn; 644 | switch (length) { 645 | case 1: return function (a) { 646 | return fn.call(that, a); 647 | }; 648 | case 2: return function (a, b) { 649 | return fn.call(that, a, b); 650 | }; 651 | case 3: return function (a, b, c) { 652 | return fn.call(that, a, b, c); 653 | }; 654 | } 655 | return function (/* ...args */) { 656 | return fn.apply(that, arguments); 657 | }; 658 | }; 659 | 660 | 661 | /***/ }), 662 | 663 | /***/ "9def": 664 | /***/ (function(module, exports, __webpack_require__) { 665 | 666 | // 7.1.15 ToLength 667 | var toInteger = __webpack_require__("4588"); 668 | var min = Math.min; 669 | module.exports = function (it) { 670 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 671 | }; 672 | 673 | 674 | /***/ }), 675 | 676 | /***/ "9e1e": 677 | /***/ (function(module, exports, __webpack_require__) { 678 | 679 | // Thank's IE8 for his funny defineProperty 680 | module.exports = !__webpack_require__("79e5")(function () { 681 | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 682 | }); 683 | 684 | 685 | /***/ }), 686 | 687 | /***/ "aa77": 688 | /***/ (function(module, exports, __webpack_require__) { 689 | 690 | var $export = __webpack_require__("5ca1"); 691 | var defined = __webpack_require__("be13"); 692 | var fails = __webpack_require__("79e5"); 693 | var spaces = __webpack_require__("fdef"); 694 | var space = '[' + spaces + ']'; 695 | var non = '\u200b\u0085'; 696 | var ltrim = RegExp('^' + space + space + '*'); 697 | var rtrim = RegExp(space + space + '*$'); 698 | 699 | var exporter = function (KEY, exec, ALIAS) { 700 | var exp = {}; 701 | var FORCE = fails(function () { 702 | return !!spaces[KEY]() || non[KEY]() != non; 703 | }); 704 | var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; 705 | if (ALIAS) exp[ALIAS] = fn; 706 | $export($export.P + $export.F * FORCE, 'String', exp); 707 | }; 708 | 709 | // 1 -> String#trimLeft 710 | // 2 -> String#trimRight 711 | // 3 -> String#trim 712 | var trim = exporter.trim = function (string, TYPE) { 713 | string = String(defined(string)); 714 | if (TYPE & 1) string = string.replace(ltrim, ''); 715 | if (TYPE & 2) string = string.replace(rtrim, ''); 716 | return string; 717 | }; 718 | 719 | module.exports = exporter; 720 | 721 | 722 | /***/ }), 723 | 724 | /***/ "be13": 725 | /***/ (function(module, exports) { 726 | 727 | // 7.2.1 RequireObjectCoercible(argument) 728 | module.exports = function (it) { 729 | if (it == undefined) throw TypeError("Can't call method on " + it); 730 | return it; 731 | }; 732 | 733 | 734 | /***/ }), 735 | 736 | /***/ "c366": 737 | /***/ (function(module, exports, __webpack_require__) { 738 | 739 | // false -> Array#indexOf 740 | // true -> Array#includes 741 | var toIObject = __webpack_require__("6821"); 742 | var toLength = __webpack_require__("9def"); 743 | var toAbsoluteIndex = __webpack_require__("77f1"); 744 | module.exports = function (IS_INCLUDES) { 745 | return function ($this, el, fromIndex) { 746 | var O = toIObject($this); 747 | var length = toLength(O.length); 748 | var index = toAbsoluteIndex(fromIndex, length); 749 | var value; 750 | // Array#includes uses SameValueZero equality algorithm 751 | // eslint-disable-next-line no-self-compare 752 | if (IS_INCLUDES && el != el) while (length > index) { 753 | value = O[index++]; 754 | // eslint-disable-next-line no-self-compare 755 | if (value != value) return true; 756 | // Array#indexOf ignores holes, Array#includes - not 757 | } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 758 | if (O[index] === el) return IS_INCLUDES || index || 0; 759 | } return !IS_INCLUDES && -1; 760 | }; 761 | }; 762 | 763 | 764 | /***/ }), 765 | 766 | /***/ "c5f6": 767 | /***/ (function(module, exports, __webpack_require__) { 768 | 769 | "use strict"; 770 | 771 | var global = __webpack_require__("7726"); 772 | var has = __webpack_require__("69a8"); 773 | var cof = __webpack_require__("2d95"); 774 | var inheritIfRequired = __webpack_require__("5dbc"); 775 | var toPrimitive = __webpack_require__("6a99"); 776 | var fails = __webpack_require__("79e5"); 777 | var gOPN = __webpack_require__("9093").f; 778 | var gOPD = __webpack_require__("11e9").f; 779 | var dP = __webpack_require__("86cc").f; 780 | var $trim = __webpack_require__("aa77").trim; 781 | var NUMBER = 'Number'; 782 | var $Number = global[NUMBER]; 783 | var Base = $Number; 784 | var proto = $Number.prototype; 785 | // Opera ~12 has broken Object#toString 786 | var BROKEN_COF = cof(__webpack_require__("2aeb")(proto)) == NUMBER; 787 | var TRIM = 'trim' in String.prototype; 788 | 789 | // 7.1.3 ToNumber(argument) 790 | var toNumber = function (argument) { 791 | var it = toPrimitive(argument, false); 792 | if (typeof it == 'string' && it.length > 2) { 793 | it = TRIM ? it.trim() : $trim(it, 3); 794 | var first = it.charCodeAt(0); 795 | var third, radix, maxCode; 796 | if (first === 43 || first === 45) { 797 | third = it.charCodeAt(2); 798 | if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix 799 | } else if (first === 48) { 800 | switch (it.charCodeAt(1)) { 801 | case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i 802 | case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i 803 | default: return +it; 804 | } 805 | for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { 806 | code = digits.charCodeAt(i); 807 | // parseInt parses a string to a first unavailable symbol 808 | // but ToNumber should return NaN if a string contains unavailable symbols 809 | if (code < 48 || code > maxCode) return NaN; 810 | } return parseInt(digits, radix); 811 | } 812 | } return +it; 813 | }; 814 | 815 | if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { 816 | $Number = function Number(value) { 817 | var it = arguments.length < 1 ? 0 : value; 818 | var that = this; 819 | return that instanceof $Number 820 | // check on 1..constructor(foo) case 821 | && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER) 822 | ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); 823 | }; 824 | for (var keys = __webpack_require__("9e1e") ? gOPN(Base) : ( 825 | // ES3: 826 | 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + 827 | // ES6 (in case, if modules with ES6 Number statics required before): 828 | 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + 829 | 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' 830 | ).split(','), j = 0, key; keys.length > j; j++) { 831 | if (has(Base, key = keys[j]) && !has($Number, key)) { 832 | dP($Number, key, gOPD(Base, key)); 833 | } 834 | } 835 | $Number.prototype = proto; 836 | proto.constructor = $Number; 837 | __webpack_require__("2aba")(global, NUMBER, $Number); 838 | } 839 | 840 | 841 | /***/ }), 842 | 843 | /***/ "c69a": 844 | /***/ (function(module, exports, __webpack_require__) { 845 | 846 | module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () { 847 | return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7; 848 | }); 849 | 850 | 851 | /***/ }), 852 | 853 | /***/ "ca5a": 854 | /***/ (function(module, exports) { 855 | 856 | var id = 0; 857 | var px = Math.random(); 858 | module.exports = function (key) { 859 | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 860 | }; 861 | 862 | 863 | /***/ }), 864 | 865 | /***/ "ca66": 866 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 867 | 868 | "use strict"; 869 | /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_item_vue_vue_type_style_index_0_id_7c28c452_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("327d"); 870 | /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_item_vue_vue_type_style_index_0_id_7c28c452_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_item_vue_vue_type_style_index_0_id_7c28c452_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__); 871 | /* unused harmony reexport * */ 872 | /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_item_vue_vue_type_style_index_0_id_7c28c452_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); 873 | 874 | /***/ }), 875 | 876 | /***/ "cb7c": 877 | /***/ (function(module, exports, __webpack_require__) { 878 | 879 | var isObject = __webpack_require__("d3f4"); 880 | module.exports = function (it) { 881 | if (!isObject(it)) throw TypeError(it + ' is not an object!'); 882 | return it; 883 | }; 884 | 885 | 886 | /***/ }), 887 | 888 | /***/ "ce10": 889 | /***/ (function(module, exports, __webpack_require__) { 890 | 891 | var has = __webpack_require__("69a8"); 892 | var toIObject = __webpack_require__("6821"); 893 | var arrayIndexOf = __webpack_require__("c366")(false); 894 | var IE_PROTO = __webpack_require__("613b")('IE_PROTO'); 895 | 896 | module.exports = function (object, names) { 897 | var O = toIObject(object); 898 | var i = 0; 899 | var result = []; 900 | var key; 901 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 902 | // Don't enum bug & hidden keys 903 | while (names.length > i) if (has(O, key = names[i++])) { 904 | ~arrayIndexOf(result, key) || result.push(key); 905 | } 906 | return result; 907 | }; 908 | 909 | 910 | /***/ }), 911 | 912 | /***/ "d3f4": 913 | /***/ (function(module, exports) { 914 | 915 | module.exports = function (it) { 916 | return typeof it === 'object' ? it !== null : typeof it === 'function'; 917 | }; 918 | 919 | 920 | /***/ }), 921 | 922 | /***/ "d8e8": 923 | /***/ (function(module, exports) { 924 | 925 | module.exports = function (it) { 926 | if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 927 | return it; 928 | }; 929 | 930 | 931 | /***/ }), 932 | 933 | /***/ "e11e": 934 | /***/ (function(module, exports) { 935 | 936 | // IE 8- don't enum bug keys 937 | module.exports = ( 938 | 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 939 | ).split(','); 940 | 941 | 942 | /***/ }), 943 | 944 | /***/ "e2ec": 945 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 946 | 947 | "use strict"; 948 | /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9b2c"); 949 | /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__); 950 | /* unused harmony reexport * */ 951 | /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swiper_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); 952 | 953 | /***/ }), 954 | 955 | /***/ "fab2": 956 | /***/ (function(module, exports, __webpack_require__) { 957 | 958 | var document = __webpack_require__("7726").document; 959 | module.exports = document && document.documentElement; 960 | 961 | 962 | /***/ }), 963 | 964 | /***/ "fb15": 965 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 966 | 967 | "use strict"; 968 | __webpack_require__.r(__webpack_exports__); 969 | 970 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js 971 | // This file is imported into lib/wc client bundles. 972 | 973 | if (typeof window !== 'undefined') { 974 | var i 975 | if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) { 976 | __webpack_require__.p = i[1] // eslint-disable-line 977 | } 978 | } 979 | 980 | // Indicate to webpack that this file can be concatenated 981 | /* harmony default export */ var setPublicPath = (null); 982 | 983 | // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.function.name.js 984 | var es6_function_name = __webpack_require__("7f7f"); 985 | 986 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"ca0e2238-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/swiper.vue?vue&type=template&id=40e726dc& 987 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"swiperContainer",staticClass:"active-swiper-container",style:({ width: _vm.clientW + 'px', height: _vm.clientH + 'px' }),on:{"click":_vm.swipeClick}},[_c('div',{ref:"sliderWrapper",staticClass:"swiper-wrapper",style:({ 988 | transform: ("translate3d(" + _vm.transX + "px, 0, 0)"), 989 | transition: _vm.isTransToX ? ("transform " + _vm.duration + "ms cubic-bezier(0, 0, 0.25, 1)") : '' 990 | }),on:{"touchstart":_vm.touchstartFn,"touchmove":_vm.touchmoveFn,"touchend":_vm.touchendFn,"transitionend":_vm.transitionendFn}},[(_vm.urlList)?_vm._l((_vm.currentList),function(item){return _c('div',{key:item._id,staticClass:"img-box",style:({ 991 | backgroundImage: ("url(" + (item.url) + ")"), 992 | backgroundSize: _vm.backgroundSize 993 | })})}):[_c(_vm.firstSwiperItem,{tag:"component"}),_vm._t("default"),_c(_vm.lastSwiperItem,{tag:"component"})]],2),(_vm.showCounter && _vm.swiperItemCount > 1)?_c('span',{staticClass:"swiper-pagination",style:(_vm.counterStyle)},[_vm._v("\n "+_vm._s(_vm.activeIndex)+"/"+_vm._s(_vm.swiperItemCount - 2)+"\n ")]):_vm._e(),_vm._t("extra")],2)} 994 | var staticRenderFns = [] 995 | 996 | 997 | // CONCATENATED MODULE: ./src/swiper.vue?vue&type=template&id=40e726dc& 998 | 999 | // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js 1000 | var es6_number_constructor = __webpack_require__("c5f6"); 1001 | 1002 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/swiper.vue?vue&type=script&lang=js& 1003 | 1004 | // 1005 | // 1006 | // 1007 | // 1008 | // 1009 | // 1010 | // 1011 | // 1012 | // 1013 | // 1014 | // 1015 | // 1016 | // 1017 | // 1018 | // 1019 | // 1020 | // 1021 | // 1022 | // 1023 | // 1024 | // 1025 | // 1026 | // 1027 | // 1028 | // 1029 | // 1030 | // 1031 | // 1032 | // 1033 | // 1034 | // 1035 | // 1036 | // 1037 | // 1038 | // 1039 | // 滚动容器的宽度 1040 | var clientW = 375; 1041 | var criticalWidth = 0; // 用户标识当前的滑动状态 1042 | 1043 | var touchStatus = 0; // 单指操作 - 滑动坐标相关 1044 | // touchStart 点击坐标 1045 | 1046 | var stStartX = 0; // 上个周期中的tranlateX 坐标 1047 | 1048 | var stPrevX = 0; // 当前是否需要自动滑动到下一张图片 1049 | 1050 | var stAutoNext = 0; // 滑动的方向,-1 为右滑,1 为左滑 1051 | 1052 | var stDirectionFlag = 0; // 当前正在预览的图片次序,用于位置计算 1053 | 1054 | var activeIndex = 0; // sliderWrapper上的触摸点数量 1055 | 1056 | var touchCount = 0; // 用于取消自动轮播(如果指定了的话) 1057 | 1058 | var _autoPlayTimer = null; // getBoundingClientRect的兼容性 1059 | 1060 | var isSupportGetBoundingClientRect = typeof document.documentElement.getBoundingClientRect === 'function'; 1061 | /* harmony default export */ var swipervue_type_script_lang_js_ = ({ 1062 | name: 'Swiper', 1063 | props: { 1064 | urlList: { 1065 | type: Array, 1066 | required: false, 1067 | default: null 1068 | }, 1069 | // 图片以何种缩放的形式铺在 滑动容器框内,只有当指定了 urlList 时才有效 1070 | backgroundSize: { 1071 | type: String, 1072 | required: false, 1073 | default: 'cover' 1074 | }, 1075 | // swiperContainer容器的宽度 1076 | clientW: { 1077 | type: Number, 1078 | required: false, 1079 | default: document.documentElement.clientWidth 1080 | }, 1081 | // swiperContainer容器的高度 1082 | clientH: { 1083 | type: Number, 1084 | required: false, 1085 | default: 200 1086 | }, 1087 | // 是否需要默认的计数器 1088 | showCounter: { 1089 | type: Boolean, 1090 | required: false, 1091 | default: false 1092 | }, 1093 | // 自定义默认计数器的样式 1094 | counterStyle: { 1095 | type: Object, 1096 | required: false, 1097 | default: null 1098 | }, 1099 | // 起始index 1100 | startIndex: { 1101 | type: Number, 1102 | required: false, 1103 | default: 0 1104 | }, 1105 | // 临界点的比例值,当超过这个临界点,则需要自动滑动到下一张图片 1106 | criticalValue: { 1107 | type: Number, 1108 | required: false, 1109 | default: 1 / 3 1110 | }, 1111 | // 如果指定了此参数,并且值 >= 0,则将会将此值当做 delay的时间(单位为 ms)进行自动轮播; 1112 | // 不指定或指定值小于 0 则不自动轮播 1113 | // 如果想要指定此值,一般建议设置为 3000 1114 | autoPlayDelay: { 1115 | type: Number, 1116 | required: false, 1117 | default: null 1118 | }, 1119 | // 自动滚动到稳定位置所需的时间,单位是秒(ms) 1120 | duration: { 1121 | type: Number, 1122 | required: false, 1123 | default: 350, 1124 | validator: function validator(value) { 1125 | return value >= 0; 1126 | } 1127 | }, 1128 | // 如果只有一个 swipeItem,是否允许拖动 1129 | noDragWhenSingle: { 1130 | type: Boolean, 1131 | required: false, 1132 | default: true 1133 | } 1134 | }, 1135 | data: function data() { 1136 | return { 1137 | // 当前显示在DOM中的图片列表 1138 | currentList: [], 1139 | // 单指滑动的位移 1140 | transX: 0, 1141 | // 当前正在预览的图片次序,用于给模板渲染计数器使用 1142 | activeIndex: 0, 1143 | // 正在自动滚动到固定位置的过程中 1144 | isTransToX: false, 1145 | firstSwiperItem: null, 1146 | lastSwiperItem: null, 1147 | swiperItemCount: 0 1148 | }; 1149 | }, 1150 | created: function created() { 1151 | var _this = this; 1152 | 1153 | if (this.urlList) { 1154 | this.currentList = this.urlList.length > 1 ? this.urlList.slice(-1).concat(this.urlList, this.urlList.slice(0, 1)).map(function (url, index) { 1155 | return { 1156 | url: url, 1157 | _id: index 1158 | }; 1159 | }) : this.urlList.map(function (url, index) { 1160 | return { 1161 | url: url, 1162 | _id: index 1163 | }; 1164 | }); 1165 | this.swiperItemCount = this.currentList.length; 1166 | } else { 1167 | var slots = this.$slots.default || []; 1168 | this.swiperItemCount = slots.length; 1169 | 1170 | if (slots.length > 1) { 1171 | // 加上首尾多出来的两个 1172 | this.swiperItemCount = slots.length + 2; 1173 | this.updateChild(slots); 1174 | } 1175 | } 1176 | 1177 | clientW = this.clientW; 1178 | criticalWidth = clientW * this.criticalValue; 1179 | 1180 | if (this.swiperItemCount > 1) { 1181 | // 因为首尾都多加了一个swiperItem元素,所以顺延一位 1182 | this.activeIndex = activeIndex = this.getActiveIndex(this.startIndex + 1); 1183 | this.transX = stPrevX = -clientW * activeIndex; 1184 | } // 自动轮播 1185 | 1186 | 1187 | clearTimeout(_autoPlayTimer); 1188 | _autoPlayTimer = setTimeout(function () { 1189 | _this.autoPlayFn(); 1190 | }, 14); 1191 | }, 1192 | destroy: function destroy() { 1193 | clearTimeout(_autoPlayTimer); 1194 | }, 1195 | watch: { 1196 | autoPlayDelay: function autoPlayDelay() { 1197 | // 修改了 autoPlayDelay 的值,需要重新触发事件 1198 | this.autoPlayFn(); 1199 | } 1200 | }, 1201 | methods: { 1202 | touchstartFn: function touchstartFn(e) { 1203 | // 取消还没结束的自动轮播(如果指定了轮播的话) 1204 | clearTimeout(_autoPlayTimer); 1205 | if (this.ignoreTouch()) return; 1206 | 1207 | if (this.isTransToX) { 1208 | if (!isSupportGetBoundingClientRect) { 1209 | return touchStatus = 0; 1210 | } 1211 | 1212 | this.isTransToX = false; 1213 | this.transX = stPrevX = this.$refs.sliderWrapper.getBoundingClientRect().left - this.$refs.swiperContainer.getBoundingClientRect().left; 1214 | } 1215 | 1216 | touchStatus = 1; 1217 | touchCount = e.touches.length; 1218 | this.singleTouchStartFn(e); 1219 | }, 1220 | touchmoveFn: function touchmoveFn(e) { 1221 | e.preventDefault(); 1222 | if (this.ignoreTouch() || touchStatus !== 1) return; 1223 | 1224 | if (this.swiperItemCount !== 1) { 1225 | this.singleTouchMoveFn(e); 1226 | } else { 1227 | // swiperItem 数量为1 1228 | if (!this.noDragWhenSingle) { 1229 | // 允许拖动 1230 | this.transX = (e.touches[touchCount - 1].clientX - stStartX) * 0.1 + stPrevX; 1231 | } 1232 | } 1233 | }, 1234 | touchendFn: function touchendFn(e) { 1235 | touchCount = e.touches.length; 1236 | if (this.ignoreTouch() || touchStatus !== 1) return; 1237 | 1238 | if (this.swiperItemCount !== 1 || !this.noDragWhenSingle) { 1239 | if (touchCount !== 0) { 1240 | stStartX = e.touches[touchCount - 1].clientX; 1241 | stPrevX = this.transX; 1242 | return; 1243 | } 1244 | 1245 | this.singleTouchEndFn(e); 1246 | } 1247 | }, 1248 | // 单指滑动行为 - start 1249 | singleTouchStartFn: function singleTouchStartFn(e) { 1250 | stStartX = e.touches[touchCount - 1].clientX; 1251 | 1252 | if (touchCount > 1) { 1253 | stPrevX = this.transX; 1254 | } 1255 | }, 1256 | // 单指滑动行为 - move 1257 | singleTouchMoveFn: function singleTouchMoveFn(e) { 1258 | var transX = e.touches[touchCount - 1].clientX - stStartX + stPrevX; 1259 | 1260 | if (transX > 0) { 1261 | // 滑动到到第一个了 1262 | stStartX = e.touches[touchCount - 1].clientX; // 矫正到正确位置 1263 | 1264 | stPrevX = transX = -clientW * (this.swiperItemCount - 2); 1265 | } else if (transX < -clientW * (this.swiperItemCount - 1)) { 1266 | // 滑动到最后一个了 1267 | stStartX = e.touches[touchCount - 1].clientX; // 矫正到正确位置 1268 | 1269 | stPrevX = transX = -clientW; 1270 | } 1271 | 1272 | this.transX = transX; 1273 | }, 1274 | // 单指滑动行为 - end 1275 | singleTouchEndFn: function singleTouchEndFn() { 1276 | var toX = this.swiperItemCount === 1 ? 0 : this.getSingleTouchEndMultipleChildToX(); 1277 | this.gotoX(toX); 1278 | }, 1279 | // 单指滑动行为 - end,swiper-item数量大于 1 的情况 1280 | getSingleTouchEndMultipleChildToX: function getSingleTouchEndMultipleChildToX() { 1281 | var toX = 0; 1282 | var diffX = this.transX + clientW * activeIndex; 1283 | var wholeBlock = Math.floor(diffX / clientW); // 如果连续滑过超过一个 swiperItem 块,当做一个来处理 1284 | 1285 | if (Math.abs(diffX) > clientW) { 1286 | activeIndex = Math.ceil(-this.transX / clientW); 1287 | diffX = diffX - clientW * wholeBlock; 1288 | } // diffX 大于0 说明是右滑,小于0 则是左滑 1289 | 1290 | 1291 | if (diffX > 0) { 1292 | stDirectionFlag = -1; 1293 | stAutoNext = diffX > criticalWidth; 1294 | toX = stAutoNext ? -clientW * (activeIndex - 1) : -clientW * activeIndex; 1295 | } else if (diffX < 0) { 1296 | stDirectionFlag = 1; 1297 | stAutoNext = Math.abs(diffX) > criticalWidth; 1298 | toX = stAutoNext ? -clientW * (activeIndex + 1) : -clientW * activeIndex; 1299 | } else { 1300 | stDirectionFlag = 0; 1301 | stAutoNext = false; 1302 | toX = -clientW * activeIndex; 1303 | } 1304 | 1305 | this.activeIndex = activeIndex = this.getActiveIndex(activeIndex + (stAutoNext ? stDirectionFlag : 0)); 1306 | return toX; 1307 | }, 1308 | transEndFn: function transEndFn() { 1309 | var _this2 = this; 1310 | 1311 | this.activeIndex = activeIndex = this.getActiveIndex(activeIndex); 1312 | this.transX = stPrevX = -clientW * activeIndex; 1313 | this.$emit('change', activeIndex); // setTimeout是为了避免当 autoPlayDelay值被指定为 0 时无限轮播出现问题 1314 | // 16.7 是 1000/60 的大约值 1315 | 1316 | clearTimeout(_autoPlayTimer); 1317 | _autoPlayTimer = setTimeout(function () { 1318 | _this2.autoPlayFn(); 1319 | }, 16.7); 1320 | }, 1321 | transitionendFn: function transitionendFn(e) { 1322 | if (e.target.className === 'swiper-wrapper') { 1323 | if (this.isTransToX) { 1324 | this.isTransToX = false; // 单指操作 - 自动滑动结束 1325 | 1326 | this.transEndFn(); 1327 | } 1328 | } 1329 | }, 1330 | // 首尾多添加两个swiperItem,也就是swiperItem的元素数量比传进来的多两个 1331 | updateChild: function updateChild(slots) { 1332 | this.firstSwiperItem = { 1333 | render: function render(h) { 1334 | return h('div', { 1335 | staticClass: 'swiper-item-box' 1336 | }, slots.slice(-1)); 1337 | } 1338 | }; 1339 | this.lastSwiperItem = { 1340 | render: function render(h) { 1341 | return h('div', { 1342 | staticClass: 'swiper-item-box' 1343 | }, slots.slice(0, 1)); 1344 | } 1345 | }; 1346 | }, 1347 | getActiveIndex: function getActiveIndex(index) { 1348 | if (this.swiperItemCount === 1) return 0; 1349 | if (index >= this.swiperItemCount - 1) return 1; 1350 | if (index <= 0) return this.swiperItemCount - 2; 1351 | return index; 1352 | }, 1353 | autoPlayFn: function autoPlayFn() { 1354 | var _this3 = this; 1355 | 1356 | // 判断是否满足自动轮播的条件 1357 | if (this.swiperItemCount > 1 && typeof this.autoPlayDelay === 'number' && this.autoPlayDelay >= 0 && touchCount === 0 && this.transX % clientW === 0) { 1358 | clearTimeout(_autoPlayTimer); 1359 | _autoPlayTimer = setTimeout(function () { 1360 | activeIndex = activeIndex + 1; 1361 | _this3.transX = -clientW * activeIndex; 1362 | _this3.isTransToX = true; 1363 | 1364 | _this3.correctDurationAct(); 1365 | }, this.autoPlayDelay); 1366 | } 1367 | }, 1368 | // 如果没有传入 swiper-item子元素,或者只传入了一个子元素并且 noDragWhenSingle为 true, 1369 | // 则不对 touch 事件进行滑动响应 1370 | ignoreTouch: function ignoreTouch() { 1371 | return this.swiperItemCount === 0 || this.swiperItemCount === 1 && this.noDragWhenSingle; 1372 | }, 1373 | // duration不正确或为0,导致不会触发transitionend函数,所以需要直接调用 transEndFn 1374 | correctDurationAct: function correctDurationAct() { 1375 | if (typeof this.duration !== 'number' || this.duration <= 0) { 1376 | this.isTransToX = false; 1377 | this.transEndFn(); 1378 | } 1379 | }, 1380 | // 组件的点击事件 1381 | swipeClick: function swipeClick() { 1382 | this.$emit('click', this.activeIndex - 1); 1383 | }, 1384 | gotoX: function gotoX(toX) { 1385 | if (this.transX === toX) { 1386 | // 已经手动滑到正确的位置 1387 | this.transEndFn(); 1388 | } else { 1389 | // 自由滚动到合适的位置 1390 | this.isTransToX = true; 1391 | this.transX = toX; 1392 | this.correctDurationAct(); 1393 | } 1394 | }, 1395 | goto: function goto(index) { 1396 | clearTimeout(_autoPlayTimer); 1397 | activeIndex = index % (this.swiperItemCount - 2) + 1; 1398 | 1399 | if (this.activeIndex !== activeIndex) { 1400 | this.activeIndex = activeIndex; 1401 | this.gotoX(-clientW * activeIndex); 1402 | } else { 1403 | this.autoPlayFn(); 1404 | } 1405 | } 1406 | } 1407 | }); 1408 | // CONCATENATED MODULE: ./src/swiper.vue?vue&type=script&lang=js& 1409 | /* harmony default export */ var src_swipervue_type_script_lang_js_ = (swipervue_type_script_lang_js_); 1410 | // EXTERNAL MODULE: ./src/swiper.vue?vue&type=style&index=0&lang=css& 1411 | var swipervue_type_style_index_0_lang_css_ = __webpack_require__("e2ec"); 1412 | 1413 | // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js 1414 | /* globals __VUE_SSR_CONTEXT__ */ 1415 | 1416 | // IMPORTANT: Do NOT use ES2015 features in this file (except for modules). 1417 | // This module is a runtime utility for cleaner component module output and will 1418 | // be included in the final webpack user bundle. 1419 | 1420 | function normalizeComponent ( 1421 | scriptExports, 1422 | render, 1423 | staticRenderFns, 1424 | functionalTemplate, 1425 | injectStyles, 1426 | scopeId, 1427 | moduleIdentifier, /* server only */ 1428 | shadowMode /* vue-cli only */ 1429 | ) { 1430 | // Vue.extend constructor export interop 1431 | var options = typeof scriptExports === 'function' 1432 | ? scriptExports.options 1433 | : scriptExports 1434 | 1435 | // render functions 1436 | if (render) { 1437 | options.render = render 1438 | options.staticRenderFns = staticRenderFns 1439 | options._compiled = true 1440 | } 1441 | 1442 | // functional template 1443 | if (functionalTemplate) { 1444 | options.functional = true 1445 | } 1446 | 1447 | // scopedId 1448 | if (scopeId) { 1449 | options._scopeId = 'data-v-' + scopeId 1450 | } 1451 | 1452 | var hook 1453 | if (moduleIdentifier) { // server build 1454 | hook = function (context) { 1455 | // 2.3 injection 1456 | context = 1457 | context || // cached call 1458 | (this.$vnode && this.$vnode.ssrContext) || // stateful 1459 | (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional 1460 | // 2.2 with runInNewContext: true 1461 | if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { 1462 | context = __VUE_SSR_CONTEXT__ 1463 | } 1464 | // inject component styles 1465 | if (injectStyles) { 1466 | injectStyles.call(this, context) 1467 | } 1468 | // register component module identifier for async chunk inferrence 1469 | if (context && context._registeredComponents) { 1470 | context._registeredComponents.add(moduleIdentifier) 1471 | } 1472 | } 1473 | // used by ssr in case component is cached and beforeCreate 1474 | // never gets called 1475 | options._ssrRegister = hook 1476 | } else if (injectStyles) { 1477 | hook = shadowMode 1478 | ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } 1479 | : injectStyles 1480 | } 1481 | 1482 | if (hook) { 1483 | if (options.functional) { 1484 | // for template-only hot-reload because in that case the render fn doesn't 1485 | // go through the normalizer 1486 | options._injectStyles = hook 1487 | // register for functioal component in vue file 1488 | var originalRender = options.render 1489 | options.render = function renderWithStyleInjection (h, context) { 1490 | hook.call(context) 1491 | return originalRender(h, context) 1492 | } 1493 | } else { 1494 | // inject component registration as beforeCreate hook 1495 | var existing = options.beforeCreate 1496 | options.beforeCreate = existing 1497 | ? [].concat(existing, hook) 1498 | : [hook] 1499 | } 1500 | } 1501 | 1502 | return { 1503 | exports: scriptExports, 1504 | options: options 1505 | } 1506 | } 1507 | 1508 | // CONCATENATED MODULE: ./src/swiper.vue 1509 | 1510 | 1511 | 1512 | 1513 | 1514 | 1515 | /* normalize component */ 1516 | 1517 | var component = normalizeComponent( 1518 | src_swipervue_type_script_lang_js_, 1519 | render, 1520 | staticRenderFns, 1521 | false, 1522 | null, 1523 | null, 1524 | null 1525 | 1526 | ) 1527 | 1528 | component.options.__file = "swiper.vue" 1529 | /* harmony default export */ var swiper = (component.exports); 1530 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"ca0e2238-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/swiper-item.vue?vue&type=template&id=7c28c452&scoped=true& 1531 | var swiper_itemvue_type_template_id_7c28c452_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"swiper-item"},[_vm._t("default")],2)} 1532 | var swiper_itemvue_type_template_id_7c28c452_scoped_true_staticRenderFns = [] 1533 | 1534 | 1535 | // CONCATENATED MODULE: ./src/swiper-item.vue?vue&type=template&id=7c28c452&scoped=true& 1536 | 1537 | // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/swiper-item.vue?vue&type=script&lang=js& 1538 | // 1539 | // 1540 | // 1541 | // 1542 | // 1543 | // 1544 | /* harmony default export */ var swiper_itemvue_type_script_lang_js_ = ({ 1545 | name: 'SwiperItem' 1546 | }); 1547 | // CONCATENATED MODULE: ./src/swiper-item.vue?vue&type=script&lang=js& 1548 | /* harmony default export */ var src_swiper_itemvue_type_script_lang_js_ = (swiper_itemvue_type_script_lang_js_); 1549 | // EXTERNAL MODULE: ./src/swiper-item.vue?vue&type=style&index=0&id=7c28c452&scoped=true&lang=css& 1550 | var swiper_itemvue_type_style_index_0_id_7c28c452_scoped_true_lang_css_ = __webpack_require__("ca66"); 1551 | 1552 | // CONCATENATED MODULE: ./src/swiper-item.vue 1553 | 1554 | 1555 | 1556 | 1557 | 1558 | 1559 | /* normalize component */ 1560 | 1561 | var swiper_item_component = normalizeComponent( 1562 | src_swiper_itemvue_type_script_lang_js_, 1563 | swiper_itemvue_type_template_id_7c28c452_scoped_true_render, 1564 | swiper_itemvue_type_template_id_7c28c452_scoped_true_staticRenderFns, 1565 | false, 1566 | null, 1567 | "7c28c452", 1568 | null 1569 | 1570 | ) 1571 | 1572 | swiper_item_component.options.__file = "swiper-item.vue" 1573 | /* harmony default export */ var swiper_item = (swiper_item_component.exports); 1574 | // CONCATENATED MODULE: ./src/index.js 1575 | 1576 | 1577 | 1578 | 1579 | var src_install = function install(Vue) { 1580 | Vue.component(swiper.name, swiper); 1581 | Vue.component(swiper_item.name, swiper_item); 1582 | }; 1583 | 1584 | var VueActiveSwiper = { 1585 | Swiper: swiper, 1586 | SwiperItem: swiper_item, 1587 | install: src_install 1588 | }; 1589 | /* harmony default export */ var src = (VueActiveSwiper); 1590 | 1591 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js 1592 | /* concated harmony reexport Swiper */__webpack_require__.d(__webpack_exports__, "Swiper", function() { return swiper; }); 1593 | /* concated harmony reexport SwiperItem */__webpack_require__.d(__webpack_exports__, "SwiperItem", function() { return swiper_item; }); 1594 | /* concated harmony reexport install */__webpack_require__.d(__webpack_exports__, "install", function() { return src_install; }); 1595 | 1596 | 1597 | /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src); 1598 | 1599 | 1600 | 1601 | /***/ }), 1602 | 1603 | /***/ "fdef": 1604 | /***/ (function(module, exports) { 1605 | 1606 | module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + 1607 | '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; 1608 | 1609 | 1610 | /***/ }) 1611 | 1612 | /******/ }); 1613 | }); 1614 | //# sourceMappingURL=VueActiveSwiper.umd.js.map -------------------------------------------------------------------------------- /dist/VueActiveSwiper.umd.min.js: -------------------------------------------------------------------------------- 1 | (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["VueActiveSwiper"]=e():t["VueActiveSwiper"]=e()})("undefined"!==typeof self?self:this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},"11e9":function(t,e,n){var r=n("52a7"),i=n("4630"),o=n("6821"),u=n("6a99"),c=n("69a8"),s=n("c69a"),a=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?a:function(t,e){if(t=o(t),e=u(e,!0),s)try{return a(t,e)}catch(n){}if(c(t,e))return i(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);var n,u=o(e),c=u.length,s=0;while(c>s)r.f(t,n=u[s++],e[n]);return t}},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),u=n("ca5a")("src"),c="toString",s=Function[c],a=(""+s).split(c);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,c){var s="function"==typeof n;s&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(s&&(o(n,u)||i(n,u,t[e]?""+t[e]:a.join(String(e)))),t===r?t[e]=n:c?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,c,function(){return"function"==typeof this&&this[u]||s.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),u=n("613b")("IE_PROTO"),c=function(){},s="prototype",a=function(){var t,e=n("230e")("iframe"),r=o.length,i="<",u=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+u+"document.F=Object"+i+"/script"+u),t.close(),a=t.F;while(r--)delete a[s][o[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c[s]=r(t),n=new c,c[s]=null,n[u]=t):n=a(),void 0===e?n:i(n,e)}},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"327d":function(t,e,n){},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",u=i[o]||(i[o]={});(t.exports=function(t,e){return u[t]||(u[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),u=n("2aba"),c=n("9b43"),s="prototype",a=function(t,e,n){var f,l,p,h,d=t&a.F,v=t&a.G,m=t&a.S,y=t&a.P,b=t&a.B,g=v?r:m?r[e]||(r[e]={}):(r[e]||{})[s],w=v?i:i[e]||(i[e]={}),_=w[s]||(w[s]={});for(f in v&&(n=e),n)l=!d&&g&&void 0!==g[f],p=(l?g:n)[f],h=b&&l?c(p,r):y&&"function"==typeof p?c(Function.call,p):p,g&&u(g,f,p,t&a.U),w[f]!=p&&o(w,f,h),y&&_[f]!=p&&(_[f]=p)};r.core=i,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},"5dbc":function(t,e,n){var r=n("d3f4"),i=n("8b97").set;t.exports=function(t,e,n){var o,u=e.constructor;return u!==n&&"function"==typeof u&&(o=u.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7f7f":function(t,e,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,u="name";u in i||n("9e1e")&&r(i,u,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8378:function(t,e){var n=t.exports={version:"2.6.1"};"number"==typeof __e&&(__e=n)},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),u=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return u(t,e,n)}catch(c){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var r=n("d3f4"),i=n("cb7c"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},9093:function(t,e,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"9b2c":function(t,e,n){},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},aa77:function(t,e,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),u=n("fdef"),c="["+u+"]",s="​…",a=RegExp("^"+c+c+"*"),f=RegExp(c+c+"*$"),l=function(t,e,n){var i={},c=o(function(){return!!u[t]()||s[t]()!=s}),a=i[t]=c?e(p):u[t];n&&(i[n]=a),r(r.P+r.F*c,"String",i)},p=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(a,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,u){var c,s=r(e),a=i(s.length),f=o(u,a);if(t&&n!=n){while(a>f)if(c=s[f++],c!=c)return!0}else for(;a>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},c5f6:function(t,e,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),u=n("5dbc"),c=n("6a99"),s=n("79e5"),a=n("9093").f,f=n("11e9").f,l=n("86cc").f,p=n("aa77").trim,h="Number",d=r[h],v=d,m=d.prototype,y=o(n("2aeb")(m))==h,b="trim"in String.prototype,g=function(t){var e=c(t,!1);if("string"==typeof e&&e.length>2){e=b?e.trim():p(e,3);var n,r,i,o=e.charCodeAt(0);if(43===o||45===o){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var u,s=e.slice(2),a=0,f=s.length;ai)return NaN;return parseInt(s,r)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(y?s(function(){m.valueOf.call(n)}):o(n)!=h)?u(new v(g(e)),n,d):g(e)};for(var w,_=n("9e1e")?a(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),I=0;_.length>I;I++)i(v,w=_[I])&&!i(d,w)&&l(d,w,f(v,w));d.prototype=m,m.constructor=d,n("2aba")(r,h,d)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},ca66:function(t,e,n){"use strict";var r=n("327d"),i=n.n(r);i.a},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),u=n("613b")("IE_PROTO");t.exports=function(t,e){var n,c=i(t),s=0,a=[];for(n in c)n!=u&&r(c,n)&&a.push(n);while(e.length>s)r(c,n=e[s++])&&(~o(a,n)||a.push(n));return a}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e2ec:function(t,e,n){"use strict";var r=n("9b2c"),i=n.n(r);i.a},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("7f7f");var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"swiperContainer",staticClass:"active-swiper-container",style:{width:t.clientW+"px",height:t.clientH+"px"},on:{click:t.swipeClick}},[n("div",{ref:"sliderWrapper",staticClass:"swiper-wrapper",style:{transform:"translate3d("+t.transX+"px, 0, 0)",transition:t.isTransToX?"transform "+t.duration+"ms cubic-bezier(0, 0, 0.25, 1)":""},on:{touchstart:t.touchstartFn,touchmove:t.touchmoveFn,touchend:t.touchendFn,transitionend:t.transitionendFn}},[t.urlList?t._l(t.currentList,function(e){return n("div",{key:e._id,staticClass:"img-box",style:{backgroundImage:"url("+e.url+")",backgroundSize:t.backgroundSize}})}):[n(t.firstSwiperItem,{tag:"component"}),t._t("default"),n(t.lastSwiperItem,{tag:"component"})]],2),t.showCounter&&t.swiperItemCount>1?n("span",{staticClass:"swiper-pagination",style:t.counterStyle},[t._v("\n "+t._s(t.activeIndex)+"/"+t._s(t.swiperItemCount-2)+"\n ")]):t._e(),t._t("extra")],2)},o=[],u=(n("c5f6"),375),c=0,s=0,a=0,f=0,l=0,p=0,h=0,d=0,v=null,m="function"===typeof document.documentElement.getBoundingClientRect,y={name:"Swiper",props:{urlList:{type:Array,required:!1,default:null},backgroundSize:{type:String,required:!1,default:"cover"},clientW:{type:Number,required:!1,default:document.documentElement.clientWidth},clientH:{type:Number,required:!1,default:200},showCounter:{type:Boolean,required:!1,default:!1},counterStyle:{type:Object,required:!1,default:null},startIndex:{type:Number,required:!1,default:0},criticalValue:{type:Number,required:!1,default:1/3},autoPlayDelay:{type:Number,required:!1,default:null},duration:{type:Number,required:!1,default:350,validator:function(t){return t>=0}},noDragWhenSingle:{type:Boolean,required:!1,default:!0}},data:function(){return{currentList:[],transX:0,activeIndex:0,isTransToX:!1,firstSwiperItem:null,lastSwiperItem:null,swiperItemCount:0}},created:function(){var t=this;if(this.urlList)this.currentList=this.urlList.length>1?this.urlList.slice(-1).concat(this.urlList,this.urlList.slice(0,1)).map(function(t,e){return{url:t,_id:e}}):this.urlList.map(function(t,e){return{url:t,_id:e}}),this.swiperItemCount=this.currentList.length;else{var e=this.$slots.default||[];this.swiperItemCount=e.length,e.length>1&&(this.swiperItemCount=e.length+2,this.updateChild(e))}u=this.clientW,c=u*this.criticalValue,this.swiperItemCount>1&&(this.activeIndex=h=this.getActiveIndex(this.startIndex+1),this.transX=f=-u*h),clearTimeout(v),v=setTimeout(function(){t.autoPlayFn()},14)},destroy:function(){clearTimeout(v)},watch:{autoPlayDelay:function(){this.autoPlayFn()}},methods:{touchstartFn:function(t){if(clearTimeout(v),!this.ignoreTouch()){if(this.isTransToX){if(!m)return s=0;this.isTransToX=!1,this.transX=f=this.$refs.sliderWrapper.getBoundingClientRect().left-this.$refs.swiperContainer.getBoundingClientRect().left}s=1,d=t.touches.length,this.singleTouchStartFn(t)}},touchmoveFn:function(t){t.preventDefault(),this.ignoreTouch()||1!==s||(1!==this.swiperItemCount?this.singleTouchMoveFn(t):this.noDragWhenSingle||(this.transX=.1*(t.touches[d-1].clientX-a)+f))},touchendFn:function(t){if(d=t.touches.length,!this.ignoreTouch()&&1===s&&(1!==this.swiperItemCount||!this.noDragWhenSingle)){if(0!==d)return a=t.touches[d-1].clientX,void(f=this.transX);this.singleTouchEndFn(t)}},singleTouchStartFn:function(t){a=t.touches[d-1].clientX,d>1&&(f=this.transX)},singleTouchMoveFn:function(t){var e=t.touches[d-1].clientX-a+f;e>0?(a=t.touches[d-1].clientX,f=e=-u*(this.swiperItemCount-2)):e<-u*(this.swiperItemCount-1)&&(a=t.touches[d-1].clientX,f=e=-u),this.transX=e},singleTouchEndFn:function(){var t=1===this.swiperItemCount?0:this.getSingleTouchEndMultipleChildToX();this.gotoX(t)},getSingleTouchEndMultipleChildToX:function(){var t=0,e=this.transX+u*h,n=Math.floor(e/u);return Math.abs(e)>u&&(h=Math.ceil(-this.transX/u),e-=u*n),e>0?(p=-1,l=e>c,t=l?-u*(h-1):-u*h):e<0?(p=1,l=Math.abs(e)>c,t=l?-u*(h+1):-u*h):(p=0,l=!1,t=-u*h),this.activeIndex=h=this.getActiveIndex(h+(l?p:0)),t},transEndFn:function(){var t=this;this.activeIndex=h=this.getActiveIndex(h),this.transX=f=-u*h,this.$emit("change",h),clearTimeout(v),v=setTimeout(function(){t.autoPlayFn()},16.7)},transitionendFn:function(t){"swiper-wrapper"===t.target.className&&this.isTransToX&&(this.isTransToX=!1,this.transEndFn())},updateChild:function(t){this.firstSwiperItem={render:function(e){return e("div",{staticClass:"swiper-item-box"},t.slice(-1))}},this.lastSwiperItem={render:function(e){return e("div",{staticClass:"swiper-item-box"},t.slice(0,1))}}},getActiveIndex:function(t){return 1===this.swiperItemCount?0:t>=this.swiperItemCount-1?1:t<=0?this.swiperItemCount-2:t},autoPlayFn:function(){var t=this;this.swiperItemCount>1&&"number"===typeof this.autoPlayDelay&&this.autoPlayDelay>=0&&0===d&&this.transX%u===0&&(clearTimeout(v),v=setTimeout(function(){h+=1,t.transX=-u*h,t.isTransToX=!0,t.correctDurationAct()},this.autoPlayDelay))},ignoreTouch:function(){return 0===this.swiperItemCount||1===this.swiperItemCount&&this.noDragWhenSingle},correctDurationAct:function(){("number"!==typeof this.duration||this.duration<=0)&&(this.isTransToX=!1,this.transEndFn())},swipeClick:function(){this.$emit("click",this.activeIndex-1)},gotoX:function(t){this.transX===t?this.transEndFn():(this.isTransToX=!0,this.transX=t,this.correctDurationAct())},goto:function(t){clearTimeout(v),h=t%(this.swiperItemCount-2)+1,this.activeIndex!==h?(this.activeIndex=h,this.gotoX(-u*h)):this.autoPlayFn()}}},b=y;n("e2ec");function g(t,e,n,r,i,o,u,c){var s,a="function"===typeof t?t.options:t;if(e&&(a.render=e,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),o&&(a._scopeId="data-v-"+o),u?(s=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},a._ssrRegister=s):i&&(s=c?function(){i.call(this,this.$root.$options.shadowRoot)}:i),s)if(a.functional){a._injectStyles=s;var f=a.render;a.render=function(t,e){return s.call(e),f(t,e)}}else{var l=a.beforeCreate;a.beforeCreate=l?[].concat(l,s):[s]}return{exports:t,options:a}}var w=g(b,i,o,!1,null,null,null);w.options.__file="swiper.vue";var _=w.exports,I=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"swiper-item"},[t._t("default")],2)},T=[],S={name:"SwiperItem"},x=S,C=(n("ca66"),g(x,I,T,!1,null,"7c28c452",null));C.options.__file="swiper-item.vue";var E=C.exports,F=function(t){t.component(_.name,_),t.component(E.name,E)},X={Swiper:_,SwiperItem:E,install:F},O=X;n.d(e,"Swiper",function(){return _}),n.d(e,"SwiperItem",function(){return E}),n.d(e,"install",function(){return F});e["default"]=O},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}})}); 2 | //# sourceMappingURL=VueActiveSwiper.umd.min.js.map -------------------------------------------------------------------------------- /dist/demo.html: -------------------------------------------------------------------------------- 1 | 2 | VueActiveSwiper demo 3 | 4 | 5 | 6 | 9 | -------------------------------------------------------------------------------- /example/basic-slot.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 40 | 41 | 57 | -------------------------------------------------------------------------------- /example/basic-urlList.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 24 | 25 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-active-swiper", 3 | "version": "1.1.2", 4 | "license": "MIT", 5 | "author": { 6 | "name": "kother1", 7 | "email": "kother@foxmail.com", 8 | "url": "https://github.com/accforgit" 9 | }, 10 | "bugs": { 11 | "url": "https://github.com/accforgit/vue-active-swiper/issues" 12 | }, 13 | "description": "Swiper component for Vue", 14 | "main": "dist/VueActiveSwiper.umd.min.js", 15 | "keywords": [ 16 | "vue-active-swiper", 17 | "vue active swiper", 18 | "active-swiper", 19 | "vue carrousel", 20 | "vue swiper", 21 | "vue slide", 22 | "carrousel", 23 | "swiper", 24 | "slider" 25 | ], 26 | "private": false, 27 | "scripts": { 28 | "serve": "vue-cli-service serve", 29 | "build": "vue-cli-service build", 30 | "lint": "vue-cli-service lint", 31 | "lib": "vue-cli-service build --target lib --name VueActiveSwiper src/index.js" 32 | }, 33 | "repository": { 34 | "type": "git", 35 | "url": "https://github.com/accforgit/vue-active-swiper.git" 36 | }, 37 | "dependencies": { 38 | "vue": "^2.5.17" 39 | }, 40 | "devDependencies": { 41 | "@vue/cli-plugin-babel": "^3.2.0", 42 | "@vue/cli-plugin-eslint": "^3.2.0", 43 | "@vue/cli-service": "^3.2.0", 44 | "babel-eslint": "^10.0.1", 45 | "eslint": "^5.8.0", 46 | "eslint-plugin-vue": "^5.0.0-0", 47 | "vue-template-compiler": "^2.5.17" 48 | }, 49 | "eslintConfig": { 50 | "root": true, 51 | "env": { 52 | "node": true 53 | }, 54 | "extends": [ 55 | "plugin:vue/essential", 56 | "eslint:recommended" 57 | ], 58 | "rules": {}, 59 | "parserOptions": { 60 | "parser": "babel-eslint" 61 | } 62 | }, 63 | "postcss": { 64 | "plugins": { 65 | "autoprefixer": {} 66 | } 67 | }, 68 | "browserslist": [ 69 | "> 1%", 70 | "last 2 versions", 71 | "not ie <= 8" 72 | ] 73 | } 74 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/accforgit/vue-active-swiper/023c2535bdde42710a0dcf0312fe37e254339454/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | vue-active-swiper 9 | 10 | 11 | 14 |
15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /public/swiper-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/accforgit/vue-active-swiper/023c2535bdde42710a0dcf0312fe37e254339454/public/swiper-1.gif -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import Swiper from './swiper.vue' 2 | import SwiperItem from './swiper-item.vue' 3 | 4 | const install = Vue => { 5 | Vue.component(Swiper.name, Swiper) 6 | Vue.component(SwiperItem.name, SwiperItem) 7 | } 8 | 9 | const VueActiveSwiper = { Swiper, SwiperItem, install } 10 | 11 | export default VueActiveSwiper 12 | export { Swiper, SwiperItem, install } 13 | -------------------------------------------------------------------------------- /src/swiper-item.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 12 | 13 | 21 | -------------------------------------------------------------------------------- /src/swiper.vue: -------------------------------------------------------------------------------- 1 | 35 | 36 | 379 | 380 | 417 | --------------------------------------------------------------------------------