├── .gitignore ├── demo.png ├── dist ├── demo.html ├── main.common.js ├── main.common.js.map ├── main.css ├── main.umd.js ├── main.umd.js.map ├── main.umd.min.js └── main.umd.min.js.map ├── package.json ├── readme.md ├── src ├── BeginGride.vue ├── index.js ├── points.vue └── rect.js └── test ├── normal.vue └── 边界固定.vue /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /.vuepress/dist/ 4 | /tests/e2e/videos/ 5 | /tests/e2e/screenshots/ 6 | 7 | # local env files 8 | .env.local 9 | .env.*.local 10 | 11 | # Log files 12 | npm-debug.log* 13 | yarn-debug.log* 14 | yarn-error.log* 15 | 16 | # Editor directories and files 17 | .idea 18 | .vscode 19 | *.suo 20 | *.ntvs* 21 | *.njsproj 22 | *.sln 23 | *.sw* 24 | 25 | # IDEA directories and files 26 | .idea/ 27 | */*.iml 28 | *.iml -------------------------------------------------------------------------------- /demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeryqwq/vue-begin-gride/2e0bc02eaf2a19cc2fff46760cf0a62ec7dfe42b/demo.png -------------------------------------------------------------------------------- /dist/demo.html: -------------------------------------------------------------------------------- 1 | 2 | main demo 3 | 4 | 5 | 6 | 7 | 8 | 11 | -------------------------------------------------------------------------------- /dist/main.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 = "428f"); 86 | /******/ }) 87 | /************************************************************************/ 88 | /******/ ({ 89 | 90 | /***/ "0746": 91 | /***/ (function(module, exports) { 92 | 93 | module.exports = function (it) { 94 | return typeof it === 'object' ? it !== null : typeof it === 'function'; 95 | }; 96 | 97 | 98 | /***/ }), 99 | 100 | /***/ "0a5c": 101 | /***/ (function(module, exports) { 102 | 103 | module.exports = false; 104 | 105 | 106 | /***/ }), 107 | 108 | /***/ "0b08": 109 | /***/ (function(module, exports, __webpack_require__) { 110 | 111 | "use strict"; 112 | 113 | 114 | var classof = __webpack_require__("eb62"); 115 | var builtinExec = RegExp.prototype.exec; 116 | 117 | // `RegExpExec` abstract operation 118 | // https://tc39.github.io/ecma262/#sec-regexpexec 119 | module.exports = function (R, S) { 120 | var exec = R.exec; 121 | if (typeof exec === 'function') { 122 | var result = exec.call(R, S); 123 | if (typeof result !== 'object') { 124 | throw new TypeError('RegExp exec method returned something other than an Object or null'); 125 | } 126 | return result; 127 | } 128 | if (classof(R) !== 'RegExp') { 129 | throw new TypeError('RegExp#exec called on incompatible receiver'); 130 | } 131 | return builtinExec.call(R, S); 132 | }; 133 | 134 | 135 | /***/ }), 136 | 137 | /***/ "0d74": 138 | /***/ (function(module, exports, __webpack_require__) { 139 | 140 | "use strict"; 141 | 142 | 143 | var anObject = __webpack_require__("8752"); 144 | var toObject = __webpack_require__("9807"); 145 | var toLength = __webpack_require__("94dd"); 146 | var toInteger = __webpack_require__("f602"); 147 | var advanceStringIndex = __webpack_require__("39b3"); 148 | var regExpExec = __webpack_require__("0b08"); 149 | var max = Math.max; 150 | var min = Math.min; 151 | var floor = Math.floor; 152 | var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g; 153 | var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g; 154 | 155 | var maybeToString = function (it) { 156 | return it === undefined ? it : String(it); 157 | }; 158 | 159 | // @@replace logic 160 | __webpack_require__("d50f")('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) { 161 | return [ 162 | // `String.prototype.replace` method 163 | // https://tc39.github.io/ecma262/#sec-string.prototype.replace 164 | function replace(searchValue, replaceValue) { 165 | var O = defined(this); 166 | var fn = searchValue == undefined ? undefined : searchValue[REPLACE]; 167 | return fn !== undefined 168 | ? fn.call(searchValue, O, replaceValue) 169 | : $replace.call(String(O), searchValue, replaceValue); 170 | }, 171 | // `RegExp.prototype[@@replace]` method 172 | // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace 173 | function (regexp, replaceValue) { 174 | var res = maybeCallNative($replace, regexp, this, replaceValue); 175 | if (res.done) return res.value; 176 | 177 | var rx = anObject(regexp); 178 | var S = String(this); 179 | var functionalReplace = typeof replaceValue === 'function'; 180 | if (!functionalReplace) replaceValue = String(replaceValue); 181 | var global = rx.global; 182 | if (global) { 183 | var fullUnicode = rx.unicode; 184 | rx.lastIndex = 0; 185 | } 186 | var results = []; 187 | while (true) { 188 | var result = regExpExec(rx, S); 189 | if (result === null) break; 190 | results.push(result); 191 | if (!global) break; 192 | var matchStr = String(result[0]); 193 | if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); 194 | } 195 | var accumulatedResult = ''; 196 | var nextSourcePosition = 0; 197 | for (var i = 0; i < results.length; i++) { 198 | result = results[i]; 199 | var matched = String(result[0]); 200 | var position = max(min(toInteger(result.index), S.length), 0); 201 | var captures = []; 202 | // NOTE: This is equivalent to 203 | // captures = result.slice(1).map(maybeToString) 204 | // but for some reason `nativeSlice.call(result, 1, result.length)` (called in 205 | // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and 206 | // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. 207 | for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j])); 208 | var namedCaptures = result.groups; 209 | if (functionalReplace) { 210 | var replacerArgs = [matched].concat(captures, position, S); 211 | if (namedCaptures !== undefined) replacerArgs.push(namedCaptures); 212 | var replacement = String(replaceValue.apply(undefined, replacerArgs)); 213 | } else { 214 | replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); 215 | } 216 | if (position >= nextSourcePosition) { 217 | accumulatedResult += S.slice(nextSourcePosition, position) + replacement; 218 | nextSourcePosition = position + matched.length; 219 | } 220 | } 221 | return accumulatedResult + S.slice(nextSourcePosition); 222 | } 223 | ]; 224 | 225 | // https://tc39.github.io/ecma262/#sec-getsubstitution 226 | function getSubstitution(matched, str, position, captures, namedCaptures, replacement) { 227 | var tailPos = position + matched.length; 228 | var m = captures.length; 229 | var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; 230 | if (namedCaptures !== undefined) { 231 | namedCaptures = toObject(namedCaptures); 232 | symbols = SUBSTITUTION_SYMBOLS; 233 | } 234 | return $replace.call(replacement, symbols, function (match, ch) { 235 | var capture; 236 | switch (ch.charAt(0)) { 237 | case '$': return '$'; 238 | case '&': return matched; 239 | case '`': return str.slice(0, position); 240 | case "'": return str.slice(tailPos); 241 | case '<': 242 | capture = namedCaptures[ch.slice(1, -1)]; 243 | break; 244 | default: // \d\d? 245 | var n = +ch; 246 | if (n === 0) return match; 247 | if (n > m) { 248 | var f = floor(n / 10); 249 | if (f === 0) return match; 250 | if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1); 251 | return match; 252 | } 253 | capture = captures[n - 1]; 254 | } 255 | return capture === undefined ? '' : capture; 256 | }); 257 | } 258 | }); 259 | 260 | 261 | /***/ }), 262 | 263 | /***/ "0ea8": 264 | /***/ (function(module, exports, __webpack_require__) { 265 | 266 | // 7.1.1 ToPrimitive(input [, PreferredType]) 267 | var isObject = __webpack_require__("0746"); 268 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 269 | // and the second argument - flag - preferred type is a string 270 | module.exports = function (it, S) { 271 | if (!isObject(it)) return it; 272 | var fn, val; 273 | if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 274 | if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; 275 | if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 276 | throw TypeError("Can't convert object to primitive value"); 277 | }; 278 | 279 | 280 | /***/ }), 281 | 282 | /***/ "16a3": 283 | /***/ (function(module, exports) { 284 | 285 | // IE 8- don't enum bug keys 286 | module.exports = ( 287 | 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 288 | ).split(','); 289 | 290 | 291 | /***/ }), 292 | 293 | /***/ "16eb": 294 | /***/ (function(module, exports, __webpack_require__) { 295 | 296 | var pIE = __webpack_require__("afca"); 297 | var createDesc = __webpack_require__("afa2"); 298 | var toIObject = __webpack_require__("18de"); 299 | var toPrimitive = __webpack_require__("0ea8"); 300 | var has = __webpack_require__("75b9"); 301 | var IE8_DOM_DEFINE = __webpack_require__("3e86"); 302 | var gOPD = Object.getOwnPropertyDescriptor; 303 | 304 | exports.f = __webpack_require__("3cdf") ? gOPD : function getOwnPropertyDescriptor(O, P) { 305 | O = toIObject(O); 306 | P = toPrimitive(P, true); 307 | if (IE8_DOM_DEFINE) try { 308 | return gOPD(O, P); 309 | } catch (e) { /* empty */ } 310 | if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 311 | }; 312 | 313 | 314 | /***/ }), 315 | 316 | /***/ "18de": 317 | /***/ (function(module, exports, __webpack_require__) { 318 | 319 | // to indexed object, toObject with fallback for non-array-like ES3 strings 320 | var IObject = __webpack_require__("d2a9"); 321 | var defined = __webpack_require__("5c8d"); 322 | module.exports = function (it) { 323 | return IObject(defined(it)); 324 | }; 325 | 326 | 327 | /***/ }), 328 | 329 | /***/ "22a5": 330 | /***/ (function(module, exports, __webpack_require__) { 331 | 332 | var global = __webpack_require__("9cc0"); 333 | var hide = __webpack_require__("317e"); 334 | var has = __webpack_require__("75b9"); 335 | var SRC = __webpack_require__("2ef6")('src'); 336 | var $toString = __webpack_require__("2921"); 337 | var TO_STRING = 'toString'; 338 | var TPL = ('' + $toString).split(TO_STRING); 339 | 340 | __webpack_require__("5d07").inspectSource = function (it) { 341 | return $toString.call(it); 342 | }; 343 | 344 | (module.exports = function (O, key, val, safe) { 345 | var isFunction = typeof val == 'function'; 346 | if (isFunction) has(val, 'name') || hide(val, 'name', key); 347 | if (O[key] === val) return; 348 | if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); 349 | if (O === global) { 350 | O[key] = val; 351 | } else if (!safe) { 352 | delete O[key]; 353 | hide(O, key, val); 354 | } else if (O[key]) { 355 | O[key] = val; 356 | } else { 357 | hide(O, key, val); 358 | } 359 | // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative 360 | })(Function.prototype, TO_STRING, function toString() { 361 | return typeof this == 'function' && this[SRC] || $toString.call(this); 362 | }); 363 | 364 | 365 | /***/ }), 366 | 367 | /***/ "25a2": 368 | /***/ (function(module, exports, __webpack_require__) { 369 | 370 | // false -> Array#indexOf 371 | // true -> Array#includes 372 | var toIObject = __webpack_require__("18de"); 373 | var toLength = __webpack_require__("94dd"); 374 | var toAbsoluteIndex = __webpack_require__("a165"); 375 | module.exports = function (IS_INCLUDES) { 376 | return function ($this, el, fromIndex) { 377 | var O = toIObject($this); 378 | var length = toLength(O.length); 379 | var index = toAbsoluteIndex(fromIndex, length); 380 | var value; 381 | // Array#includes uses SameValueZero equality algorithm 382 | // eslint-disable-next-line no-self-compare 383 | if (IS_INCLUDES && el != el) while (length > index) { 384 | value = O[index++]; 385 | // eslint-disable-next-line no-self-compare 386 | if (value != value) return true; 387 | // Array#indexOf ignores holes, Array#includes - not 388 | } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 389 | if (O[index] === el) return IS_INCLUDES || index || 0; 390 | } return !IS_INCLUDES && -1; 391 | }; 392 | }; 393 | 394 | 395 | /***/ }), 396 | 397 | /***/ "2921": 398 | /***/ (function(module, exports, __webpack_require__) { 399 | 400 | module.exports = __webpack_require__("e036")('native-function-to-string', Function.toString); 401 | 402 | 403 | /***/ }), 404 | 405 | /***/ "2ef6": 406 | /***/ (function(module, exports) { 407 | 408 | var id = 0; 409 | var px = Math.random(); 410 | module.exports = function (key) { 411 | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 412 | }; 413 | 414 | 415 | /***/ }), 416 | 417 | /***/ "317e": 418 | /***/ (function(module, exports, __webpack_require__) { 419 | 420 | var dP = __webpack_require__("4318"); 421 | var createDesc = __webpack_require__("afa2"); 422 | module.exports = __webpack_require__("3cdf") ? function (object, key, value) { 423 | return dP.f(object, key, createDesc(1, value)); 424 | } : function (object, key, value) { 425 | object[key] = value; 426 | return object; 427 | }; 428 | 429 | 430 | /***/ }), 431 | 432 | /***/ "3235": 433 | /***/ (function(module, exports, __webpack_require__) { 434 | 435 | var isObject = __webpack_require__("0746"); 436 | var document = __webpack_require__("9cc0").document; 437 | // typeof document.createElement is 'object' in old IE 438 | var is = isObject(document) && isObject(document.createElement); 439 | module.exports = function (it) { 440 | return is ? document.createElement(it) : {}; 441 | }; 442 | 443 | 444 | /***/ }), 445 | 446 | /***/ "37e2": 447 | /***/ (function(module, exports, __webpack_require__) { 448 | 449 | var global = __webpack_require__("9cc0"); 450 | var core = __webpack_require__("5d07"); 451 | var hide = __webpack_require__("317e"); 452 | var redefine = __webpack_require__("22a5"); 453 | var ctx = __webpack_require__("e628"); 454 | var PROTOTYPE = 'prototype'; 455 | 456 | var $export = function (type, name, source) { 457 | var IS_FORCED = type & $export.F; 458 | var IS_GLOBAL = type & $export.G; 459 | var IS_STATIC = type & $export.S; 460 | var IS_PROTO = type & $export.P; 461 | var IS_BIND = type & $export.B; 462 | var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; 463 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 464 | var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); 465 | var key, own, out, exp; 466 | if (IS_GLOBAL) source = name; 467 | for (key in source) { 468 | // contains in native 469 | own = !IS_FORCED && target && target[key] !== undefined; 470 | // export native or passed 471 | out = (own ? target : source)[key]; 472 | // bind timers to global for call from export context 473 | exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; 474 | // extend global 475 | if (target) redefine(target, key, out, type & $export.U); 476 | // export 477 | if (exports[key] != out) hide(exports, key, exp); 478 | if (IS_PROTO && expProto[key] != out) expProto[key] = out; 479 | } 480 | }; 481 | global.core = core; 482 | // type bitmap 483 | $export.F = 1; // forced 484 | $export.G = 2; // global 485 | $export.S = 4; // static 486 | $export.P = 8; // proto 487 | $export.B = 16; // bind 488 | $export.W = 32; // wrap 489 | $export.U = 64; // safe 490 | $export.R = 128; // real proto method for `library` 491 | module.exports = $export; 492 | 493 | 494 | /***/ }), 495 | 496 | /***/ "39b3": 497 | /***/ (function(module, exports, __webpack_require__) { 498 | 499 | "use strict"; 500 | 501 | var at = __webpack_require__("e006")(true); 502 | 503 | // `AdvanceStringIndex` abstract operation 504 | // https://tc39.github.io/ecma262/#sec-advancestringindex 505 | module.exports = function (S, index, unicode) { 506 | return index + (unicode ? at(S, index).length : 1); 507 | }; 508 | 509 | 510 | /***/ }), 511 | 512 | /***/ "3c2f": 513 | /***/ (function(module, exports, __webpack_require__) { 514 | 515 | "use strict"; 516 | 517 | var global = __webpack_require__("9cc0"); 518 | var has = __webpack_require__("75b9"); 519 | var cof = __webpack_require__("4a0f"); 520 | var inheritIfRequired = __webpack_require__("63df"); 521 | var toPrimitive = __webpack_require__("0ea8"); 522 | var fails = __webpack_require__("c151"); 523 | var gOPN = __webpack_require__("68d4").f; 524 | var gOPD = __webpack_require__("16eb").f; 525 | var dP = __webpack_require__("4318").f; 526 | var $trim = __webpack_require__("bdea").trim; 527 | var NUMBER = 'Number'; 528 | var $Number = global[NUMBER]; 529 | var Base = $Number; 530 | var proto = $Number.prototype; 531 | // Opera ~12 has broken Object#toString 532 | var BROKEN_COF = cof(__webpack_require__("ef4d")(proto)) == NUMBER; 533 | var TRIM = 'trim' in String.prototype; 534 | 535 | // 7.1.3 ToNumber(argument) 536 | var toNumber = function (argument) { 537 | var it = toPrimitive(argument, false); 538 | if (typeof it == 'string' && it.length > 2) { 539 | it = TRIM ? it.trim() : $trim(it, 3); 540 | var first = it.charCodeAt(0); 541 | var third, radix, maxCode; 542 | if (first === 43 || first === 45) { 543 | third = it.charCodeAt(2); 544 | if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix 545 | } else if (first === 48) { 546 | switch (it.charCodeAt(1)) { 547 | case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i 548 | case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i 549 | default: return +it; 550 | } 551 | for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { 552 | code = digits.charCodeAt(i); 553 | // parseInt parses a string to a first unavailable symbol 554 | // but ToNumber should return NaN if a string contains unavailable symbols 555 | if (code < 48 || code > maxCode) return NaN; 556 | } return parseInt(digits, radix); 557 | } 558 | } return +it; 559 | }; 560 | 561 | if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { 562 | $Number = function Number(value) { 563 | var it = arguments.length < 1 ? 0 : value; 564 | var that = this; 565 | return that instanceof $Number 566 | // check on 1..constructor(foo) case 567 | && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER) 568 | ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); 569 | }; 570 | for (var keys = __webpack_require__("3cdf") ? gOPN(Base) : ( 571 | // ES3: 572 | 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + 573 | // ES6 (in case, if modules with ES6 Number statics required before): 574 | 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + 575 | 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' 576 | ).split(','), j = 0, key; keys.length > j; j++) { 577 | if (has(Base, key = keys[j]) && !has($Number, key)) { 578 | dP($Number, key, gOPD(Base, key)); 579 | } 580 | } 581 | $Number.prototype = proto; 582 | proto.constructor = $Number; 583 | __webpack_require__("22a5")(global, NUMBER, $Number); 584 | } 585 | 586 | 587 | /***/ }), 588 | 589 | /***/ "3c67": 590 | /***/ (function(module, exports, __webpack_require__) { 591 | 592 | var document = __webpack_require__("9cc0").document; 593 | module.exports = document && document.documentElement; 594 | 595 | 596 | /***/ }), 597 | 598 | /***/ "3cdf": 599 | /***/ (function(module, exports, __webpack_require__) { 600 | 601 | // Thank's IE8 for his funny defineProperty 602 | module.exports = !__webpack_require__("c151")(function () { 603 | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 604 | }); 605 | 606 | 607 | /***/ }), 608 | 609 | /***/ "3e86": 610 | /***/ (function(module, exports, __webpack_require__) { 611 | 612 | module.exports = !__webpack_require__("3cdf") && !__webpack_require__("c151")(function () { 613 | return Object.defineProperty(__webpack_require__("3235")('div'), 'a', { get: function () { return 7; } }).a != 7; 614 | }); 615 | 616 | 617 | /***/ }), 618 | 619 | /***/ "428f": 620 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 621 | 622 | "use strict"; 623 | // ESM COMPAT FLAG 624 | __webpack_require__.r(__webpack_exports__); 625 | 626 | // CONCATENATED MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js 627 | // This file is imported into lib/wc client bundles. 628 | 629 | if (typeof window !== 'undefined') { 630 | if (true) { 631 | __webpack_require__("988a") 632 | } 633 | 634 | var i 635 | if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) { 636 | __webpack_require__.p = i[1] // eslint-disable-line 637 | } 638 | } 639 | 640 | // Indicate to webpack that this file can be concatenated 641 | /* harmony default export */ var setPublicPath = (null); 642 | 643 | // CONCATENATED MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"63a234b2-vue-loader-template"}!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib??vue-loader-options!./src/BeginGride.vue?vue&type=template&id=3b85eb85& 644 | var BeginGridevue_type_template_id_3b85eb85_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.curIdx < _vm.lists.length)?_c('svg',{staticStyle:{"position":"fixed","left":"0","top":"0","z-index":"999","min-width":"100vw","min-height":"100vh"}},[_vm._l((_vm.lists || []),function(item,idx){return _c('BorderRect',{key:idx,attrs:{"idx":idx,"item":item,"curIdx":_vm.curIdx,"incrment":_vm.incrment,"opacity":_vm.opacity,"len":_vm.lists.length},on:{"neverOpenHandler":_vm.neverOpenHandler}})}),_c('Point',{attrs:{"len":_vm.lists.length,"curIdx":_vm.curIdx,"incrment":_vm.incrment}})],2):_vm._e()} 645 | var staticRenderFns = [] 646 | 647 | 648 | // CONCATENATED MODULE: ./src/BeginGride.vue?vue&type=template&id=3b85eb85& 649 | 650 | // EXTERNAL MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/core-js/modules/es6.number.constructor.js 651 | var es6_number_constructor = __webpack_require__("3c2f"); 652 | 653 | // EXTERNAL MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/core-js/modules/es6.regexp.replace.js 654 | var es6_regexp_replace = __webpack_require__("0d74"); 655 | 656 | // CONCATENATED MODULE: ./src/rect.js 657 | 658 | 659 | var defaultWrapStyle = "color:white;border-radius: 20px;border:dashed 2px white;display: inline-block;padding:10px"; 660 | var lineStyle = "stroke-dasharray: 5px 5px;stroke-width:2px"; 661 | /* harmony default export */ var rect = ({ 662 | props: ["item", "len", "curIdx", "idx", "incrment", "opacity"], 663 | data: function data() { 664 | return { 665 | position: { 666 | left: 200, 667 | top: 200, 668 | height: 200, 669 | width: 200 670 | }, 671 | scrollTop: 0, 672 | scrollLeft: 0, 673 | wrapHeight: 0, 674 | offsetPoint: { 675 | x: 0, 676 | y: 0 677 | } 678 | }; 679 | }, 680 | mounted: function mounted() { 681 | var _this$item$el$getClie = this.item.el.getClientRects()[0], 682 | left = _this$item$el$getClie.left, 683 | top = _this$item$el$getClie.top, 684 | width = _this$item$el$getClie.width, 685 | height = _this$item$el$getClie.height; 686 | this.position = { 687 | left: left, 688 | top: top, 689 | width: width, 690 | height: height 691 | }; 692 | window.addEventListener("scroll", this.autoScroll); 693 | }, 694 | destroyed: function destroyed() { 695 | window.removeEventListener("scroll", this.autoScroll); 696 | }, 697 | methods: { 698 | autoScroll: function autoScroll(e) { 699 | var _this = this; 700 | 701 | window.requestAnimationFrame(function () { 702 | _this.scrollTop = e.target.scrollingElement.scrollTop; 703 | _this.scrollLeft = e.target.scrollingElement.scrollLeft; 704 | }); 705 | }, 706 | neverAlert: function neverAlert(e) { 707 | e.stopPropagation(); 708 | }, 709 | handleChange: function handleChange(e) { 710 | this.$emit('neverOpenHandler', e.target.checked); 711 | 712 | if (e.target.checked) { 713 | window.localStorage.setItem("isfingerPoint", "true"); 714 | } else { 715 | window.localStorage.setItem("isfingerPoint", "false"); 716 | } 717 | } 718 | }, 719 | render: function render() { 720 | var _this2 = this; 721 | 722 | var h = arguments[0]; 723 | var _this$position = this.position, 724 | height = _this$position.height, 725 | left = _this$position.left, 726 | top = _this$position.top; 727 | top -= this.scrollTop; 728 | left -= this.scrollLeft; 729 | var _this$offsetPoint = this.offsetPoint, 730 | x = _this$offsetPoint.x, 731 | y = _this$offsetPoint.y; 732 | return this.curIdx === this.idx && h("g", [h("path", { 733 | "attrs": { 734 | "d": this.path, 735 | "fill": "rgba(0,0,0,".concat(this.opacity ? this.opacity : 0.3) 736 | } 737 | }), h("path", { 738 | "attrs": { 739 | "d": "M \n ".concat(left - 20, " ").concat(top + height / 2, " \n Q ").concat(left - 80 + y, " ").concat(top + height / 2 + x, "\n ").concat(left - 10 + y, " ").concat(top + height + this.wrapHeight + x, "\n "), 740 | "stroke": "white", 741 | "fill": "none" 742 | }, 743 | "style": this.item.lineStyle ? this.item.lineStyle : lineStyle 744 | }), h("foreignObject", { 745 | "attrs": { 746 | "x": this.wrapPosition.left + y, 747 | "y": this.wrapPosition.top + x, 748 | "width": this.wrapPosition.width, 749 | "height": this.wrapPosition.height 750 | }, 751 | "style": "color:white", 752 | "key": "item".concat(this.curIdx) 753 | }, [h("div", { 754 | "style": this.item.style ? this.item.style : defaultWrapStyle, 755 | "ref": "innerContent" 756 | }, [typeof this.item.text === "function" ? this.item.text() : this.item.text, h("br"), this.len - 1 === this.curIdx && h("label", { 757 | "on": { 758 | "click": this.neverAlert 759 | }, 760 | "style": "color:white;font-size:14px;line-height:30px" 761 | }, [h("input", { 762 | "attrs": { 763 | "type": "checkbox", 764 | "select": true 765 | }, 766 | "style": "vertical-align: middle;", 767 | "on": { 768 | "change": this.handleChange 769 | }, 770 | "ref": "checkbox" 771 | }), "\u4E0B\u6B21\u4E0D\u518D\u63D0\u793A"])]), h("span", { 772 | "on": { 773 | "click": function click() { 774 | return _this2.incrment(_this2.curIdx + 1); 775 | } 776 | }, 777 | "style": "float:right;margin:10px;border:solid 1px white;padding:8px;border-radius:5px;cursor:pointer" 778 | }, [this.len - 1 === this.curIdx ? "完成" : "下一步"])])]); 779 | }, 780 | computed: { 781 | wrapPosition: function wrapPosition() { 782 | var _this3 = this; 783 | 784 | var _this$position2 = this.position, 785 | top = _this$position2.top, 786 | left = _this$position2.left; 787 | this.$nextTick().then(function () { 788 | var el = _this3.$refs["innerContent"]; 789 | el && (_this3.wrapHeight = el.offsetHeight); 790 | }); 791 | left -= this.scrollLeft; 792 | top -= this.scrollTop; 793 | var foreignPosition = { 794 | left: left, 795 | top: top + this.position.height + 60, 796 | width: this.item.width ? Number(this.item.width.replace("px", "")) : Number(this.position.width), 797 | height: this.wrapHeight + 60 798 | }; 799 | foreignPosition["bottom"] = foreignPosition.top + foreignPosition.height; 800 | foreignPosition["right"] = foreignPosition.left + foreignPosition.width; 801 | 802 | if (foreignPosition["bottom"] > window.innerHeight && this.scrollTop < this.position.top) { 803 | this.offsetPoint.x = -(foreignPosition["bottom"] - window.innerHeight); 804 | } 805 | 806 | if (foreignPosition["right"] > window.innerWidth) { 807 | this.offsetPoint.y = -(foreignPosition["right"] - window.innerWidth); 808 | } 809 | 810 | if (this.scrollLeft > this.position.left) { 811 | this.offsetPoint.y = this.scrollLeft - this.position.left; 812 | } 813 | 814 | if (this.scrollTop > this.position.top + this.position.height && foreignPosition["bottom"] < window.innerHeight) { 815 | this.offsetPoint.x = this.scrollTop - this.position.top - this.position.height; 816 | } 817 | 818 | return foreignPosition; 819 | }, 820 | path: function path() { 821 | var _this$position3 = this.position, 822 | width = _this$position3.width, 823 | height = _this$position3.height, 824 | left = _this$position3.left, 825 | top = _this$position3.top; 826 | top -= this.scrollTop; 827 | left -= this.scrollLeft; 828 | var wwidth = window.innerWidth, 829 | wheight = window.innerHeight, 830 | padding = this.item.padding || 10; 831 | return "\n M".concat(left - padding, " ").concat(top + height + padding, ",\n 0 ").concat(wheight, ",\n ").concat(wwidth, " ").concat(wheight, ",\n ").concat(wwidth, " 0,\n 0 0,\n 0 ").concat(wheight, ",\n ").concat(left - padding, " ").concat(top + height + padding, ",\n ").concat(left - padding, " ").concat(top - padding, ",\n ").concat(left + width + padding, " ").concat(top - padding, ",\n ").concat(left + width + padding, " ").concat(top + height + padding, "\n Z"); 832 | } 833 | } 834 | }); 835 | // CONCATENATED MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"63a234b2-vue-loader-template"}!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib??vue-loader-options!./src/points.vue?vue&type=template&id=732ec91c&scoped=true& 836 | var pointsvue_type_template_id_732ec91c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('foreignObject',{staticStyle:{"width":"100%","height":"40px"}},[_c('div',{staticClass:"center-point"},_vm._l((new Array(this.len).fill(0)),function(item,idx){return _c('span',{key:idx,class:("item " + (idx === _vm.curIdx && 'cur')),on:{"click":function($event){return _vm.toggleTo(idx)}}})}),0)])} 837 | var pointsvue_type_template_id_732ec91c_scoped_true_staticRenderFns = [] 838 | 839 | 840 | // CONCATENATED MODULE: ./src/points.vue?vue&type=template&id=732ec91c&scoped=true& 841 | 842 | // CONCATENATED MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/thread-loader/dist/cjs.js!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/babel-loader/lib??ref--12-1!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib??vue-loader-options!./src/points.vue?vue&type=script&lang=js& 843 | // 844 | // 845 | // 846 | // 847 | // 848 | // 849 | // 850 | // 851 | // 852 | // 853 | // 854 | // 855 | // 856 | /* harmony default export */ var pointsvue_type_script_lang_js_ = ({ 857 | props: ["len", "curIdx", "incrment"], 858 | data: function data() { 859 | return {}; 860 | }, 861 | methods: { 862 | toggleTo: function toggleTo(idx) { 863 | this.incrment(idx); 864 | } 865 | } 866 | }); 867 | // CONCATENATED MODULE: ./src/points.vue?vue&type=script&lang=js& 868 | /* harmony default export */ var src_pointsvue_type_script_lang_js_ = (pointsvue_type_script_lang_js_); 869 | // EXTERNAL MODULE: ./src/points.vue?vue&type=style&index=0&id=732ec91c&scoped=true&lang=css& 870 | var pointsvue_type_style_index_0_id_732ec91c_scoped_true_lang_css_ = __webpack_require__("e96a"); 871 | 872 | // CONCATENATED MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/runtime/componentNormalizer.js 873 | /* globals __VUE_SSR_CONTEXT__ */ 874 | 875 | // IMPORTANT: Do NOT use ES2015 features in this file (except for modules). 876 | // This module is a runtime utility for cleaner component module output and will 877 | // be included in the final webpack user bundle. 878 | 879 | function normalizeComponent ( 880 | scriptExports, 881 | render, 882 | staticRenderFns, 883 | functionalTemplate, 884 | injectStyles, 885 | scopeId, 886 | moduleIdentifier, /* server only */ 887 | shadowMode /* vue-cli only */ 888 | ) { 889 | // Vue.extend constructor export interop 890 | var options = typeof scriptExports === 'function' 891 | ? scriptExports.options 892 | : scriptExports 893 | 894 | // render functions 895 | if (render) { 896 | options.render = render 897 | options.staticRenderFns = staticRenderFns 898 | options._compiled = true 899 | } 900 | 901 | // functional template 902 | if (functionalTemplate) { 903 | options.functional = true 904 | } 905 | 906 | // scopedId 907 | if (scopeId) { 908 | options._scopeId = 'data-v-' + scopeId 909 | } 910 | 911 | var hook 912 | if (moduleIdentifier) { // server build 913 | hook = function (context) { 914 | // 2.3 injection 915 | context = 916 | context || // cached call 917 | (this.$vnode && this.$vnode.ssrContext) || // stateful 918 | (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional 919 | // 2.2 with runInNewContext: true 920 | if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { 921 | context = __VUE_SSR_CONTEXT__ 922 | } 923 | // inject component styles 924 | if (injectStyles) { 925 | injectStyles.call(this, context) 926 | } 927 | // register component module identifier for async chunk inferrence 928 | if (context && context._registeredComponents) { 929 | context._registeredComponents.add(moduleIdentifier) 930 | } 931 | } 932 | // used by ssr in case component is cached and beforeCreate 933 | // never gets called 934 | options._ssrRegister = hook 935 | } else if (injectStyles) { 936 | hook = shadowMode 937 | ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } 938 | : injectStyles 939 | } 940 | 941 | if (hook) { 942 | if (options.functional) { 943 | // for template-only hot-reload because in that case the render fn doesn't 944 | // go through the normalizer 945 | options._injectStyles = hook 946 | // register for functional component in vue file 947 | var originalRender = options.render 948 | options.render = function renderWithStyleInjection (h, context) { 949 | hook.call(context) 950 | return originalRender(h, context) 951 | } 952 | } else { 953 | // inject component registration as beforeCreate hook 954 | var existing = options.beforeCreate 955 | options.beforeCreate = existing 956 | ? [].concat(existing, hook) 957 | : [hook] 958 | } 959 | } 960 | 961 | return { 962 | exports: scriptExports, 963 | options: options 964 | } 965 | } 966 | 967 | // CONCATENATED MODULE: ./src/points.vue 968 | 969 | 970 | 971 | 972 | 973 | 974 | /* normalize component */ 975 | 976 | var component = normalizeComponent( 977 | src_pointsvue_type_script_lang_js_, 978 | pointsvue_type_template_id_732ec91c_scoped_true_render, 979 | pointsvue_type_template_id_732ec91c_scoped_true_staticRenderFns, 980 | false, 981 | null, 982 | "732ec91c", 983 | null 984 | 985 | ) 986 | 987 | /* harmony default export */ var points = (component.exports); 988 | // CONCATENATED MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/thread-loader/dist/cjs.js!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/babel-loader/lib??ref--12-1!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib??vue-loader-options!./src/BeginGride.vue?vue&type=script&lang=js& 989 | 990 | // 991 | // 992 | // 993 | // 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 | /* harmony default export */ var BeginGridevue_type_script_lang_js_ = ({ 1021 | props: { 1022 | lists: { 1023 | type: Array, 1024 | default: function _default() { 1025 | return []; 1026 | } 1027 | }, 1028 | opacity: { 1029 | type: Number, 1030 | default: 0.4 1031 | }, 1032 | neverOpenHandler: { 1033 | type: Function, 1034 | default: function _default() { 1035 | return {}; 1036 | } 1037 | } 1038 | }, 1039 | components: { 1040 | BorderRect: rect, 1041 | Point: points 1042 | }, 1043 | data: function data() { 1044 | return { 1045 | curIdx: 0, 1046 | position: { 1047 | width: 0, 1048 | height: 0 1049 | } 1050 | }; 1051 | }, 1052 | mounted: function mounted() { 1053 | var _this = this; 1054 | 1055 | this.$nextTick().then(function () { 1056 | _this.position = document.documentElement.getClientRects()[0]; 1057 | }); 1058 | }, 1059 | methods: { 1060 | incrment: function incrment(idx) { 1061 | this.curIdx = idx; 1062 | 1063 | if (idx >= this.lists.length) { 1064 | this.$emit('destory'); 1065 | } 1066 | } 1067 | } 1068 | }); 1069 | // CONCATENATED MODULE: ./src/BeginGride.vue?vue&type=script&lang=js& 1070 | /* harmony default export */ var src_BeginGridevue_type_script_lang_js_ = (BeginGridevue_type_script_lang_js_); 1071 | // CONCATENATED MODULE: ./src/BeginGride.vue 1072 | 1073 | 1074 | 1075 | 1076 | 1077 | /* normalize component */ 1078 | 1079 | var BeginGride_component = normalizeComponent( 1080 | src_BeginGridevue_type_script_lang_js_, 1081 | BeginGridevue_type_template_id_3b85eb85_render, 1082 | staticRenderFns, 1083 | false, 1084 | null, 1085 | null, 1086 | null 1087 | 1088 | ) 1089 | 1090 | /* harmony default export */ var BeginGride = (BeginGride_component.exports); 1091 | // CONCATENATED MODULE: ./src/index.js 1092 | 1093 | /* harmony default export */ var src = ({ 1094 | install: function install(_V) { 1095 | var h = this.$createElement; 1096 | 1097 | _V.prototype.$guide = function (_ref) { 1098 | var _ref$lists = _ref.lists, 1099 | lists = _ref$lists === void 0 ? [] : _ref$lists, 1100 | _ref$opacity = _ref.opacity, 1101 | opacity = _ref$opacity === void 0 ? 0.7 : _ref$opacity, 1102 | _ref$neverOpenHandler = _ref.neverOpenHandler, 1103 | neverOpenHandler = _ref$neverOpenHandler === void 0 ? function () {} : _ref$neverOpenHandler; 1104 | var isfingerPoint = window.localStorage.getItem("isfingerPoint"); 1105 | if (isfingerPoint && isfingerPoint === 'true') return; 1106 | var parent = document.createElement('div'); 1107 | var el = document.createElement('div'); 1108 | parent.appendChild(el); 1109 | document.body.appendChild(parent); 1110 | var vm = new _V({ 1111 | el: el, 1112 | render: function render() { 1113 | var h = arguments[0]; 1114 | return h(BeginGride, { 1115 | "attrs": { 1116 | "lists": lists, 1117 | "opacity": opacity, 1118 | "neverOpenHandler": neverOpenHandler 1119 | }, 1120 | "on": { 1121 | "destory": destroy 1122 | } 1123 | }); 1124 | } 1125 | }); 1126 | 1127 | function destroy() { 1128 | vm.$destroy(); 1129 | parent.innerHTML = ''; 1130 | document.body.removeChild(parent); 1131 | } 1132 | 1133 | return { 1134 | vm: vm, 1135 | destroy: destroy 1136 | }; 1137 | }; 1138 | } 1139 | }); 1140 | // CONCATENATED MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js 1141 | 1142 | 1143 | /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src); 1144 | 1145 | 1146 | 1147 | /***/ }), 1148 | 1149 | /***/ "4318": 1150 | /***/ (function(module, exports, __webpack_require__) { 1151 | 1152 | var anObject = __webpack_require__("8752"); 1153 | var IE8_DOM_DEFINE = __webpack_require__("3e86"); 1154 | var toPrimitive = __webpack_require__("0ea8"); 1155 | var dP = Object.defineProperty; 1156 | 1157 | exports.f = __webpack_require__("3cdf") ? Object.defineProperty : function defineProperty(O, P, Attributes) { 1158 | anObject(O); 1159 | P = toPrimitive(P, true); 1160 | anObject(Attributes); 1161 | if (IE8_DOM_DEFINE) try { 1162 | return dP(O, P, Attributes); 1163 | } catch (e) { /* empty */ } 1164 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 1165 | if ('value' in Attributes) O[P] = Attributes.value; 1166 | return O; 1167 | }; 1168 | 1169 | 1170 | /***/ }), 1171 | 1172 | /***/ "4a0f": 1173 | /***/ (function(module, exports) { 1174 | 1175 | var toString = {}.toString; 1176 | 1177 | module.exports = function (it) { 1178 | return toString.call(it).slice(8, -1); 1179 | }; 1180 | 1181 | 1182 | /***/ }), 1183 | 1184 | /***/ "4a72": 1185 | /***/ (function(module, exports, __webpack_require__) { 1186 | 1187 | "use strict"; 1188 | 1189 | // 21.2.5.3 get RegExp.prototype.flags 1190 | var anObject = __webpack_require__("8752"); 1191 | module.exports = function () { 1192 | var that = anObject(this); 1193 | var result = ''; 1194 | if (that.global) result += 'g'; 1195 | if (that.ignoreCase) result += 'i'; 1196 | if (that.multiline) result += 'm'; 1197 | if (that.unicode) result += 'u'; 1198 | if (that.sticky) result += 'y'; 1199 | return result; 1200 | }; 1201 | 1202 | 1203 | /***/ }), 1204 | 1205 | /***/ "5c8d": 1206 | /***/ (function(module, exports) { 1207 | 1208 | // 7.2.1 RequireObjectCoercible(argument) 1209 | module.exports = function (it) { 1210 | if (it == undefined) throw TypeError("Can't call method on " + it); 1211 | return it; 1212 | }; 1213 | 1214 | 1215 | /***/ }), 1216 | 1217 | /***/ "5d07": 1218 | /***/ (function(module, exports) { 1219 | 1220 | var core = module.exports = { version: '2.6.11' }; 1221 | if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 1222 | 1223 | 1224 | /***/ }), 1225 | 1226 | /***/ "63df": 1227 | /***/ (function(module, exports, __webpack_require__) { 1228 | 1229 | var isObject = __webpack_require__("0746"); 1230 | var setPrototypeOf = __webpack_require__("96bc").set; 1231 | module.exports = function (that, target, C) { 1232 | var S = target.constructor; 1233 | var P; 1234 | if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { 1235 | setPrototypeOf(that, P); 1236 | } return that; 1237 | }; 1238 | 1239 | 1240 | /***/ }), 1241 | 1242 | /***/ "64a7": 1243 | /***/ (function(module, exports, __webpack_require__) { 1244 | 1245 | "use strict"; 1246 | 1247 | 1248 | var regexpFlags = __webpack_require__("4a72"); 1249 | 1250 | var nativeExec = RegExp.prototype.exec; 1251 | // This always refers to the native implementation, because the 1252 | // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js, 1253 | // which loads this file before patching the method. 1254 | var nativeReplace = String.prototype.replace; 1255 | 1256 | var patchedExec = nativeExec; 1257 | 1258 | var LAST_INDEX = 'lastIndex'; 1259 | 1260 | var UPDATES_LAST_INDEX_WRONG = (function () { 1261 | var re1 = /a/, 1262 | re2 = /b*/g; 1263 | nativeExec.call(re1, 'a'); 1264 | nativeExec.call(re2, 'a'); 1265 | return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0; 1266 | })(); 1267 | 1268 | // nonparticipating capturing group, copied from es5-shim's String#split patch. 1269 | var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; 1270 | 1271 | var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED; 1272 | 1273 | if (PATCH) { 1274 | patchedExec = function exec(str) { 1275 | var re = this; 1276 | var lastIndex, reCopy, match, i; 1277 | 1278 | if (NPCG_INCLUDED) { 1279 | reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re)); 1280 | } 1281 | if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX]; 1282 | 1283 | match = nativeExec.call(re, str); 1284 | 1285 | if (UPDATES_LAST_INDEX_WRONG && match) { 1286 | re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex; 1287 | } 1288 | if (NPCG_INCLUDED && match && match.length > 1) { 1289 | // Fix browsers whose `exec` methods don't consistently return `undefined` 1290 | // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/ 1291 | // eslint-disable-next-line no-loop-func 1292 | nativeReplace.call(match[0], reCopy, function () { 1293 | for (i = 1; i < arguments.length - 2; i++) { 1294 | if (arguments[i] === undefined) match[i] = undefined; 1295 | } 1296 | }); 1297 | } 1298 | 1299 | return match; 1300 | }; 1301 | } 1302 | 1303 | module.exports = patchedExec; 1304 | 1305 | 1306 | /***/ }), 1307 | 1308 | /***/ "68d4": 1309 | /***/ (function(module, exports, __webpack_require__) { 1310 | 1311 | // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) 1312 | var $keys = __webpack_require__("a39c"); 1313 | var hiddenKeys = __webpack_require__("16a3").concat('length', 'prototype'); 1314 | 1315 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { 1316 | return $keys(O, hiddenKeys); 1317 | }; 1318 | 1319 | 1320 | /***/ }), 1321 | 1322 | /***/ "75b9": 1323 | /***/ (function(module, exports) { 1324 | 1325 | var hasOwnProperty = {}.hasOwnProperty; 1326 | module.exports = function (it, key) { 1327 | return hasOwnProperty.call(it, key); 1328 | }; 1329 | 1330 | 1331 | /***/ }), 1332 | 1333 | /***/ "77dd": 1334 | /***/ (function(module, exports, __webpack_require__) { 1335 | 1336 | var shared = __webpack_require__("e036")('keys'); 1337 | var uid = __webpack_require__("2ef6"); 1338 | module.exports = function (key) { 1339 | return shared[key] || (shared[key] = uid(key)); 1340 | }; 1341 | 1342 | 1343 | /***/ }), 1344 | 1345 | /***/ "8752": 1346 | /***/ (function(module, exports, __webpack_require__) { 1347 | 1348 | var isObject = __webpack_require__("0746"); 1349 | module.exports = function (it) { 1350 | if (!isObject(it)) throw TypeError(it + ' is not an object!'); 1351 | return it; 1352 | }; 1353 | 1354 | 1355 | /***/ }), 1356 | 1357 | /***/ "8e88": 1358 | /***/ (function(module, exports, __webpack_require__) { 1359 | 1360 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) 1361 | var $keys = __webpack_require__("a39c"); 1362 | var enumBugKeys = __webpack_require__("16a3"); 1363 | 1364 | module.exports = Object.keys || function keys(O) { 1365 | return $keys(O, enumBugKeys); 1366 | }; 1367 | 1368 | 1369 | /***/ }), 1370 | 1371 | /***/ "94dd": 1372 | /***/ (function(module, exports, __webpack_require__) { 1373 | 1374 | // 7.1.15 ToLength 1375 | var toInteger = __webpack_require__("f602"); 1376 | var min = Math.min; 1377 | module.exports = function (it) { 1378 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 1379 | }; 1380 | 1381 | 1382 | /***/ }), 1383 | 1384 | /***/ "96bc": 1385 | /***/ (function(module, exports, __webpack_require__) { 1386 | 1387 | // Works with __proto__ only. Old v8 can't work with null proto objects. 1388 | /* eslint-disable no-proto */ 1389 | var isObject = __webpack_require__("0746"); 1390 | var anObject = __webpack_require__("8752"); 1391 | var check = function (O, proto) { 1392 | anObject(O); 1393 | if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); 1394 | }; 1395 | module.exports = { 1396 | set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line 1397 | function (test, buggy, set) { 1398 | try { 1399 | set = __webpack_require__("e628")(Function.call, __webpack_require__("16eb").f(Object.prototype, '__proto__').set, 2); 1400 | set(test, []); 1401 | buggy = !(test instanceof Array); 1402 | } catch (e) { buggy = true; } 1403 | return function setPrototypeOf(O, proto) { 1404 | check(O, proto); 1405 | if (buggy) O.__proto__ = proto; 1406 | else set(O, proto); 1407 | return O; 1408 | }; 1409 | }({}, false) : undefined), 1410 | check: check 1411 | }; 1412 | 1413 | 1414 | /***/ }), 1415 | 1416 | /***/ "9807": 1417 | /***/ (function(module, exports, __webpack_require__) { 1418 | 1419 | // 7.1.13 ToObject(argument) 1420 | var defined = __webpack_require__("5c8d"); 1421 | module.exports = function (it) { 1422 | return Object(defined(it)); 1423 | }; 1424 | 1425 | 1426 | /***/ }), 1427 | 1428 | /***/ "988a": 1429 | /***/ (function(module, exports) { 1430 | 1431 | // document.currentScript polyfill by Adam Miller 1432 | 1433 | // MIT license 1434 | 1435 | (function(document){ 1436 | var currentScript = "currentScript", 1437 | scripts = document.getElementsByTagName('script'); // Live NodeList collection 1438 | 1439 | // If browser needs currentScript polyfill, add get currentScript() to the document object 1440 | if (!(currentScript in document)) { 1441 | Object.defineProperty(document, currentScript, { 1442 | get: function(){ 1443 | 1444 | // IE 6-10 supports script readyState 1445 | // IE 10+ support stack trace 1446 | try { throw new Error(); } 1447 | catch (err) { 1448 | 1449 | // Find the second match for the "at" string to get file src url from stack. 1450 | // Specifically works with the format of stack traces in IE. 1451 | var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1]; 1452 | 1453 | // For all scripts on the page, if src matches or if ready state is interactive, return the script tag 1454 | for(i in scripts){ 1455 | if(scripts[i].src == res || scripts[i].readyState == "interactive"){ 1456 | return scripts[i]; 1457 | } 1458 | } 1459 | 1460 | // If no match, return null 1461 | return null; 1462 | } 1463 | } 1464 | }); 1465 | } 1466 | })(document); 1467 | 1468 | 1469 | /***/ }), 1470 | 1471 | /***/ "9cc0": 1472 | /***/ (function(module, exports) { 1473 | 1474 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 1475 | var global = module.exports = typeof window != 'undefined' && window.Math == Math 1476 | ? window : typeof self != 'undefined' && self.Math == Math ? self 1477 | // eslint-disable-next-line no-new-func 1478 | : Function('return this')(); 1479 | if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 1480 | 1481 | 1482 | /***/ }), 1483 | 1484 | /***/ "a165": 1485 | /***/ (function(module, exports, __webpack_require__) { 1486 | 1487 | var toInteger = __webpack_require__("f602"); 1488 | var max = Math.max; 1489 | var min = Math.min; 1490 | module.exports = function (index, length) { 1491 | index = toInteger(index); 1492 | return index < 0 ? max(index + length, 0) : min(index, length); 1493 | }; 1494 | 1495 | 1496 | /***/ }), 1497 | 1498 | /***/ "a39c": 1499 | /***/ (function(module, exports, __webpack_require__) { 1500 | 1501 | var has = __webpack_require__("75b9"); 1502 | var toIObject = __webpack_require__("18de"); 1503 | var arrayIndexOf = __webpack_require__("25a2")(false); 1504 | var IE_PROTO = __webpack_require__("77dd")('IE_PROTO'); 1505 | 1506 | module.exports = function (object, names) { 1507 | var O = toIObject(object); 1508 | var i = 0; 1509 | var result = []; 1510 | var key; 1511 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 1512 | // Don't enum bug & hidden keys 1513 | while (names.length > i) if (has(O, key = names[i++])) { 1514 | ~arrayIndexOf(result, key) || result.push(key); 1515 | } 1516 | return result; 1517 | }; 1518 | 1519 | 1520 | /***/ }), 1521 | 1522 | /***/ "a9e6": 1523 | /***/ (function(module, exports) { 1524 | 1525 | module.exports = function (it) { 1526 | if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 1527 | return it; 1528 | }; 1529 | 1530 | 1531 | /***/ }), 1532 | 1533 | /***/ "afa2": 1534 | /***/ (function(module, exports) { 1535 | 1536 | module.exports = function (bitmap, value) { 1537 | return { 1538 | enumerable: !(bitmap & 1), 1539 | configurable: !(bitmap & 2), 1540 | writable: !(bitmap & 4), 1541 | value: value 1542 | }; 1543 | }; 1544 | 1545 | 1546 | /***/ }), 1547 | 1548 | /***/ "afca": 1549 | /***/ (function(module, exports) { 1550 | 1551 | exports.f = {}.propertyIsEnumerable; 1552 | 1553 | 1554 | /***/ }), 1555 | 1556 | /***/ "b375": 1557 | /***/ (function(module, exports, __webpack_require__) { 1558 | 1559 | var dP = __webpack_require__("4318"); 1560 | var anObject = __webpack_require__("8752"); 1561 | var getKeys = __webpack_require__("8e88"); 1562 | 1563 | module.exports = __webpack_require__("3cdf") ? Object.defineProperties : function defineProperties(O, Properties) { 1564 | anObject(O); 1565 | var keys = getKeys(Properties); 1566 | var length = keys.length; 1567 | var i = 0; 1568 | var P; 1569 | while (length > i) dP.f(O, P = keys[i++], Properties[P]); 1570 | return O; 1571 | }; 1572 | 1573 | 1574 | /***/ }), 1575 | 1576 | /***/ "bdea": 1577 | /***/ (function(module, exports, __webpack_require__) { 1578 | 1579 | var $export = __webpack_require__("37e2"); 1580 | var defined = __webpack_require__("5c8d"); 1581 | var fails = __webpack_require__("c151"); 1582 | var spaces = __webpack_require__("f134"); 1583 | var space = '[' + spaces + ']'; 1584 | var non = '\u200b\u0085'; 1585 | var ltrim = RegExp('^' + space + space + '*'); 1586 | var rtrim = RegExp(space + space + '*$'); 1587 | 1588 | var exporter = function (KEY, exec, ALIAS) { 1589 | var exp = {}; 1590 | var FORCE = fails(function () { 1591 | return !!spaces[KEY]() || non[KEY]() != non; 1592 | }); 1593 | var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; 1594 | if (ALIAS) exp[ALIAS] = fn; 1595 | $export($export.P + $export.F * FORCE, 'String', exp); 1596 | }; 1597 | 1598 | // 1 -> String#trimLeft 1599 | // 2 -> String#trimRight 1600 | // 3 -> String#trim 1601 | var trim = exporter.trim = function (string, TYPE) { 1602 | string = String(defined(string)); 1603 | if (TYPE & 1) string = string.replace(ltrim, ''); 1604 | if (TYPE & 2) string = string.replace(rtrim, ''); 1605 | return string; 1606 | }; 1607 | 1608 | module.exports = exporter; 1609 | 1610 | 1611 | /***/ }), 1612 | 1613 | /***/ "c151": 1614 | /***/ (function(module, exports) { 1615 | 1616 | module.exports = function (exec) { 1617 | try { 1618 | return !!exec(); 1619 | } catch (e) { 1620 | return true; 1621 | } 1622 | }; 1623 | 1624 | 1625 | /***/ }), 1626 | 1627 | /***/ "c200": 1628 | /***/ (function(module, exports, __webpack_require__) { 1629 | 1630 | "use strict"; 1631 | 1632 | var regexpExec = __webpack_require__("64a7"); 1633 | __webpack_require__("37e2")({ 1634 | target: 'RegExp', 1635 | proto: true, 1636 | forced: regexpExec !== /./.exec 1637 | }, { 1638 | exec: regexpExec 1639 | }); 1640 | 1641 | 1642 | /***/ }), 1643 | 1644 | /***/ "d2a9": 1645 | /***/ (function(module, exports, __webpack_require__) { 1646 | 1647 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 1648 | var cof = __webpack_require__("4a0f"); 1649 | // eslint-disable-next-line no-prototype-builtins 1650 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 1651 | return cof(it) == 'String' ? it.split('') : Object(it); 1652 | }; 1653 | 1654 | 1655 | /***/ }), 1656 | 1657 | /***/ "d50f": 1658 | /***/ (function(module, exports, __webpack_require__) { 1659 | 1660 | "use strict"; 1661 | 1662 | __webpack_require__("c200"); 1663 | var redefine = __webpack_require__("22a5"); 1664 | var hide = __webpack_require__("317e"); 1665 | var fails = __webpack_require__("c151"); 1666 | var defined = __webpack_require__("5c8d"); 1667 | var wks = __webpack_require__("edef"); 1668 | var regexpExec = __webpack_require__("64a7"); 1669 | 1670 | var SPECIES = wks('species'); 1671 | 1672 | var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { 1673 | // #replace needs built-in support for named groups. 1674 | // #match works fine because it just return the exec results, even if it has 1675 | // a "grops" property. 1676 | var re = /./; 1677 | re.exec = function () { 1678 | var result = []; 1679 | result.groups = { a: '7' }; 1680 | return result; 1681 | }; 1682 | return ''.replace(re, '$') !== '7'; 1683 | }); 1684 | 1685 | var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () { 1686 | // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec 1687 | var re = /(?:)/; 1688 | var originalExec = re.exec; 1689 | re.exec = function () { return originalExec.apply(this, arguments); }; 1690 | var result = 'ab'.split(re); 1691 | return result.length === 2 && result[0] === 'a' && result[1] === 'b'; 1692 | })(); 1693 | 1694 | module.exports = function (KEY, length, exec) { 1695 | var SYMBOL = wks(KEY); 1696 | 1697 | var DELEGATES_TO_SYMBOL = !fails(function () { 1698 | // String methods call symbol-named RegEp methods 1699 | var O = {}; 1700 | O[SYMBOL] = function () { return 7; }; 1701 | return ''[KEY](O) != 7; 1702 | }); 1703 | 1704 | var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () { 1705 | // Symbol-named RegExp methods call .exec 1706 | var execCalled = false; 1707 | var re = /a/; 1708 | re.exec = function () { execCalled = true; return null; }; 1709 | if (KEY === 'split') { 1710 | // RegExp[@@split] doesn't call the regex's exec method, but first creates 1711 | // a new one. We need to return the patched regex when creating the new one. 1712 | re.constructor = {}; 1713 | re.constructor[SPECIES] = function () { return re; }; 1714 | } 1715 | re[SYMBOL](''); 1716 | return !execCalled; 1717 | }) : undefined; 1718 | 1719 | if ( 1720 | !DELEGATES_TO_SYMBOL || 1721 | !DELEGATES_TO_EXEC || 1722 | (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) || 1723 | (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) 1724 | ) { 1725 | var nativeRegExpMethod = /./[SYMBOL]; 1726 | var fns = exec( 1727 | defined, 1728 | SYMBOL, 1729 | ''[KEY], 1730 | function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) { 1731 | if (regexp.exec === regexpExec) { 1732 | if (DELEGATES_TO_SYMBOL && !forceStringMethod) { 1733 | // The native String method already delegates to @@method (this 1734 | // polyfilled function), leasing to infinite recursion. 1735 | // We avoid it by directly calling the native @@method method. 1736 | return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) }; 1737 | } 1738 | return { done: true, value: nativeMethod.call(str, regexp, arg2) }; 1739 | } 1740 | return { done: false }; 1741 | } 1742 | ); 1743 | var strfn = fns[0]; 1744 | var rxfn = fns[1]; 1745 | 1746 | redefine(String.prototype, KEY, strfn); 1747 | hide(RegExp.prototype, SYMBOL, length == 2 1748 | // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) 1749 | // 21.2.5.11 RegExp.prototype[@@split](string, limit) 1750 | ? function (string, arg) { return rxfn.call(string, this, arg); } 1751 | // 21.2.5.6 RegExp.prototype[@@match](string) 1752 | // 21.2.5.9 RegExp.prototype[@@search](string) 1753 | : function (string) { return rxfn.call(string, this); } 1754 | ); 1755 | } 1756 | }; 1757 | 1758 | 1759 | /***/ }), 1760 | 1761 | /***/ "e006": 1762 | /***/ (function(module, exports, __webpack_require__) { 1763 | 1764 | var toInteger = __webpack_require__("f602"); 1765 | var defined = __webpack_require__("5c8d"); 1766 | // true -> String#at 1767 | // false -> String#codePointAt 1768 | module.exports = function (TO_STRING) { 1769 | return function (that, pos) { 1770 | var s = String(defined(that)); 1771 | var i = toInteger(pos); 1772 | var l = s.length; 1773 | var a, b; 1774 | if (i < 0 || i >= l) return TO_STRING ? '' : undefined; 1775 | a = s.charCodeAt(i); 1776 | return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff 1777 | ? TO_STRING ? s.charAt(i) : a 1778 | : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; 1779 | }; 1780 | }; 1781 | 1782 | 1783 | /***/ }), 1784 | 1785 | /***/ "e036": 1786 | /***/ (function(module, exports, __webpack_require__) { 1787 | 1788 | var core = __webpack_require__("5d07"); 1789 | var global = __webpack_require__("9cc0"); 1790 | var SHARED = '__core-js_shared__'; 1791 | var store = global[SHARED] || (global[SHARED] = {}); 1792 | 1793 | (module.exports = function (key, value) { 1794 | return store[key] || (store[key] = value !== undefined ? value : {}); 1795 | })('versions', []).push({ 1796 | version: core.version, 1797 | mode: __webpack_require__("0a5c") ? 'pure' : 'global', 1798 | copyright: '© 2019 Denis Pushkarev (zloirock.ru)' 1799 | }); 1800 | 1801 | 1802 | /***/ }), 1803 | 1804 | /***/ "e628": 1805 | /***/ (function(module, exports, __webpack_require__) { 1806 | 1807 | // optional / simple context binding 1808 | var aFunction = __webpack_require__("a9e6"); 1809 | module.exports = function (fn, that, length) { 1810 | aFunction(fn); 1811 | if (that === undefined) return fn; 1812 | switch (length) { 1813 | case 1: return function (a) { 1814 | return fn.call(that, a); 1815 | }; 1816 | case 2: return function (a, b) { 1817 | return fn.call(that, a, b); 1818 | }; 1819 | case 3: return function (a, b, c) { 1820 | return fn.call(that, a, b, c); 1821 | }; 1822 | } 1823 | return function (/* ...args */) { 1824 | return fn.apply(that, arguments); 1825 | }; 1826 | }; 1827 | 1828 | 1829 | /***/ }), 1830 | 1831 | /***/ "e96a": 1832 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 1833 | 1834 | "use strict"; 1835 | /* harmony import */ var _nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_css_loader_index_js_ref_6_oneOf_1_1_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_loaders_stylePostLoader_js_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_cache_loader_dist_cjs_js_ref_0_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_index_js_vue_loader_options_points_vue_vue_type_style_index_0_id_732ec91c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fb33"); 1836 | /* harmony import */ var _nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_css_loader_index_js_ref_6_oneOf_1_1_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_loaders_stylePostLoader_js_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_cache_loader_dist_cjs_js_ref_0_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_index_js_vue_loader_options_points_vue_vue_type_style_index_0_id_732ec91c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_css_loader_index_js_ref_6_oneOf_1_1_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_loaders_stylePostLoader_js_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_cache_loader_dist_cjs_js_ref_0_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_index_js_vue_loader_options_points_vue_vue_type_style_index_0_id_732ec91c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__); 1837 | /* unused harmony reexport * */ 1838 | /* unused harmony default export */ var _unused_webpack_default_export = (_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_css_loader_index_js_ref_6_oneOf_1_1_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_loaders_stylePostLoader_js_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_cache_loader_dist_cjs_js_ref_0_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_index_js_vue_loader_options_points_vue_vue_type_style_index_0_id_732ec91c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); 1839 | 1840 | /***/ }), 1841 | 1842 | /***/ "eb62": 1843 | /***/ (function(module, exports, __webpack_require__) { 1844 | 1845 | // getting tag from 19.1.3.6 Object.prototype.toString() 1846 | var cof = __webpack_require__("4a0f"); 1847 | var TAG = __webpack_require__("edef")('toStringTag'); 1848 | // ES3 wrong here 1849 | var ARG = cof(function () { return arguments; }()) == 'Arguments'; 1850 | 1851 | // fallback for IE11 Script Access Denied error 1852 | var tryGet = function (it, key) { 1853 | try { 1854 | return it[key]; 1855 | } catch (e) { /* empty */ } 1856 | }; 1857 | 1858 | module.exports = function (it) { 1859 | var O, T, B; 1860 | return it === undefined ? 'Undefined' : it === null ? 'Null' 1861 | // @@toStringTag case 1862 | : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T 1863 | // builtinTag case 1864 | : ARG ? cof(O) 1865 | // ES3 arguments fallback 1866 | : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; 1867 | }; 1868 | 1869 | 1870 | /***/ }), 1871 | 1872 | /***/ "edef": 1873 | /***/ (function(module, exports, __webpack_require__) { 1874 | 1875 | var store = __webpack_require__("e036")('wks'); 1876 | var uid = __webpack_require__("2ef6"); 1877 | var Symbol = __webpack_require__("9cc0").Symbol; 1878 | var USE_SYMBOL = typeof Symbol == 'function'; 1879 | 1880 | var $exports = module.exports = function (name) { 1881 | return store[name] || (store[name] = 1882 | USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); 1883 | }; 1884 | 1885 | $exports.store = store; 1886 | 1887 | 1888 | /***/ }), 1889 | 1890 | /***/ "ef4d": 1891 | /***/ (function(module, exports, __webpack_require__) { 1892 | 1893 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 1894 | var anObject = __webpack_require__("8752"); 1895 | var dPs = __webpack_require__("b375"); 1896 | var enumBugKeys = __webpack_require__("16a3"); 1897 | var IE_PROTO = __webpack_require__("77dd")('IE_PROTO'); 1898 | var Empty = function () { /* empty */ }; 1899 | var PROTOTYPE = 'prototype'; 1900 | 1901 | // Create object with fake `null` prototype: use iframe Object with cleared prototype 1902 | var createDict = function () { 1903 | // Thrash, waste and sodomy: IE GC bug 1904 | var iframe = __webpack_require__("3235")('iframe'); 1905 | var i = enumBugKeys.length; 1906 | var lt = '<'; 1907 | var gt = '>'; 1908 | var iframeDocument; 1909 | iframe.style.display = 'none'; 1910 | __webpack_require__("3c67").appendChild(iframe); 1911 | iframe.src = 'javascript:'; // eslint-disable-line no-script-url 1912 | // createDict = iframe.contentWindow.Object; 1913 | // html.removeChild(iframe); 1914 | iframeDocument = iframe.contentWindow.document; 1915 | iframeDocument.open(); 1916 | iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); 1917 | iframeDocument.close(); 1918 | createDict = iframeDocument.F; 1919 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 1920 | return createDict(); 1921 | }; 1922 | 1923 | module.exports = Object.create || function create(O, Properties) { 1924 | var result; 1925 | if (O !== null) { 1926 | Empty[PROTOTYPE] = anObject(O); 1927 | result = new Empty(); 1928 | Empty[PROTOTYPE] = null; 1929 | // add "__proto__" for Object.getPrototypeOf polyfill 1930 | result[IE_PROTO] = O; 1931 | } else result = createDict(); 1932 | return Properties === undefined ? result : dPs(result, Properties); 1933 | }; 1934 | 1935 | 1936 | /***/ }), 1937 | 1938 | /***/ "f134": 1939 | /***/ (function(module, exports) { 1940 | 1941 | module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + 1942 | '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; 1943 | 1944 | 1945 | /***/ }), 1946 | 1947 | /***/ "f602": 1948 | /***/ (function(module, exports) { 1949 | 1950 | // 7.1.4 ToInteger 1951 | var ceil = Math.ceil; 1952 | var floor = Math.floor; 1953 | module.exports = function (it) { 1954 | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 1955 | }; 1956 | 1957 | 1958 | /***/ }), 1959 | 1960 | /***/ "fb33": 1961 | /***/ (function(module, exports, __webpack_require__) { 1962 | 1963 | // extracted by mini-css-extract-plugin 1964 | 1965 | /***/ }) 1966 | 1967 | /******/ }); 1968 | //# sourceMappingURL=main.common.js.map -------------------------------------------------------------------------------- /dist/main.css: -------------------------------------------------------------------------------- 1 | .center-point[data-v-732ec91c]{display:flex;width:100%;white-space:nowrap;justify-content:center;align-items:center;height:40px}.center-point>.item[data-v-732ec91c]{display:inline-block;width:10px;height:10px;border-radius:5px;background:grey;margin:0 10px;cursor:pointer;transition:all .5s}.center-point>.item.cur[data-v-732ec91c]{background:#fff;width:20px} -------------------------------------------------------------------------------- /dist/main.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["main"] = factory(); 8 | else 9 | root["main"] = 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 = "428f"); 95 | /******/ }) 96 | /************************************************************************/ 97 | /******/ ({ 98 | 99 | /***/ "0746": 100 | /***/ (function(module, exports) { 101 | 102 | module.exports = function (it) { 103 | return typeof it === 'object' ? it !== null : typeof it === 'function'; 104 | }; 105 | 106 | 107 | /***/ }), 108 | 109 | /***/ "0a5c": 110 | /***/ (function(module, exports) { 111 | 112 | module.exports = false; 113 | 114 | 115 | /***/ }), 116 | 117 | /***/ "0b08": 118 | /***/ (function(module, exports, __webpack_require__) { 119 | 120 | "use strict"; 121 | 122 | 123 | var classof = __webpack_require__("eb62"); 124 | var builtinExec = RegExp.prototype.exec; 125 | 126 | // `RegExpExec` abstract operation 127 | // https://tc39.github.io/ecma262/#sec-regexpexec 128 | module.exports = function (R, S) { 129 | var exec = R.exec; 130 | if (typeof exec === 'function') { 131 | var result = exec.call(R, S); 132 | if (typeof result !== 'object') { 133 | throw new TypeError('RegExp exec method returned something other than an Object or null'); 134 | } 135 | return result; 136 | } 137 | if (classof(R) !== 'RegExp') { 138 | throw new TypeError('RegExp#exec called on incompatible receiver'); 139 | } 140 | return builtinExec.call(R, S); 141 | }; 142 | 143 | 144 | /***/ }), 145 | 146 | /***/ "0d74": 147 | /***/ (function(module, exports, __webpack_require__) { 148 | 149 | "use strict"; 150 | 151 | 152 | var anObject = __webpack_require__("8752"); 153 | var toObject = __webpack_require__("9807"); 154 | var toLength = __webpack_require__("94dd"); 155 | var toInteger = __webpack_require__("f602"); 156 | var advanceStringIndex = __webpack_require__("39b3"); 157 | var regExpExec = __webpack_require__("0b08"); 158 | var max = Math.max; 159 | var min = Math.min; 160 | var floor = Math.floor; 161 | var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g; 162 | var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g; 163 | 164 | var maybeToString = function (it) { 165 | return it === undefined ? it : String(it); 166 | }; 167 | 168 | // @@replace logic 169 | __webpack_require__("d50f")('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) { 170 | return [ 171 | // `String.prototype.replace` method 172 | // https://tc39.github.io/ecma262/#sec-string.prototype.replace 173 | function replace(searchValue, replaceValue) { 174 | var O = defined(this); 175 | var fn = searchValue == undefined ? undefined : searchValue[REPLACE]; 176 | return fn !== undefined 177 | ? fn.call(searchValue, O, replaceValue) 178 | : $replace.call(String(O), searchValue, replaceValue); 179 | }, 180 | // `RegExp.prototype[@@replace]` method 181 | // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace 182 | function (regexp, replaceValue) { 183 | var res = maybeCallNative($replace, regexp, this, replaceValue); 184 | if (res.done) return res.value; 185 | 186 | var rx = anObject(regexp); 187 | var S = String(this); 188 | var functionalReplace = typeof replaceValue === 'function'; 189 | if (!functionalReplace) replaceValue = String(replaceValue); 190 | var global = rx.global; 191 | if (global) { 192 | var fullUnicode = rx.unicode; 193 | rx.lastIndex = 0; 194 | } 195 | var results = []; 196 | while (true) { 197 | var result = regExpExec(rx, S); 198 | if (result === null) break; 199 | results.push(result); 200 | if (!global) break; 201 | var matchStr = String(result[0]); 202 | if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); 203 | } 204 | var accumulatedResult = ''; 205 | var nextSourcePosition = 0; 206 | for (var i = 0; i < results.length; i++) { 207 | result = results[i]; 208 | var matched = String(result[0]); 209 | var position = max(min(toInteger(result.index), S.length), 0); 210 | var captures = []; 211 | // NOTE: This is equivalent to 212 | // captures = result.slice(1).map(maybeToString) 213 | // but for some reason `nativeSlice.call(result, 1, result.length)` (called in 214 | // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and 215 | // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. 216 | for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j])); 217 | var namedCaptures = result.groups; 218 | if (functionalReplace) { 219 | var replacerArgs = [matched].concat(captures, position, S); 220 | if (namedCaptures !== undefined) replacerArgs.push(namedCaptures); 221 | var replacement = String(replaceValue.apply(undefined, replacerArgs)); 222 | } else { 223 | replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); 224 | } 225 | if (position >= nextSourcePosition) { 226 | accumulatedResult += S.slice(nextSourcePosition, position) + replacement; 227 | nextSourcePosition = position + matched.length; 228 | } 229 | } 230 | return accumulatedResult + S.slice(nextSourcePosition); 231 | } 232 | ]; 233 | 234 | // https://tc39.github.io/ecma262/#sec-getsubstitution 235 | function getSubstitution(matched, str, position, captures, namedCaptures, replacement) { 236 | var tailPos = position + matched.length; 237 | var m = captures.length; 238 | var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; 239 | if (namedCaptures !== undefined) { 240 | namedCaptures = toObject(namedCaptures); 241 | symbols = SUBSTITUTION_SYMBOLS; 242 | } 243 | return $replace.call(replacement, symbols, function (match, ch) { 244 | var capture; 245 | switch (ch.charAt(0)) { 246 | case '$': return '$'; 247 | case '&': return matched; 248 | case '`': return str.slice(0, position); 249 | case "'": return str.slice(tailPos); 250 | case '<': 251 | capture = namedCaptures[ch.slice(1, -1)]; 252 | break; 253 | default: // \d\d? 254 | var n = +ch; 255 | if (n === 0) return match; 256 | if (n > m) { 257 | var f = floor(n / 10); 258 | if (f === 0) return match; 259 | if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1); 260 | return match; 261 | } 262 | capture = captures[n - 1]; 263 | } 264 | return capture === undefined ? '' : capture; 265 | }); 266 | } 267 | }); 268 | 269 | 270 | /***/ }), 271 | 272 | /***/ "0ea8": 273 | /***/ (function(module, exports, __webpack_require__) { 274 | 275 | // 7.1.1 ToPrimitive(input [, PreferredType]) 276 | var isObject = __webpack_require__("0746"); 277 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 278 | // and the second argument - flag - preferred type is a string 279 | module.exports = function (it, S) { 280 | if (!isObject(it)) return it; 281 | var fn, val; 282 | if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 283 | if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; 284 | if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 285 | throw TypeError("Can't convert object to primitive value"); 286 | }; 287 | 288 | 289 | /***/ }), 290 | 291 | /***/ "16a3": 292 | /***/ (function(module, exports) { 293 | 294 | // IE 8- don't enum bug keys 295 | module.exports = ( 296 | 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 297 | ).split(','); 298 | 299 | 300 | /***/ }), 301 | 302 | /***/ "16eb": 303 | /***/ (function(module, exports, __webpack_require__) { 304 | 305 | var pIE = __webpack_require__("afca"); 306 | var createDesc = __webpack_require__("afa2"); 307 | var toIObject = __webpack_require__("18de"); 308 | var toPrimitive = __webpack_require__("0ea8"); 309 | var has = __webpack_require__("75b9"); 310 | var IE8_DOM_DEFINE = __webpack_require__("3e86"); 311 | var gOPD = Object.getOwnPropertyDescriptor; 312 | 313 | exports.f = __webpack_require__("3cdf") ? gOPD : function getOwnPropertyDescriptor(O, P) { 314 | O = toIObject(O); 315 | P = toPrimitive(P, true); 316 | if (IE8_DOM_DEFINE) try { 317 | return gOPD(O, P); 318 | } catch (e) { /* empty */ } 319 | if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 320 | }; 321 | 322 | 323 | /***/ }), 324 | 325 | /***/ "18de": 326 | /***/ (function(module, exports, __webpack_require__) { 327 | 328 | // to indexed object, toObject with fallback for non-array-like ES3 strings 329 | var IObject = __webpack_require__("d2a9"); 330 | var defined = __webpack_require__("5c8d"); 331 | module.exports = function (it) { 332 | return IObject(defined(it)); 333 | }; 334 | 335 | 336 | /***/ }), 337 | 338 | /***/ "22a5": 339 | /***/ (function(module, exports, __webpack_require__) { 340 | 341 | var global = __webpack_require__("9cc0"); 342 | var hide = __webpack_require__("317e"); 343 | var has = __webpack_require__("75b9"); 344 | var SRC = __webpack_require__("2ef6")('src'); 345 | var $toString = __webpack_require__("2921"); 346 | var TO_STRING = 'toString'; 347 | var TPL = ('' + $toString).split(TO_STRING); 348 | 349 | __webpack_require__("5d07").inspectSource = function (it) { 350 | return $toString.call(it); 351 | }; 352 | 353 | (module.exports = function (O, key, val, safe) { 354 | var isFunction = typeof val == 'function'; 355 | if (isFunction) has(val, 'name') || hide(val, 'name', key); 356 | if (O[key] === val) return; 357 | if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); 358 | if (O === global) { 359 | O[key] = val; 360 | } else if (!safe) { 361 | delete O[key]; 362 | hide(O, key, val); 363 | } else if (O[key]) { 364 | O[key] = val; 365 | } else { 366 | hide(O, key, val); 367 | } 368 | // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative 369 | })(Function.prototype, TO_STRING, function toString() { 370 | return typeof this == 'function' && this[SRC] || $toString.call(this); 371 | }); 372 | 373 | 374 | /***/ }), 375 | 376 | /***/ "25a2": 377 | /***/ (function(module, exports, __webpack_require__) { 378 | 379 | // false -> Array#indexOf 380 | // true -> Array#includes 381 | var toIObject = __webpack_require__("18de"); 382 | var toLength = __webpack_require__("94dd"); 383 | var toAbsoluteIndex = __webpack_require__("a165"); 384 | module.exports = function (IS_INCLUDES) { 385 | return function ($this, el, fromIndex) { 386 | var O = toIObject($this); 387 | var length = toLength(O.length); 388 | var index = toAbsoluteIndex(fromIndex, length); 389 | var value; 390 | // Array#includes uses SameValueZero equality algorithm 391 | // eslint-disable-next-line no-self-compare 392 | if (IS_INCLUDES && el != el) while (length > index) { 393 | value = O[index++]; 394 | // eslint-disable-next-line no-self-compare 395 | if (value != value) return true; 396 | // Array#indexOf ignores holes, Array#includes - not 397 | } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 398 | if (O[index] === el) return IS_INCLUDES || index || 0; 399 | } return !IS_INCLUDES && -1; 400 | }; 401 | }; 402 | 403 | 404 | /***/ }), 405 | 406 | /***/ "2921": 407 | /***/ (function(module, exports, __webpack_require__) { 408 | 409 | module.exports = __webpack_require__("e036")('native-function-to-string', Function.toString); 410 | 411 | 412 | /***/ }), 413 | 414 | /***/ "2ef6": 415 | /***/ (function(module, exports) { 416 | 417 | var id = 0; 418 | var px = Math.random(); 419 | module.exports = function (key) { 420 | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 421 | }; 422 | 423 | 424 | /***/ }), 425 | 426 | /***/ "317e": 427 | /***/ (function(module, exports, __webpack_require__) { 428 | 429 | var dP = __webpack_require__("4318"); 430 | var createDesc = __webpack_require__("afa2"); 431 | module.exports = __webpack_require__("3cdf") ? function (object, key, value) { 432 | return dP.f(object, key, createDesc(1, value)); 433 | } : function (object, key, value) { 434 | object[key] = value; 435 | return object; 436 | }; 437 | 438 | 439 | /***/ }), 440 | 441 | /***/ "3235": 442 | /***/ (function(module, exports, __webpack_require__) { 443 | 444 | var isObject = __webpack_require__("0746"); 445 | var document = __webpack_require__("9cc0").document; 446 | // typeof document.createElement is 'object' in old IE 447 | var is = isObject(document) && isObject(document.createElement); 448 | module.exports = function (it) { 449 | return is ? document.createElement(it) : {}; 450 | }; 451 | 452 | 453 | /***/ }), 454 | 455 | /***/ "37e2": 456 | /***/ (function(module, exports, __webpack_require__) { 457 | 458 | var global = __webpack_require__("9cc0"); 459 | var core = __webpack_require__("5d07"); 460 | var hide = __webpack_require__("317e"); 461 | var redefine = __webpack_require__("22a5"); 462 | var ctx = __webpack_require__("e628"); 463 | var PROTOTYPE = 'prototype'; 464 | 465 | var $export = function (type, name, source) { 466 | var IS_FORCED = type & $export.F; 467 | var IS_GLOBAL = type & $export.G; 468 | var IS_STATIC = type & $export.S; 469 | var IS_PROTO = type & $export.P; 470 | var IS_BIND = type & $export.B; 471 | var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; 472 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 473 | var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); 474 | var key, own, out, exp; 475 | if (IS_GLOBAL) source = name; 476 | for (key in source) { 477 | // contains in native 478 | own = !IS_FORCED && target && target[key] !== undefined; 479 | // export native or passed 480 | out = (own ? target : source)[key]; 481 | // bind timers to global for call from export context 482 | exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; 483 | // extend global 484 | if (target) redefine(target, key, out, type & $export.U); 485 | // export 486 | if (exports[key] != out) hide(exports, key, exp); 487 | if (IS_PROTO && expProto[key] != out) expProto[key] = out; 488 | } 489 | }; 490 | global.core = core; 491 | // type bitmap 492 | $export.F = 1; // forced 493 | $export.G = 2; // global 494 | $export.S = 4; // static 495 | $export.P = 8; // proto 496 | $export.B = 16; // bind 497 | $export.W = 32; // wrap 498 | $export.U = 64; // safe 499 | $export.R = 128; // real proto method for `library` 500 | module.exports = $export; 501 | 502 | 503 | /***/ }), 504 | 505 | /***/ "39b3": 506 | /***/ (function(module, exports, __webpack_require__) { 507 | 508 | "use strict"; 509 | 510 | var at = __webpack_require__("e006")(true); 511 | 512 | // `AdvanceStringIndex` abstract operation 513 | // https://tc39.github.io/ecma262/#sec-advancestringindex 514 | module.exports = function (S, index, unicode) { 515 | return index + (unicode ? at(S, index).length : 1); 516 | }; 517 | 518 | 519 | /***/ }), 520 | 521 | /***/ "3c2f": 522 | /***/ (function(module, exports, __webpack_require__) { 523 | 524 | "use strict"; 525 | 526 | var global = __webpack_require__("9cc0"); 527 | var has = __webpack_require__("75b9"); 528 | var cof = __webpack_require__("4a0f"); 529 | var inheritIfRequired = __webpack_require__("63df"); 530 | var toPrimitive = __webpack_require__("0ea8"); 531 | var fails = __webpack_require__("c151"); 532 | var gOPN = __webpack_require__("68d4").f; 533 | var gOPD = __webpack_require__("16eb").f; 534 | var dP = __webpack_require__("4318").f; 535 | var $trim = __webpack_require__("bdea").trim; 536 | var NUMBER = 'Number'; 537 | var $Number = global[NUMBER]; 538 | var Base = $Number; 539 | var proto = $Number.prototype; 540 | // Opera ~12 has broken Object#toString 541 | var BROKEN_COF = cof(__webpack_require__("ef4d")(proto)) == NUMBER; 542 | var TRIM = 'trim' in String.prototype; 543 | 544 | // 7.1.3 ToNumber(argument) 545 | var toNumber = function (argument) { 546 | var it = toPrimitive(argument, false); 547 | if (typeof it == 'string' && it.length > 2) { 548 | it = TRIM ? it.trim() : $trim(it, 3); 549 | var first = it.charCodeAt(0); 550 | var third, radix, maxCode; 551 | if (first === 43 || first === 45) { 552 | third = it.charCodeAt(2); 553 | if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix 554 | } else if (first === 48) { 555 | switch (it.charCodeAt(1)) { 556 | case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i 557 | case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i 558 | default: return +it; 559 | } 560 | for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { 561 | code = digits.charCodeAt(i); 562 | // parseInt parses a string to a first unavailable symbol 563 | // but ToNumber should return NaN if a string contains unavailable symbols 564 | if (code < 48 || code > maxCode) return NaN; 565 | } return parseInt(digits, radix); 566 | } 567 | } return +it; 568 | }; 569 | 570 | if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { 571 | $Number = function Number(value) { 572 | var it = arguments.length < 1 ? 0 : value; 573 | var that = this; 574 | return that instanceof $Number 575 | // check on 1..constructor(foo) case 576 | && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER) 577 | ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); 578 | }; 579 | for (var keys = __webpack_require__("3cdf") ? gOPN(Base) : ( 580 | // ES3: 581 | 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + 582 | // ES6 (in case, if modules with ES6 Number statics required before): 583 | 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + 584 | 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' 585 | ).split(','), j = 0, key; keys.length > j; j++) { 586 | if (has(Base, key = keys[j]) && !has($Number, key)) { 587 | dP($Number, key, gOPD(Base, key)); 588 | } 589 | } 590 | $Number.prototype = proto; 591 | proto.constructor = $Number; 592 | __webpack_require__("22a5")(global, NUMBER, $Number); 593 | } 594 | 595 | 596 | /***/ }), 597 | 598 | /***/ "3c67": 599 | /***/ (function(module, exports, __webpack_require__) { 600 | 601 | var document = __webpack_require__("9cc0").document; 602 | module.exports = document && document.documentElement; 603 | 604 | 605 | /***/ }), 606 | 607 | /***/ "3cdf": 608 | /***/ (function(module, exports, __webpack_require__) { 609 | 610 | // Thank's IE8 for his funny defineProperty 611 | module.exports = !__webpack_require__("c151")(function () { 612 | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 613 | }); 614 | 615 | 616 | /***/ }), 617 | 618 | /***/ "3e86": 619 | /***/ (function(module, exports, __webpack_require__) { 620 | 621 | module.exports = !__webpack_require__("3cdf") && !__webpack_require__("c151")(function () { 622 | return Object.defineProperty(__webpack_require__("3235")('div'), 'a', { get: function () { return 7; } }).a != 7; 623 | }); 624 | 625 | 626 | /***/ }), 627 | 628 | /***/ "428f": 629 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 630 | 631 | "use strict"; 632 | // ESM COMPAT FLAG 633 | __webpack_require__.r(__webpack_exports__); 634 | 635 | // CONCATENATED MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js 636 | // This file is imported into lib/wc client bundles. 637 | 638 | if (typeof window !== 'undefined') { 639 | if (true) { 640 | __webpack_require__("988a") 641 | } 642 | 643 | var i 644 | if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) { 645 | __webpack_require__.p = i[1] // eslint-disable-line 646 | } 647 | } 648 | 649 | // Indicate to webpack that this file can be concatenated 650 | /* harmony default export */ var setPublicPath = (null); 651 | 652 | // CONCATENATED MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"63a234b2-vue-loader-template"}!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib??vue-loader-options!./src/BeginGride.vue?vue&type=template&id=3b85eb85& 653 | var BeginGridevue_type_template_id_3b85eb85_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.curIdx < _vm.lists.length)?_c('svg',{staticStyle:{"position":"fixed","left":"0","top":"0","z-index":"999","min-width":"100vw","min-height":"100vh"}},[_vm._l((_vm.lists || []),function(item,idx){return _c('BorderRect',{key:idx,attrs:{"idx":idx,"item":item,"curIdx":_vm.curIdx,"incrment":_vm.incrment,"opacity":_vm.opacity,"len":_vm.lists.length},on:{"neverOpenHandler":_vm.neverOpenHandler}})}),_c('Point',{attrs:{"len":_vm.lists.length,"curIdx":_vm.curIdx,"incrment":_vm.incrment}})],2):_vm._e()} 654 | var staticRenderFns = [] 655 | 656 | 657 | // CONCATENATED MODULE: ./src/BeginGride.vue?vue&type=template&id=3b85eb85& 658 | 659 | // EXTERNAL MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/core-js/modules/es6.number.constructor.js 660 | var es6_number_constructor = __webpack_require__("3c2f"); 661 | 662 | // EXTERNAL MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/core-js/modules/es6.regexp.replace.js 663 | var es6_regexp_replace = __webpack_require__("0d74"); 664 | 665 | // CONCATENATED MODULE: ./src/rect.js 666 | 667 | 668 | var defaultWrapStyle = "color:white;border-radius: 20px;border:dashed 2px white;display: inline-block;padding:10px"; 669 | var lineStyle = "stroke-dasharray: 5px 5px;stroke-width:2px"; 670 | /* harmony default export */ var rect = ({ 671 | props: ["item", "len", "curIdx", "idx", "incrment", "opacity"], 672 | data: function data() { 673 | return { 674 | position: { 675 | left: 200, 676 | top: 200, 677 | height: 200, 678 | width: 200 679 | }, 680 | scrollTop: 0, 681 | scrollLeft: 0, 682 | wrapHeight: 0, 683 | offsetPoint: { 684 | x: 0, 685 | y: 0 686 | } 687 | }; 688 | }, 689 | mounted: function mounted() { 690 | var _this$item$el$getClie = this.item.el.getClientRects()[0], 691 | left = _this$item$el$getClie.left, 692 | top = _this$item$el$getClie.top, 693 | width = _this$item$el$getClie.width, 694 | height = _this$item$el$getClie.height; 695 | this.position = { 696 | left: left, 697 | top: top, 698 | width: width, 699 | height: height 700 | }; 701 | window.addEventListener("scroll", this.autoScroll); 702 | }, 703 | destroyed: function destroyed() { 704 | window.removeEventListener("scroll", this.autoScroll); 705 | }, 706 | methods: { 707 | autoScroll: function autoScroll(e) { 708 | var _this = this; 709 | 710 | window.requestAnimationFrame(function () { 711 | _this.scrollTop = e.target.scrollingElement.scrollTop; 712 | _this.scrollLeft = e.target.scrollingElement.scrollLeft; 713 | }); 714 | }, 715 | neverAlert: function neverAlert(e) { 716 | e.stopPropagation(); 717 | }, 718 | handleChange: function handleChange(e) { 719 | this.$emit('neverOpenHandler', e.target.checked); 720 | 721 | if (e.target.checked) { 722 | window.localStorage.setItem("isfingerPoint", "true"); 723 | } else { 724 | window.localStorage.setItem("isfingerPoint", "false"); 725 | } 726 | } 727 | }, 728 | render: function render() { 729 | var _this2 = this; 730 | 731 | var h = arguments[0]; 732 | var _this$position = this.position, 733 | height = _this$position.height, 734 | left = _this$position.left, 735 | top = _this$position.top; 736 | top -= this.scrollTop; 737 | left -= this.scrollLeft; 738 | var _this$offsetPoint = this.offsetPoint, 739 | x = _this$offsetPoint.x, 740 | y = _this$offsetPoint.y; 741 | return this.curIdx === this.idx && h("g", [h("path", { 742 | "attrs": { 743 | "d": this.path, 744 | "fill": "rgba(0,0,0,".concat(this.opacity ? this.opacity : 0.3) 745 | } 746 | }), h("path", { 747 | "attrs": { 748 | "d": "M \n ".concat(left - 20, " ").concat(top + height / 2, " \n Q ").concat(left - 80 + y, " ").concat(top + height / 2 + x, "\n ").concat(left - 10 + y, " ").concat(top + height + this.wrapHeight + x, "\n "), 749 | "stroke": "white", 750 | "fill": "none" 751 | }, 752 | "style": this.item.lineStyle ? this.item.lineStyle : lineStyle 753 | }), h("foreignObject", { 754 | "attrs": { 755 | "x": this.wrapPosition.left + y, 756 | "y": this.wrapPosition.top + x, 757 | "width": this.wrapPosition.width, 758 | "height": this.wrapPosition.height 759 | }, 760 | "style": "color:white", 761 | "key": "item".concat(this.curIdx) 762 | }, [h("div", { 763 | "style": this.item.style ? this.item.style : defaultWrapStyle, 764 | "ref": "innerContent" 765 | }, [typeof this.item.text === "function" ? this.item.text() : this.item.text, h("br"), this.len - 1 === this.curIdx && h("label", { 766 | "on": { 767 | "click": this.neverAlert 768 | }, 769 | "style": "color:white;font-size:14px;line-height:30px" 770 | }, [h("input", { 771 | "attrs": { 772 | "type": "checkbox", 773 | "select": true 774 | }, 775 | "style": "vertical-align: middle;", 776 | "on": { 777 | "change": this.handleChange 778 | }, 779 | "ref": "checkbox" 780 | }), "\u4E0B\u6B21\u4E0D\u518D\u63D0\u793A"])]), h("span", { 781 | "on": { 782 | "click": function click() { 783 | return _this2.incrment(_this2.curIdx + 1); 784 | } 785 | }, 786 | "style": "float:right;margin:10px;border:solid 1px white;padding:8px;border-radius:5px;cursor:pointer" 787 | }, [this.len - 1 === this.curIdx ? "完成" : "下一步"])])]); 788 | }, 789 | computed: { 790 | wrapPosition: function wrapPosition() { 791 | var _this3 = this; 792 | 793 | var _this$position2 = this.position, 794 | top = _this$position2.top, 795 | left = _this$position2.left; 796 | this.$nextTick().then(function () { 797 | var el = _this3.$refs["innerContent"]; 798 | el && (_this3.wrapHeight = el.offsetHeight); 799 | }); 800 | left -= this.scrollLeft; 801 | top -= this.scrollTop; 802 | var foreignPosition = { 803 | left: left, 804 | top: top + this.position.height + 60, 805 | width: this.item.width ? Number(this.item.width.replace("px", "")) : Number(this.position.width), 806 | height: this.wrapHeight + 60 807 | }; 808 | foreignPosition["bottom"] = foreignPosition.top + foreignPosition.height; 809 | foreignPosition["right"] = foreignPosition.left + foreignPosition.width; 810 | 811 | if (foreignPosition["bottom"] > window.innerHeight && this.scrollTop < this.position.top) { 812 | this.offsetPoint.x = -(foreignPosition["bottom"] - window.innerHeight); 813 | } 814 | 815 | if (foreignPosition["right"] > window.innerWidth) { 816 | this.offsetPoint.y = -(foreignPosition["right"] - window.innerWidth); 817 | } 818 | 819 | if (this.scrollLeft > this.position.left) { 820 | this.offsetPoint.y = this.scrollLeft - this.position.left; 821 | } 822 | 823 | if (this.scrollTop > this.position.top + this.position.height && foreignPosition["bottom"] < window.innerHeight) { 824 | this.offsetPoint.x = this.scrollTop - this.position.top - this.position.height; 825 | } 826 | 827 | return foreignPosition; 828 | }, 829 | path: function path() { 830 | var _this$position3 = this.position, 831 | width = _this$position3.width, 832 | height = _this$position3.height, 833 | left = _this$position3.left, 834 | top = _this$position3.top; 835 | top -= this.scrollTop; 836 | left -= this.scrollLeft; 837 | var wwidth = window.innerWidth, 838 | wheight = window.innerHeight, 839 | padding = this.item.padding || 10; 840 | return "\n M".concat(left - padding, " ").concat(top + height + padding, ",\n 0 ").concat(wheight, ",\n ").concat(wwidth, " ").concat(wheight, ",\n ").concat(wwidth, " 0,\n 0 0,\n 0 ").concat(wheight, ",\n ").concat(left - padding, " ").concat(top + height + padding, ",\n ").concat(left - padding, " ").concat(top - padding, ",\n ").concat(left + width + padding, " ").concat(top - padding, ",\n ").concat(left + width + padding, " ").concat(top + height + padding, "\n Z"); 841 | } 842 | } 843 | }); 844 | // CONCATENATED MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"63a234b2-vue-loader-template"}!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib??vue-loader-options!./src/points.vue?vue&type=template&id=732ec91c&scoped=true& 845 | var pointsvue_type_template_id_732ec91c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('foreignObject',{staticStyle:{"width":"100%","height":"40px"}},[_c('div',{staticClass:"center-point"},_vm._l((new Array(this.len).fill(0)),function(item,idx){return _c('span',{key:idx,class:("item " + (idx === _vm.curIdx && 'cur')),on:{"click":function($event){return _vm.toggleTo(idx)}}})}),0)])} 846 | var pointsvue_type_template_id_732ec91c_scoped_true_staticRenderFns = [] 847 | 848 | 849 | // CONCATENATED MODULE: ./src/points.vue?vue&type=template&id=732ec91c&scoped=true& 850 | 851 | // CONCATENATED MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/thread-loader/dist/cjs.js!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/babel-loader/lib??ref--12-1!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib??vue-loader-options!./src/points.vue?vue&type=script&lang=js& 852 | // 853 | // 854 | // 855 | // 856 | // 857 | // 858 | // 859 | // 860 | // 861 | // 862 | // 863 | // 864 | // 865 | /* harmony default export */ var pointsvue_type_script_lang_js_ = ({ 866 | props: ["len", "curIdx", "incrment"], 867 | data: function data() { 868 | return {}; 869 | }, 870 | methods: { 871 | toggleTo: function toggleTo(idx) { 872 | this.incrment(idx); 873 | } 874 | } 875 | }); 876 | // CONCATENATED MODULE: ./src/points.vue?vue&type=script&lang=js& 877 | /* harmony default export */ var src_pointsvue_type_script_lang_js_ = (pointsvue_type_script_lang_js_); 878 | // EXTERNAL MODULE: ./src/points.vue?vue&type=style&index=0&id=732ec91c&scoped=true&lang=css& 879 | var pointsvue_type_style_index_0_id_732ec91c_scoped_true_lang_css_ = __webpack_require__("e96a"); 880 | 881 | // CONCATENATED MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/runtime/componentNormalizer.js 882 | /* globals __VUE_SSR_CONTEXT__ */ 883 | 884 | // IMPORTANT: Do NOT use ES2015 features in this file (except for modules). 885 | // This module is a runtime utility for cleaner component module output and will 886 | // be included in the final webpack user bundle. 887 | 888 | function normalizeComponent ( 889 | scriptExports, 890 | render, 891 | staticRenderFns, 892 | functionalTemplate, 893 | injectStyles, 894 | scopeId, 895 | moduleIdentifier, /* server only */ 896 | shadowMode /* vue-cli only */ 897 | ) { 898 | // Vue.extend constructor export interop 899 | var options = typeof scriptExports === 'function' 900 | ? scriptExports.options 901 | : scriptExports 902 | 903 | // render functions 904 | if (render) { 905 | options.render = render 906 | options.staticRenderFns = staticRenderFns 907 | options._compiled = true 908 | } 909 | 910 | // functional template 911 | if (functionalTemplate) { 912 | options.functional = true 913 | } 914 | 915 | // scopedId 916 | if (scopeId) { 917 | options._scopeId = 'data-v-' + scopeId 918 | } 919 | 920 | var hook 921 | if (moduleIdentifier) { // server build 922 | hook = function (context) { 923 | // 2.3 injection 924 | context = 925 | context || // cached call 926 | (this.$vnode && this.$vnode.ssrContext) || // stateful 927 | (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional 928 | // 2.2 with runInNewContext: true 929 | if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { 930 | context = __VUE_SSR_CONTEXT__ 931 | } 932 | // inject component styles 933 | if (injectStyles) { 934 | injectStyles.call(this, context) 935 | } 936 | // register component module identifier for async chunk inferrence 937 | if (context && context._registeredComponents) { 938 | context._registeredComponents.add(moduleIdentifier) 939 | } 940 | } 941 | // used by ssr in case component is cached and beforeCreate 942 | // never gets called 943 | options._ssrRegister = hook 944 | } else if (injectStyles) { 945 | hook = shadowMode 946 | ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } 947 | : injectStyles 948 | } 949 | 950 | if (hook) { 951 | if (options.functional) { 952 | // for template-only hot-reload because in that case the render fn doesn't 953 | // go through the normalizer 954 | options._injectStyles = hook 955 | // register for functional component in vue file 956 | var originalRender = options.render 957 | options.render = function renderWithStyleInjection (h, context) { 958 | hook.call(context) 959 | return originalRender(h, context) 960 | } 961 | } else { 962 | // inject component registration as beforeCreate hook 963 | var existing = options.beforeCreate 964 | options.beforeCreate = existing 965 | ? [].concat(existing, hook) 966 | : [hook] 967 | } 968 | } 969 | 970 | return { 971 | exports: scriptExports, 972 | options: options 973 | } 974 | } 975 | 976 | // CONCATENATED MODULE: ./src/points.vue 977 | 978 | 979 | 980 | 981 | 982 | 983 | /* normalize component */ 984 | 985 | var component = normalizeComponent( 986 | src_pointsvue_type_script_lang_js_, 987 | pointsvue_type_template_id_732ec91c_scoped_true_render, 988 | pointsvue_type_template_id_732ec91c_scoped_true_staticRenderFns, 989 | false, 990 | null, 991 | "732ec91c", 992 | null 993 | 994 | ) 995 | 996 | /* harmony default export */ var points = (component.exports); 997 | // CONCATENATED MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/thread-loader/dist/cjs.js!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/babel-loader/lib??ref--12-1!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib??vue-loader-options!./src/BeginGride.vue?vue&type=script&lang=js& 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 | /* harmony default export */ var BeginGridevue_type_script_lang_js_ = ({ 1030 | props: { 1031 | lists: { 1032 | type: Array, 1033 | default: function _default() { 1034 | return []; 1035 | } 1036 | }, 1037 | opacity: { 1038 | type: Number, 1039 | default: 0.4 1040 | }, 1041 | neverOpenHandler: { 1042 | type: Function, 1043 | default: function _default() { 1044 | return {}; 1045 | } 1046 | } 1047 | }, 1048 | components: { 1049 | BorderRect: rect, 1050 | Point: points 1051 | }, 1052 | data: function data() { 1053 | return { 1054 | curIdx: 0, 1055 | position: { 1056 | width: 0, 1057 | height: 0 1058 | } 1059 | }; 1060 | }, 1061 | mounted: function mounted() { 1062 | var _this = this; 1063 | 1064 | this.$nextTick().then(function () { 1065 | _this.position = document.documentElement.getClientRects()[0]; 1066 | }); 1067 | }, 1068 | methods: { 1069 | incrment: function incrment(idx) { 1070 | this.curIdx = idx; 1071 | 1072 | if (idx >= this.lists.length) { 1073 | this.$emit('destory'); 1074 | } 1075 | } 1076 | } 1077 | }); 1078 | // CONCATENATED MODULE: ./src/BeginGride.vue?vue&type=script&lang=js& 1079 | /* harmony default export */ var src_BeginGridevue_type_script_lang_js_ = (BeginGridevue_type_script_lang_js_); 1080 | // CONCATENATED MODULE: ./src/BeginGride.vue 1081 | 1082 | 1083 | 1084 | 1085 | 1086 | /* normalize component */ 1087 | 1088 | var BeginGride_component = normalizeComponent( 1089 | src_BeginGridevue_type_script_lang_js_, 1090 | BeginGridevue_type_template_id_3b85eb85_render, 1091 | staticRenderFns, 1092 | false, 1093 | null, 1094 | null, 1095 | null 1096 | 1097 | ) 1098 | 1099 | /* harmony default export */ var BeginGride = (BeginGride_component.exports); 1100 | // CONCATENATED MODULE: ./src/index.js 1101 | 1102 | /* harmony default export */ var src = ({ 1103 | install: function install(_V) { 1104 | var h = this.$createElement; 1105 | 1106 | _V.prototype.$guide = function (_ref) { 1107 | var _ref$lists = _ref.lists, 1108 | lists = _ref$lists === void 0 ? [] : _ref$lists, 1109 | _ref$opacity = _ref.opacity, 1110 | opacity = _ref$opacity === void 0 ? 0.7 : _ref$opacity, 1111 | _ref$neverOpenHandler = _ref.neverOpenHandler, 1112 | neverOpenHandler = _ref$neverOpenHandler === void 0 ? function () {} : _ref$neverOpenHandler; 1113 | var isfingerPoint = window.localStorage.getItem("isfingerPoint"); 1114 | if (isfingerPoint && isfingerPoint === 'true') return; 1115 | var parent = document.createElement('div'); 1116 | var el = document.createElement('div'); 1117 | parent.appendChild(el); 1118 | document.body.appendChild(parent); 1119 | var vm = new _V({ 1120 | el: el, 1121 | render: function render() { 1122 | var h = arguments[0]; 1123 | return h(BeginGride, { 1124 | "attrs": { 1125 | "lists": lists, 1126 | "opacity": opacity, 1127 | "neverOpenHandler": neverOpenHandler 1128 | }, 1129 | "on": { 1130 | "destory": destroy 1131 | } 1132 | }); 1133 | } 1134 | }); 1135 | 1136 | function destroy() { 1137 | vm.$destroy(); 1138 | parent.innerHTML = ''; 1139 | document.body.removeChild(parent); 1140 | } 1141 | 1142 | return { 1143 | vm: vm, 1144 | destroy: destroy 1145 | }; 1146 | }; 1147 | } 1148 | }); 1149 | // CONCATENATED MODULE: /Users/apple/.nvm/versions/node/v12.16.1/lib/node_modules/@vue/cli-service-global/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js 1150 | 1151 | 1152 | /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src); 1153 | 1154 | 1155 | 1156 | /***/ }), 1157 | 1158 | /***/ "4318": 1159 | /***/ (function(module, exports, __webpack_require__) { 1160 | 1161 | var anObject = __webpack_require__("8752"); 1162 | var IE8_DOM_DEFINE = __webpack_require__("3e86"); 1163 | var toPrimitive = __webpack_require__("0ea8"); 1164 | var dP = Object.defineProperty; 1165 | 1166 | exports.f = __webpack_require__("3cdf") ? Object.defineProperty : function defineProperty(O, P, Attributes) { 1167 | anObject(O); 1168 | P = toPrimitive(P, true); 1169 | anObject(Attributes); 1170 | if (IE8_DOM_DEFINE) try { 1171 | return dP(O, P, Attributes); 1172 | } catch (e) { /* empty */ } 1173 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 1174 | if ('value' in Attributes) O[P] = Attributes.value; 1175 | return O; 1176 | }; 1177 | 1178 | 1179 | /***/ }), 1180 | 1181 | /***/ "4a0f": 1182 | /***/ (function(module, exports) { 1183 | 1184 | var toString = {}.toString; 1185 | 1186 | module.exports = function (it) { 1187 | return toString.call(it).slice(8, -1); 1188 | }; 1189 | 1190 | 1191 | /***/ }), 1192 | 1193 | /***/ "4a72": 1194 | /***/ (function(module, exports, __webpack_require__) { 1195 | 1196 | "use strict"; 1197 | 1198 | // 21.2.5.3 get RegExp.prototype.flags 1199 | var anObject = __webpack_require__("8752"); 1200 | module.exports = function () { 1201 | var that = anObject(this); 1202 | var result = ''; 1203 | if (that.global) result += 'g'; 1204 | if (that.ignoreCase) result += 'i'; 1205 | if (that.multiline) result += 'm'; 1206 | if (that.unicode) result += 'u'; 1207 | if (that.sticky) result += 'y'; 1208 | return result; 1209 | }; 1210 | 1211 | 1212 | /***/ }), 1213 | 1214 | /***/ "5c8d": 1215 | /***/ (function(module, exports) { 1216 | 1217 | // 7.2.1 RequireObjectCoercible(argument) 1218 | module.exports = function (it) { 1219 | if (it == undefined) throw TypeError("Can't call method on " + it); 1220 | return it; 1221 | }; 1222 | 1223 | 1224 | /***/ }), 1225 | 1226 | /***/ "5d07": 1227 | /***/ (function(module, exports) { 1228 | 1229 | var core = module.exports = { version: '2.6.11' }; 1230 | if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 1231 | 1232 | 1233 | /***/ }), 1234 | 1235 | /***/ "63df": 1236 | /***/ (function(module, exports, __webpack_require__) { 1237 | 1238 | var isObject = __webpack_require__("0746"); 1239 | var setPrototypeOf = __webpack_require__("96bc").set; 1240 | module.exports = function (that, target, C) { 1241 | var S = target.constructor; 1242 | var P; 1243 | if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { 1244 | setPrototypeOf(that, P); 1245 | } return that; 1246 | }; 1247 | 1248 | 1249 | /***/ }), 1250 | 1251 | /***/ "64a7": 1252 | /***/ (function(module, exports, __webpack_require__) { 1253 | 1254 | "use strict"; 1255 | 1256 | 1257 | var regexpFlags = __webpack_require__("4a72"); 1258 | 1259 | var nativeExec = RegExp.prototype.exec; 1260 | // This always refers to the native implementation, because the 1261 | // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js, 1262 | // which loads this file before patching the method. 1263 | var nativeReplace = String.prototype.replace; 1264 | 1265 | var patchedExec = nativeExec; 1266 | 1267 | var LAST_INDEX = 'lastIndex'; 1268 | 1269 | var UPDATES_LAST_INDEX_WRONG = (function () { 1270 | var re1 = /a/, 1271 | re2 = /b*/g; 1272 | nativeExec.call(re1, 'a'); 1273 | nativeExec.call(re2, 'a'); 1274 | return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0; 1275 | })(); 1276 | 1277 | // nonparticipating capturing group, copied from es5-shim's String#split patch. 1278 | var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; 1279 | 1280 | var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED; 1281 | 1282 | if (PATCH) { 1283 | patchedExec = function exec(str) { 1284 | var re = this; 1285 | var lastIndex, reCopy, match, i; 1286 | 1287 | if (NPCG_INCLUDED) { 1288 | reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re)); 1289 | } 1290 | if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX]; 1291 | 1292 | match = nativeExec.call(re, str); 1293 | 1294 | if (UPDATES_LAST_INDEX_WRONG && match) { 1295 | re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex; 1296 | } 1297 | if (NPCG_INCLUDED && match && match.length > 1) { 1298 | // Fix browsers whose `exec` methods don't consistently return `undefined` 1299 | // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/ 1300 | // eslint-disable-next-line no-loop-func 1301 | nativeReplace.call(match[0], reCopy, function () { 1302 | for (i = 1; i < arguments.length - 2; i++) { 1303 | if (arguments[i] === undefined) match[i] = undefined; 1304 | } 1305 | }); 1306 | } 1307 | 1308 | return match; 1309 | }; 1310 | } 1311 | 1312 | module.exports = patchedExec; 1313 | 1314 | 1315 | /***/ }), 1316 | 1317 | /***/ "68d4": 1318 | /***/ (function(module, exports, __webpack_require__) { 1319 | 1320 | // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) 1321 | var $keys = __webpack_require__("a39c"); 1322 | var hiddenKeys = __webpack_require__("16a3").concat('length', 'prototype'); 1323 | 1324 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { 1325 | return $keys(O, hiddenKeys); 1326 | }; 1327 | 1328 | 1329 | /***/ }), 1330 | 1331 | /***/ "75b9": 1332 | /***/ (function(module, exports) { 1333 | 1334 | var hasOwnProperty = {}.hasOwnProperty; 1335 | module.exports = function (it, key) { 1336 | return hasOwnProperty.call(it, key); 1337 | }; 1338 | 1339 | 1340 | /***/ }), 1341 | 1342 | /***/ "77dd": 1343 | /***/ (function(module, exports, __webpack_require__) { 1344 | 1345 | var shared = __webpack_require__("e036")('keys'); 1346 | var uid = __webpack_require__("2ef6"); 1347 | module.exports = function (key) { 1348 | return shared[key] || (shared[key] = uid(key)); 1349 | }; 1350 | 1351 | 1352 | /***/ }), 1353 | 1354 | /***/ "8752": 1355 | /***/ (function(module, exports, __webpack_require__) { 1356 | 1357 | var isObject = __webpack_require__("0746"); 1358 | module.exports = function (it) { 1359 | if (!isObject(it)) throw TypeError(it + ' is not an object!'); 1360 | return it; 1361 | }; 1362 | 1363 | 1364 | /***/ }), 1365 | 1366 | /***/ "8e88": 1367 | /***/ (function(module, exports, __webpack_require__) { 1368 | 1369 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) 1370 | var $keys = __webpack_require__("a39c"); 1371 | var enumBugKeys = __webpack_require__("16a3"); 1372 | 1373 | module.exports = Object.keys || function keys(O) { 1374 | return $keys(O, enumBugKeys); 1375 | }; 1376 | 1377 | 1378 | /***/ }), 1379 | 1380 | /***/ "94dd": 1381 | /***/ (function(module, exports, __webpack_require__) { 1382 | 1383 | // 7.1.15 ToLength 1384 | var toInteger = __webpack_require__("f602"); 1385 | var min = Math.min; 1386 | module.exports = function (it) { 1387 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 1388 | }; 1389 | 1390 | 1391 | /***/ }), 1392 | 1393 | /***/ "96bc": 1394 | /***/ (function(module, exports, __webpack_require__) { 1395 | 1396 | // Works with __proto__ only. Old v8 can't work with null proto objects. 1397 | /* eslint-disable no-proto */ 1398 | var isObject = __webpack_require__("0746"); 1399 | var anObject = __webpack_require__("8752"); 1400 | var check = function (O, proto) { 1401 | anObject(O); 1402 | if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); 1403 | }; 1404 | module.exports = { 1405 | set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line 1406 | function (test, buggy, set) { 1407 | try { 1408 | set = __webpack_require__("e628")(Function.call, __webpack_require__("16eb").f(Object.prototype, '__proto__').set, 2); 1409 | set(test, []); 1410 | buggy = !(test instanceof Array); 1411 | } catch (e) { buggy = true; } 1412 | return function setPrototypeOf(O, proto) { 1413 | check(O, proto); 1414 | if (buggy) O.__proto__ = proto; 1415 | else set(O, proto); 1416 | return O; 1417 | }; 1418 | }({}, false) : undefined), 1419 | check: check 1420 | }; 1421 | 1422 | 1423 | /***/ }), 1424 | 1425 | /***/ "9807": 1426 | /***/ (function(module, exports, __webpack_require__) { 1427 | 1428 | // 7.1.13 ToObject(argument) 1429 | var defined = __webpack_require__("5c8d"); 1430 | module.exports = function (it) { 1431 | return Object(defined(it)); 1432 | }; 1433 | 1434 | 1435 | /***/ }), 1436 | 1437 | /***/ "988a": 1438 | /***/ (function(module, exports) { 1439 | 1440 | // document.currentScript polyfill by Adam Miller 1441 | 1442 | // MIT license 1443 | 1444 | (function(document){ 1445 | var currentScript = "currentScript", 1446 | scripts = document.getElementsByTagName('script'); // Live NodeList collection 1447 | 1448 | // If browser needs currentScript polyfill, add get currentScript() to the document object 1449 | if (!(currentScript in document)) { 1450 | Object.defineProperty(document, currentScript, { 1451 | get: function(){ 1452 | 1453 | // IE 6-10 supports script readyState 1454 | // IE 10+ support stack trace 1455 | try { throw new Error(); } 1456 | catch (err) { 1457 | 1458 | // Find the second match for the "at" string to get file src url from stack. 1459 | // Specifically works with the format of stack traces in IE. 1460 | var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1]; 1461 | 1462 | // For all scripts on the page, if src matches or if ready state is interactive, return the script tag 1463 | for(i in scripts){ 1464 | if(scripts[i].src == res || scripts[i].readyState == "interactive"){ 1465 | return scripts[i]; 1466 | } 1467 | } 1468 | 1469 | // If no match, return null 1470 | return null; 1471 | } 1472 | } 1473 | }); 1474 | } 1475 | })(document); 1476 | 1477 | 1478 | /***/ }), 1479 | 1480 | /***/ "9cc0": 1481 | /***/ (function(module, exports) { 1482 | 1483 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 1484 | var global = module.exports = typeof window != 'undefined' && window.Math == Math 1485 | ? window : typeof self != 'undefined' && self.Math == Math ? self 1486 | // eslint-disable-next-line no-new-func 1487 | : Function('return this')(); 1488 | if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 1489 | 1490 | 1491 | /***/ }), 1492 | 1493 | /***/ "a165": 1494 | /***/ (function(module, exports, __webpack_require__) { 1495 | 1496 | var toInteger = __webpack_require__("f602"); 1497 | var max = Math.max; 1498 | var min = Math.min; 1499 | module.exports = function (index, length) { 1500 | index = toInteger(index); 1501 | return index < 0 ? max(index + length, 0) : min(index, length); 1502 | }; 1503 | 1504 | 1505 | /***/ }), 1506 | 1507 | /***/ "a39c": 1508 | /***/ (function(module, exports, __webpack_require__) { 1509 | 1510 | var has = __webpack_require__("75b9"); 1511 | var toIObject = __webpack_require__("18de"); 1512 | var arrayIndexOf = __webpack_require__("25a2")(false); 1513 | var IE_PROTO = __webpack_require__("77dd")('IE_PROTO'); 1514 | 1515 | module.exports = function (object, names) { 1516 | var O = toIObject(object); 1517 | var i = 0; 1518 | var result = []; 1519 | var key; 1520 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 1521 | // Don't enum bug & hidden keys 1522 | while (names.length > i) if (has(O, key = names[i++])) { 1523 | ~arrayIndexOf(result, key) || result.push(key); 1524 | } 1525 | return result; 1526 | }; 1527 | 1528 | 1529 | /***/ }), 1530 | 1531 | /***/ "a9e6": 1532 | /***/ (function(module, exports) { 1533 | 1534 | module.exports = function (it) { 1535 | if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 1536 | return it; 1537 | }; 1538 | 1539 | 1540 | /***/ }), 1541 | 1542 | /***/ "afa2": 1543 | /***/ (function(module, exports) { 1544 | 1545 | module.exports = function (bitmap, value) { 1546 | return { 1547 | enumerable: !(bitmap & 1), 1548 | configurable: !(bitmap & 2), 1549 | writable: !(bitmap & 4), 1550 | value: value 1551 | }; 1552 | }; 1553 | 1554 | 1555 | /***/ }), 1556 | 1557 | /***/ "afca": 1558 | /***/ (function(module, exports) { 1559 | 1560 | exports.f = {}.propertyIsEnumerable; 1561 | 1562 | 1563 | /***/ }), 1564 | 1565 | /***/ "b375": 1566 | /***/ (function(module, exports, __webpack_require__) { 1567 | 1568 | var dP = __webpack_require__("4318"); 1569 | var anObject = __webpack_require__("8752"); 1570 | var getKeys = __webpack_require__("8e88"); 1571 | 1572 | module.exports = __webpack_require__("3cdf") ? Object.defineProperties : function defineProperties(O, Properties) { 1573 | anObject(O); 1574 | var keys = getKeys(Properties); 1575 | var length = keys.length; 1576 | var i = 0; 1577 | var P; 1578 | while (length > i) dP.f(O, P = keys[i++], Properties[P]); 1579 | return O; 1580 | }; 1581 | 1582 | 1583 | /***/ }), 1584 | 1585 | /***/ "bdea": 1586 | /***/ (function(module, exports, __webpack_require__) { 1587 | 1588 | var $export = __webpack_require__("37e2"); 1589 | var defined = __webpack_require__("5c8d"); 1590 | var fails = __webpack_require__("c151"); 1591 | var spaces = __webpack_require__("f134"); 1592 | var space = '[' + spaces + ']'; 1593 | var non = '\u200b\u0085'; 1594 | var ltrim = RegExp('^' + space + space + '*'); 1595 | var rtrim = RegExp(space + space + '*$'); 1596 | 1597 | var exporter = function (KEY, exec, ALIAS) { 1598 | var exp = {}; 1599 | var FORCE = fails(function () { 1600 | return !!spaces[KEY]() || non[KEY]() != non; 1601 | }); 1602 | var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; 1603 | if (ALIAS) exp[ALIAS] = fn; 1604 | $export($export.P + $export.F * FORCE, 'String', exp); 1605 | }; 1606 | 1607 | // 1 -> String#trimLeft 1608 | // 2 -> String#trimRight 1609 | // 3 -> String#trim 1610 | var trim = exporter.trim = function (string, TYPE) { 1611 | string = String(defined(string)); 1612 | if (TYPE & 1) string = string.replace(ltrim, ''); 1613 | if (TYPE & 2) string = string.replace(rtrim, ''); 1614 | return string; 1615 | }; 1616 | 1617 | module.exports = exporter; 1618 | 1619 | 1620 | /***/ }), 1621 | 1622 | /***/ "c151": 1623 | /***/ (function(module, exports) { 1624 | 1625 | module.exports = function (exec) { 1626 | try { 1627 | return !!exec(); 1628 | } catch (e) { 1629 | return true; 1630 | } 1631 | }; 1632 | 1633 | 1634 | /***/ }), 1635 | 1636 | /***/ "c200": 1637 | /***/ (function(module, exports, __webpack_require__) { 1638 | 1639 | "use strict"; 1640 | 1641 | var regexpExec = __webpack_require__("64a7"); 1642 | __webpack_require__("37e2")({ 1643 | target: 'RegExp', 1644 | proto: true, 1645 | forced: regexpExec !== /./.exec 1646 | }, { 1647 | exec: regexpExec 1648 | }); 1649 | 1650 | 1651 | /***/ }), 1652 | 1653 | /***/ "d2a9": 1654 | /***/ (function(module, exports, __webpack_require__) { 1655 | 1656 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 1657 | var cof = __webpack_require__("4a0f"); 1658 | // eslint-disable-next-line no-prototype-builtins 1659 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 1660 | return cof(it) == 'String' ? it.split('') : Object(it); 1661 | }; 1662 | 1663 | 1664 | /***/ }), 1665 | 1666 | /***/ "d50f": 1667 | /***/ (function(module, exports, __webpack_require__) { 1668 | 1669 | "use strict"; 1670 | 1671 | __webpack_require__("c200"); 1672 | var redefine = __webpack_require__("22a5"); 1673 | var hide = __webpack_require__("317e"); 1674 | var fails = __webpack_require__("c151"); 1675 | var defined = __webpack_require__("5c8d"); 1676 | var wks = __webpack_require__("edef"); 1677 | var regexpExec = __webpack_require__("64a7"); 1678 | 1679 | var SPECIES = wks('species'); 1680 | 1681 | var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { 1682 | // #replace needs built-in support for named groups. 1683 | // #match works fine because it just return the exec results, even if it has 1684 | // a "grops" property. 1685 | var re = /./; 1686 | re.exec = function () { 1687 | var result = []; 1688 | result.groups = { a: '7' }; 1689 | return result; 1690 | }; 1691 | return ''.replace(re, '$') !== '7'; 1692 | }); 1693 | 1694 | var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () { 1695 | // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec 1696 | var re = /(?:)/; 1697 | var originalExec = re.exec; 1698 | re.exec = function () { return originalExec.apply(this, arguments); }; 1699 | var result = 'ab'.split(re); 1700 | return result.length === 2 && result[0] === 'a' && result[1] === 'b'; 1701 | })(); 1702 | 1703 | module.exports = function (KEY, length, exec) { 1704 | var SYMBOL = wks(KEY); 1705 | 1706 | var DELEGATES_TO_SYMBOL = !fails(function () { 1707 | // String methods call symbol-named RegEp methods 1708 | var O = {}; 1709 | O[SYMBOL] = function () { return 7; }; 1710 | return ''[KEY](O) != 7; 1711 | }); 1712 | 1713 | var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () { 1714 | // Symbol-named RegExp methods call .exec 1715 | var execCalled = false; 1716 | var re = /a/; 1717 | re.exec = function () { execCalled = true; return null; }; 1718 | if (KEY === 'split') { 1719 | // RegExp[@@split] doesn't call the regex's exec method, but first creates 1720 | // a new one. We need to return the patched regex when creating the new one. 1721 | re.constructor = {}; 1722 | re.constructor[SPECIES] = function () { return re; }; 1723 | } 1724 | re[SYMBOL](''); 1725 | return !execCalled; 1726 | }) : undefined; 1727 | 1728 | if ( 1729 | !DELEGATES_TO_SYMBOL || 1730 | !DELEGATES_TO_EXEC || 1731 | (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) || 1732 | (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) 1733 | ) { 1734 | var nativeRegExpMethod = /./[SYMBOL]; 1735 | var fns = exec( 1736 | defined, 1737 | SYMBOL, 1738 | ''[KEY], 1739 | function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) { 1740 | if (regexp.exec === regexpExec) { 1741 | if (DELEGATES_TO_SYMBOL && !forceStringMethod) { 1742 | // The native String method already delegates to @@method (this 1743 | // polyfilled function), leasing to infinite recursion. 1744 | // We avoid it by directly calling the native @@method method. 1745 | return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) }; 1746 | } 1747 | return { done: true, value: nativeMethod.call(str, regexp, arg2) }; 1748 | } 1749 | return { done: false }; 1750 | } 1751 | ); 1752 | var strfn = fns[0]; 1753 | var rxfn = fns[1]; 1754 | 1755 | redefine(String.prototype, KEY, strfn); 1756 | hide(RegExp.prototype, SYMBOL, length == 2 1757 | // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) 1758 | // 21.2.5.11 RegExp.prototype[@@split](string, limit) 1759 | ? function (string, arg) { return rxfn.call(string, this, arg); } 1760 | // 21.2.5.6 RegExp.prototype[@@match](string) 1761 | // 21.2.5.9 RegExp.prototype[@@search](string) 1762 | : function (string) { return rxfn.call(string, this); } 1763 | ); 1764 | } 1765 | }; 1766 | 1767 | 1768 | /***/ }), 1769 | 1770 | /***/ "e006": 1771 | /***/ (function(module, exports, __webpack_require__) { 1772 | 1773 | var toInteger = __webpack_require__("f602"); 1774 | var defined = __webpack_require__("5c8d"); 1775 | // true -> String#at 1776 | // false -> String#codePointAt 1777 | module.exports = function (TO_STRING) { 1778 | return function (that, pos) { 1779 | var s = String(defined(that)); 1780 | var i = toInteger(pos); 1781 | var l = s.length; 1782 | var a, b; 1783 | if (i < 0 || i >= l) return TO_STRING ? '' : undefined; 1784 | a = s.charCodeAt(i); 1785 | return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff 1786 | ? TO_STRING ? s.charAt(i) : a 1787 | : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; 1788 | }; 1789 | }; 1790 | 1791 | 1792 | /***/ }), 1793 | 1794 | /***/ "e036": 1795 | /***/ (function(module, exports, __webpack_require__) { 1796 | 1797 | var core = __webpack_require__("5d07"); 1798 | var global = __webpack_require__("9cc0"); 1799 | var SHARED = '__core-js_shared__'; 1800 | var store = global[SHARED] || (global[SHARED] = {}); 1801 | 1802 | (module.exports = function (key, value) { 1803 | return store[key] || (store[key] = value !== undefined ? value : {}); 1804 | })('versions', []).push({ 1805 | version: core.version, 1806 | mode: __webpack_require__("0a5c") ? 'pure' : 'global', 1807 | copyright: '© 2019 Denis Pushkarev (zloirock.ru)' 1808 | }); 1809 | 1810 | 1811 | /***/ }), 1812 | 1813 | /***/ "e628": 1814 | /***/ (function(module, exports, __webpack_require__) { 1815 | 1816 | // optional / simple context binding 1817 | var aFunction = __webpack_require__("a9e6"); 1818 | module.exports = function (fn, that, length) { 1819 | aFunction(fn); 1820 | if (that === undefined) return fn; 1821 | switch (length) { 1822 | case 1: return function (a) { 1823 | return fn.call(that, a); 1824 | }; 1825 | case 2: return function (a, b) { 1826 | return fn.call(that, a, b); 1827 | }; 1828 | case 3: return function (a, b, c) { 1829 | return fn.call(that, a, b, c); 1830 | }; 1831 | } 1832 | return function (/* ...args */) { 1833 | return fn.apply(that, arguments); 1834 | }; 1835 | }; 1836 | 1837 | 1838 | /***/ }), 1839 | 1840 | /***/ "e96a": 1841 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 1842 | 1843 | "use strict"; 1844 | /* harmony import */ var _nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_css_loader_index_js_ref_6_oneOf_1_1_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_loaders_stylePostLoader_js_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_cache_loader_dist_cjs_js_ref_0_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_index_js_vue_loader_options_points_vue_vue_type_style_index_0_id_732ec91c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fb33"); 1845 | /* harmony import */ var _nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_css_loader_index_js_ref_6_oneOf_1_1_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_loaders_stylePostLoader_js_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_cache_loader_dist_cjs_js_ref_0_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_index_js_vue_loader_options_points_vue_vue_type_style_index_0_id_732ec91c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_css_loader_index_js_ref_6_oneOf_1_1_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_loaders_stylePostLoader_js_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_cache_loader_dist_cjs_js_ref_0_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_index_js_vue_loader_options_points_vue_vue_type_style_index_0_id_732ec91c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__); 1846 | /* unused harmony reexport * */ 1847 | /* unused harmony default export */ var _unused_webpack_default_export = (_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_css_loader_index_js_ref_6_oneOf_1_1_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_loaders_stylePostLoader_js_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_cache_loader_dist_cjs_js_ref_0_0_nvm_versions_node_v12_16_1_lib_node_modules_vue_cli_service_global_node_modules_vue_loader_lib_index_js_vue_loader_options_points_vue_vue_type_style_index_0_id_732ec91c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); 1848 | 1849 | /***/ }), 1850 | 1851 | /***/ "eb62": 1852 | /***/ (function(module, exports, __webpack_require__) { 1853 | 1854 | // getting tag from 19.1.3.6 Object.prototype.toString() 1855 | var cof = __webpack_require__("4a0f"); 1856 | var TAG = __webpack_require__("edef")('toStringTag'); 1857 | // ES3 wrong here 1858 | var ARG = cof(function () { return arguments; }()) == 'Arguments'; 1859 | 1860 | // fallback for IE11 Script Access Denied error 1861 | var tryGet = function (it, key) { 1862 | try { 1863 | return it[key]; 1864 | } catch (e) { /* empty */ } 1865 | }; 1866 | 1867 | module.exports = function (it) { 1868 | var O, T, B; 1869 | return it === undefined ? 'Undefined' : it === null ? 'Null' 1870 | // @@toStringTag case 1871 | : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T 1872 | // builtinTag case 1873 | : ARG ? cof(O) 1874 | // ES3 arguments fallback 1875 | : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; 1876 | }; 1877 | 1878 | 1879 | /***/ }), 1880 | 1881 | /***/ "edef": 1882 | /***/ (function(module, exports, __webpack_require__) { 1883 | 1884 | var store = __webpack_require__("e036")('wks'); 1885 | var uid = __webpack_require__("2ef6"); 1886 | var Symbol = __webpack_require__("9cc0").Symbol; 1887 | var USE_SYMBOL = typeof Symbol == 'function'; 1888 | 1889 | var $exports = module.exports = function (name) { 1890 | return store[name] || (store[name] = 1891 | USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); 1892 | }; 1893 | 1894 | $exports.store = store; 1895 | 1896 | 1897 | /***/ }), 1898 | 1899 | /***/ "ef4d": 1900 | /***/ (function(module, exports, __webpack_require__) { 1901 | 1902 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 1903 | var anObject = __webpack_require__("8752"); 1904 | var dPs = __webpack_require__("b375"); 1905 | var enumBugKeys = __webpack_require__("16a3"); 1906 | var IE_PROTO = __webpack_require__("77dd")('IE_PROTO'); 1907 | var Empty = function () { /* empty */ }; 1908 | var PROTOTYPE = 'prototype'; 1909 | 1910 | // Create object with fake `null` prototype: use iframe Object with cleared prototype 1911 | var createDict = function () { 1912 | // Thrash, waste and sodomy: IE GC bug 1913 | var iframe = __webpack_require__("3235")('iframe'); 1914 | var i = enumBugKeys.length; 1915 | var lt = '<'; 1916 | var gt = '>'; 1917 | var iframeDocument; 1918 | iframe.style.display = 'none'; 1919 | __webpack_require__("3c67").appendChild(iframe); 1920 | iframe.src = 'javascript:'; // eslint-disable-line no-script-url 1921 | // createDict = iframe.contentWindow.Object; 1922 | // html.removeChild(iframe); 1923 | iframeDocument = iframe.contentWindow.document; 1924 | iframeDocument.open(); 1925 | iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); 1926 | iframeDocument.close(); 1927 | createDict = iframeDocument.F; 1928 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 1929 | return createDict(); 1930 | }; 1931 | 1932 | module.exports = Object.create || function create(O, Properties) { 1933 | var result; 1934 | if (O !== null) { 1935 | Empty[PROTOTYPE] = anObject(O); 1936 | result = new Empty(); 1937 | Empty[PROTOTYPE] = null; 1938 | // add "__proto__" for Object.getPrototypeOf polyfill 1939 | result[IE_PROTO] = O; 1940 | } else result = createDict(); 1941 | return Properties === undefined ? result : dPs(result, Properties); 1942 | }; 1943 | 1944 | 1945 | /***/ }), 1946 | 1947 | /***/ "f134": 1948 | /***/ (function(module, exports) { 1949 | 1950 | module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + 1951 | '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; 1952 | 1953 | 1954 | /***/ }), 1955 | 1956 | /***/ "f602": 1957 | /***/ (function(module, exports) { 1958 | 1959 | // 7.1.4 ToInteger 1960 | var ceil = Math.ceil; 1961 | var floor = Math.floor; 1962 | module.exports = function (it) { 1963 | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 1964 | }; 1965 | 1966 | 1967 | /***/ }), 1968 | 1969 | /***/ "fb33": 1970 | /***/ (function(module, exports, __webpack_require__) { 1971 | 1972 | // extracted by mini-css-extract-plugin 1973 | 1974 | /***/ }) 1975 | 1976 | /******/ }); 1977 | }); 1978 | //# sourceMappingURL=main.umd.js.map -------------------------------------------------------------------------------- /dist/main.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["main"]=e():t["main"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));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="428f")}({"0746":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"0a5c":function(t,e){t.exports=!1},"0b08":function(t,e,n){"use strict";var r=n("eb62"),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var i=n.call(t,e);if("object"!==typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"0d74":function(t,e,n){"use strict";var r=n("8752"),o=n("9807"),i=n("94dd"),c=n("f602"),a=n("39b3"),u=n("0b08"),s=Math.max,f=Math.min,l=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g,h=function(t){return void 0===t?t:String(t)};n("d50f")("replace",2,(function(t,e,n,v){return[function(r,o){var i=t(this),c=void 0==r?void 0:r[e];return void 0!==c?c.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=v(n,t,this,e);if(o.done)return o.value;var l=r(t),p=String(this),d="function"===typeof e;d||(e=String(e));var y=l.global;if(y){var x=l.unicode;l.lastIndex=0}var m=[];while(1){var b=u(l,p);if(null===b)break;if(m.push(b),!y)break;var w=String(b[0]);""===w&&(l.lastIndex=a(p,i(l.lastIndex),x))}for(var _="",S=0,E=0;E=S&&(_+=p.slice(S,I)+N,S=I+O.length)}return _+p.slice(S)}];function g(t,e,r,i,c,a){var u=r+t.length,s=i.length,f=d;return void 0!==c&&(c=o(c),f=p),n.call(a,f,(function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(u);case"<":a=c[o.slice(1,-1)];break;default:var f=+o;if(0===f)return n;if(f>s){var p=l(f/10);return 0===p?n:p<=s?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):n}a=i[f-1]}return void 0===a?"":a}))}}))},"0ea8":function(t,e,n){var r=n("0746");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"16a3":function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"16eb":function(t,e,n){var r=n("afca"),o=n("afa2"),i=n("18de"),c=n("0ea8"),a=n("75b9"),u=n("3e86"),s=Object.getOwnPropertyDescriptor;e.f=n("3cdf")?s:function(t,e){if(t=i(t),e=c(e,!0),u)try{return s(t,e)}catch(n){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},"18de":function(t,e,n){var r=n("d2a9"),o=n("5c8d");t.exports=function(t){return r(o(t))}},"22a5":function(t,e,n){var r=n("9cc0"),o=n("317e"),i=n("75b9"),c=n("2ef6")("src"),a=n("2921"),u="toString",s=(""+a).split(u);n("5d07").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(u&&(i(n,c)||o(n,c,t[e]?""+t[e]:s.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[c]||a.call(this)}))},"25a2":function(t,e,n){var r=n("18de"),o=n("94dd"),i=n("a165");t.exports=function(t){return function(e,n,c){var a,u=r(e),s=o(u.length),f=i(c,s);if(t&&n!=n){while(s>f)if(a=u[f++],a!=a)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},2921:function(t,e,n){t.exports=n("e036")("native-function-to-string",Function.toString)},"2ef6":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"317e":function(t,e,n){var r=n("4318"),o=n("afa2");t.exports=n("3cdf")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},3235:function(t,e,n){var r=n("0746"),o=n("9cc0").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"37e2":function(t,e,n){var r=n("9cc0"),o=n("5d07"),i=n("317e"),c=n("22a5"),a=n("e628"),u="prototype",s=function(t,e,n){var f,l,p,d,h=t&s.F,v=t&s.G,g=t&s.S,y=t&s.P,x=t&s.B,m=v?r:g?r[e]||(r[e]={}):(r[e]||{})[u],b=v?o:o[e]||(o[e]={}),w=b[u]||(b[u]={});for(f in v&&(n=e),n)l=!h&&m&&void 0!==m[f],p=(l?m:n)[f],d=x&&l?a(p,r):y&&"function"==typeof p?a(Function.call,p):p,m&&c(m,f,p,t&s.U),b[f]!=p&&i(b,f,d),y&&w[f]!=p&&(w[f]=p)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},"39b3":function(t,e,n){"use strict";var r=n("e006")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"3c2f":function(t,e,n){"use strict";var r=n("9cc0"),o=n("75b9"),i=n("4a0f"),c=n("63df"),a=n("0ea8"),u=n("c151"),s=n("68d4").f,f=n("16eb").f,l=n("4318").f,p=n("bdea").trim,d="Number",h=r[d],v=h,g=h.prototype,y=i(n("ef4d")(g))==d,x="trim"in String.prototype,m=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=x?e.trim():p(e,3);var n,r,o,i=e.charCodeAt(0);if(43===i||45===i){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var c,u=e.slice(2),s=0,f=u.length;so)return NaN;return parseInt(u,r)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof h&&(y?u((function(){g.valueOf.call(n)})):i(n)!=d)?c(new v(m(e)),n,h):m(e)};for(var b,w=n("3cdf")?s(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(","),_=0;w.length>_;_++)o(v,b=w[_])&&!o(h,b)&&l(h,b,f(v,b));h.prototype=g,g.constructor=h,n("22a5")(r,d,h)}},"3c67":function(t,e,n){var r=n("9cc0").document;t.exports=r&&r.documentElement},"3cdf":function(t,e,n){t.exports=!n("c151")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"3e86":function(t,e,n){t.exports=!n("3cdf")&&!n("c151")((function(){return 7!=Object.defineProperty(n("3235")("div"),"a",{get:function(){return 7}}).a}))},"428f":function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&(n("988a"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.curIdxwindow.innerHeight&&this.scrollTopwindow.innerWidth&&(this.offsetPoint.y=-(o["right"]-window.innerWidth)),this.scrollLeft>this.position.left&&(this.offsetPoint.y=this.scrollLeft-this.position.left),this.scrollTop>this.position.top+this.position.height&&o["bottom"]=this.lists.length&&this.$emit("destory")}}},y=g,x=d(y,o,i,!1,null,null,null),m=x.exports,b={install:function(t){this.$createElement;t.prototype.$guide=function(e){var n=e.lists,r=void 0===n?[]:n,o=e.opacity,i=void 0===o?.7:o,c=e.neverOpenHandler,a=void 0===c?function(){}:c,u=window.localStorage.getItem("isfingerPoint");if(!u||"true"!==u){var s=document.createElement("div"),f=document.createElement("div");s.appendChild(f),document.body.appendChild(s);var l=new t({el:f,render:function(){var t=arguments[0];return t(m,{attrs:{lists:r,opacity:i,neverOpenHandler:a},on:{destory:p}})}});return{vm:l,destroy:p}}function p(){l.$destroy(),s.innerHTML="",document.body.removeChild(s)}}}};e["default"]=b},4318:function(t,e,n){var r=n("8752"),o=n("3e86"),i=n("0ea8"),c=Object.defineProperty;e.f=n("3cdf")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return c(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"4a0f":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"4a72":function(t,e,n){"use strict";var r=n("8752");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"5c8d":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"5d07":function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},"63df":function(t,e,n){var r=n("0746"),o=n("96bc").set;t.exports=function(t,e,n){var i,c=e.constructor;return c!==n&&"function"==typeof c&&(i=c.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},"64a7":function(t,e,n){"use strict";var r=n("4a72"),o=RegExp.prototype.exec,i=String.prototype.replace,c=o,a="lastIndex",u=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t[a]||0!==e[a]}(),s=void 0!==/()??/.exec("")[1],f=u||s;f&&(c=function(t){var e,n,c,f,l=this;return s&&(n=new RegExp("^"+l.source+"$(?!\\s)",r.call(l))),u&&(e=l[a]),c=o.call(l,t),u&&c&&(l[a]=l.global?c.index+c[0].length:e),s&&c&&c.length>1&&i.call(c[0],n,(function(){for(f=1;f0?o(r(t),9007199254740991):0}},"96bc":function(t,e,n){var r=n("0746"),o=n("8752"),i=function(t,e){if(o(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("e628")(Function.call,n("16eb").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(o){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},9807:function(t,e,n){var r=n("5c8d");t.exports=function(t){return Object(r(t))}},"988a":function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},"9cc0":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)},a165:function(t,e,n){var r=n("f602"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},a39c:function(t,e,n){var r=n("75b9"),o=n("18de"),i=n("25a2")(!1),c=n("77dd")("IE_PROTO");t.exports=function(t,e){var n,a=o(t),u=0,s=[];for(n in a)n!=c&&r(a,n)&&s.push(n);while(e.length>u)r(a,n=e[u++])&&(~i(s,n)||s.push(n));return s}},a9e6:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},afa2:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},afca:function(t,e){e.f={}.propertyIsEnumerable},b375:function(t,e,n){var r=n("4318"),o=n("8752"),i=n("8e88");t.exports=n("3cdf")?Object.defineProperties:function(t,e){o(t);var n,c=i(e),a=c.length,u=0;while(a>u)r.f(t,n=c[u++],e[n]);return t}},bdea:function(t,e,n){var r=n("37e2"),o=n("5c8d"),i=n("c151"),c=n("f134"),a="["+c+"]",u="​…",s=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),l=function(t,e,n){var o={},a=i((function(){return!!c[t]()||u[t]()!=u})),s=o[t]=a?e(p):c[t];n&&(o[n]=s),r(r.P+r.F*a,"String",o)},p=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(s,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},c151:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},c200:function(t,e,n){"use strict";var r=n("64a7");n("37e2")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},d2a9:function(t,e,n){var r=n("4a0f");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},d50f:function(t,e,n){"use strict";n("c200");var r=n("22a5"),o=n("317e"),i=n("c151"),c=n("5c8d"),a=n("edef"),u=n("64a7"),s=a("species"),f=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),l=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var p=a(t),d=!i((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),h=d?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[s]=function(){return n}),n[p](""),!e})):void 0;if(!d||!h||"replace"===t&&!f||"split"===t&&!l){var v=/./[p],g=n(c,p,""[t],(function(t,e,n,r,o){return e.exec===u?d&&!o?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),y=g[0],x=g[1];r(String.prototype,t,y),o(RegExp.prototype,p,2==e?function(t,e){return x.call(t,this,e)}:function(t){return x.call(t,this)})}}},e006:function(t,e,n){var r=n("f602"),o=n("5c8d");t.exports=function(t){return function(e,n){var i,c,a=String(o(e)),u=r(n),s=a.length;return u<0||u>=s?t?"":void 0:(i=a.charCodeAt(u),i<55296||i>56319||u+1===s||(c=a.charCodeAt(u+1))<56320||c>57343?t?a.charAt(u):i:t?a.slice(u,u+2):c-56320+(i-55296<<10)+65536)}}},e036:function(t,e,n){var r=n("5d07"),o=n("9cc0"),i="__core-js_shared__",c=o[i]||(o[i]={});(t.exports=function(t,e){return c[t]||(c[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("0a5c")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},e628:function(t,e,n){var r=n("a9e6");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,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},e96a:function(t,e,n){"use strict";var r=n("fb33"),o=n.n(r);o.a},eb62:function(t,e,n){var r=n("4a0f"),o=n("edef")("toStringTag"),i="Arguments"==r(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},edef:function(t,e,n){var r=n("e036")("wks"),o=n("2ef6"),i=n("9cc0").Symbol,c="function"==typeof i,a=t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))};a.store=r},ef4d:function(t,e,n){var r=n("8752"),o=n("b375"),i=n("16a3"),c=n("77dd")("IE_PROTO"),a=function(){},u="prototype",s=function(){var t,e=n("3235")("iframe"),r=i.length,o="<",c=">";e.style.display="none",n("3c67").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+c+"document.F=Object"+o+"/script"+c),t.close(),s=t.F;while(r--)delete s[u][i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[u]=r(t),n=new a,a[u]=null,n[c]=t):n=s(),void 0===e?n:o(n,e)}},f134:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},f602:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},fb33:function(t,e,n){}})})); 2 | //# sourceMappingURL=main.umd.min.js.map -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-begin-gride", 3 | "version": "1.0.9", 4 | "description": "新手指引组件 ", 5 | "main": "./dist/main.umd.js", 6 | "directories": { 7 | "test": "test" 8 | }, 9 | "dependencies": { 10 | "vue": "2.6.11" 11 | }, 12 | "devDependencies": {}, 13 | "scripts": { 14 | "dev": "vue serve test/normal.vue", 15 | "build": "vue build --target lib --name main './src/index.js'", 16 | "test": "echo \"Error: no test specified\" && exit 1" 17 | }, 18 | "keywords": [ 19 | "新手指引", 20 | "begin-gride", 21 | "操作指引", 22 | "首页指引", 23 | "vue", 24 | "component" 25 | ], 26 | "homepage": "https://github.com/jeryqwq/vue-begin-gride", 27 | "author": "jeryqwq", 28 | "license": "ISC" 29 | } 30 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | Demo || Document 2 | 3 | ## 预览 4 | 5 | 6 | 7 | ## 开始 8 | 9 | 新手指引常用于网站首页以及 APP 欢迎页面,之前的引导页面太死了,有些还是设计师切图的 png 图片,发现切图太死板太浪费性能了,每次一个调整都要重新切图,完全做不到自定义,而且要考虑屏幕宽高,窗体出现滚动条根本又得动态定位,而且一个这个东西要占我好几百 k 的资源,所以就花了点时间研究了下具体的实现方式,用 svg 实现了相应的功能,还做了滑屏处理,防止引导元素超出可视化范围内看不到提示语。 10 | 11 | ### 安装 12 | 13 | ```bash 14 | npm i vue-begin-gride -s 15 | ``` 16 | 17 | ### 使用 18 | ##### 注册插件 19 | ```js 20 | import beginGride from "vue-begin-gride" 21 | Vue.use(beginGride) 22 | ``` 23 | ##### 使用 24 | ``` js 25 | this.$guide({ 26 | list: [ 27 | { 28 | el: this.$refs.login, 29 | width: "500px", 30 | lineStyle: "stroke:red", 31 | padding: 6, 32 | text: 33 | "第一步,输入您的在网站已经注册过的用户名信息,用户名长度应该在6-20位之前", 34 | } 35 | ] 36 | }) 37 | ``` 38 | 39 | 在 vue 中一定要等待 dom 渲染完成再给 list 数组的每一个 el 对象赋值,否则无法找到 dom,所以在请在 mounted 函数中获取到每个 ref 的 dom 节点或者通过其他 api 找到的节点对象 40 | 41 | ::: details 点击查看组件代码 42 | 43 | ```vue 44 | 58 | 59 | 117 | ``` 118 | ::: 119 | 120 | ## API 说明 121 | 122 | | 参数 | 类型 | 默认值 | 是否必填 | 说明 | 123 | | ---------------- | :----------------: | ----------------------- | -------- | ----- | 124 | | opacity | Float | 0.3 | false | 背景透明度,请输入 0-1 之间的小数 125 | | neverOpenHandler | func | (isChecked) => ({}) | false | 点击是否下次弹出回调,参数单选框是否选中 | 126 | | [list] | Array | null | true | 每个遮罩层的信息 | 127 | | [list].el | Node | | true | 节点的 DOM 对象,请在 mounted 的函数中赋值调用 | 128 | | [list].width | string | 默认跟随 el 宽度 | false | 当给定一个固定宽度时请使用 string 类型的 px 宽度 | 129 | | [list].style | style-string | color:white;border-radius: 20px;;border:dashed 2px white; | false | 提示区域自定义样式,默认 2 像素虚线白色边框,可覆盖 | 130 | | [list].text | Function or String | | true | 提示区域内容,可传入字符串或者 jsx 渲染函数 | 131 | | [list].lineStyle | string | "stroke-dasharray: 5px 5px;stroke-width:2px" | false | 链接线条的 svg 样式,详情请阅读 svg 文档 | 132 | | [list].padding | Number | 10 | false | 遮罩层相对 DOM 节点的 padding 值 | 133 | 134 | 135 | 136 | ```bash 137 | vue serve test/边界固定.vue 138 | vue serve test/normal.vue 139 | ``` 140 | 141 | ## publish 142 | 143 | ```bash 144 | vue build --target lib --name main './src/index.js' 145 | npm publish 146 | ``` 147 | -------------------------------------------------------------------------------- /src/BeginGride.vue: -------------------------------------------------------------------------------- 1 | 28 | 29 | 77 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import beginGride from "./BeginGride.vue" 2 | export default { 3 | install (_V){ 4 | _V.prototype.$guide = function ({lists = [], opacity= 0.7, neverOpenHandler = () => {}}) { 5 | const isfingerPoint = window.localStorage.getItem("isfingerPoint") 6 | if(isfingerPoint && (isfingerPoint === 'true')) return 7 | const parent = document.createElement('div') 8 | const el = document.createElement('div') 9 | parent.appendChild(el) 10 | document.body.appendChild(parent) 11 | const vm = new _V({ 12 | el, 13 | render() { 14 | return 15 | } 16 | }) 17 | function destroy () { 18 | vm.$destroy(); 19 | parent.innerHTML = '' 20 | document.body.removeChild(parent) 21 | } 22 | return { 23 | vm, 24 | destroy 25 | } 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/points.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 27 | 51 | -------------------------------------------------------------------------------- /src/rect.js: -------------------------------------------------------------------------------- 1 | const defaultWrapStyle = 2 | "color:white;border-radius: 20px;border:dashed 2px white;display: inline-block;padding:10px" 3 | const lineStyle = "stroke-dasharray: 5px 5px;stroke-width:2px" 4 | export default { 5 | props: ["item", "len", "curIdx", "idx", "incrment", "opacity"], 6 | data() { 7 | return { 8 | position: { 9 | left: 200, 10 | top: 200, 11 | height: 200, 12 | width: 200, 13 | }, 14 | scrollTop: 0, 15 | scrollLeft: 0, 16 | wrapHeight: 0, 17 | offsetPoint: { 18 | x: 0, 19 | y: 0, 20 | }, 21 | } 22 | }, 23 | mounted() { 24 | const { left, top, width, height } = this.item.el.getClientRects()[0] 25 | this.position = { 26 | left, 27 | top, 28 | width, 29 | height, 30 | } 31 | window.addEventListener("scroll", this.autoScroll) 32 | }, 33 | destroyed() { 34 | window.removeEventListener("scroll", this.autoScroll) 35 | }, 36 | methods: { 37 | autoScroll(e) { 38 | window.requestAnimationFrame(() => { 39 | this.scrollTop = e.target.scrollingElement.scrollTop 40 | this.scrollLeft = e.target.scrollingElement.scrollLeft 41 | }) 42 | }, 43 | neverAlert(e) { 44 | e.stopPropagation() 45 | }, 46 | handleChange(e) { 47 | this.$emit('neverOpenHandler', e.target.checked) 48 | if (e.target.checked) { 49 | window.localStorage.setItem("isfingerPoint", "true") 50 | }else{ 51 | window.localStorage.setItem("isfingerPoint", "false") 52 | } 53 | }, 54 | }, 55 | render() { 56 | let { height, left, top } = this.position 57 | top -= this.scrollTop 58 | left -= this.scrollLeft 59 | const { x, y } = this.offsetPoint 60 | return ( 61 | this.curIdx === this.idx && ( 62 | 63 | 67 | 77 | 85 |
89 | {typeof this.item.text === "function" 90 | ? this.item.text() 91 | : this.item.text} 92 |
93 | {this.len - 1 === this.curIdx && ( 94 | 107 | )} 108 |
109 | this.incrment(this.curIdx + 1)} 111 | style="float:right;margin:10px;border:solid 1px white;padding:8px;border-radius:5px;cursor:pointer" 112 | > 113 | {this.len - 1 === this.curIdx ? "完成" : "下一步"} 114 | 115 |
116 |
117 | ) 118 | ) 119 | }, 120 | computed: { 121 | wrapPosition() { 122 | let { top, left } = this.position 123 | this.$nextTick().then(() => { 124 | const el = this.$refs["innerContent"] 125 | el && (this.wrapHeight = el.offsetHeight) 126 | }) 127 | left -= this.scrollLeft 128 | top -= this.scrollTop 129 | let foreignPosition = { 130 | left: left, 131 | top: top + this.position.height + 60, 132 | width: this.item.width 133 | ? Number(this.item.width.replace("px", "")) 134 | : Number(this.position.width), 135 | height: this.wrapHeight + 60, 136 | } 137 | foreignPosition["bottom"] = foreignPosition.top + foreignPosition.height 138 | foreignPosition["right"] = foreignPosition.left + foreignPosition.width 139 | if ( 140 | foreignPosition["bottom"] > window.innerHeight && 141 | this.scrollTop < this.position.top 142 | ) { 143 | this.offsetPoint.x = -(foreignPosition["bottom"] - window.innerHeight) 144 | } 145 | if (foreignPosition["right"] > window.innerWidth) { 146 | this.offsetPoint.y = -(foreignPosition["right"] - window.innerWidth) 147 | } 148 | if (this.scrollLeft > this.position.left) { 149 | this.offsetPoint.y = this.scrollLeft - this.position.left 150 | } 151 | if ( 152 | this.scrollTop > this.position.top + this.position.height && 153 | foreignPosition["bottom"] < window.innerHeight 154 | ) { 155 | this.offsetPoint.x = 156 | this.scrollTop - this.position.top - this.position.height 157 | } 158 | 159 | return foreignPosition 160 | }, 161 | path() { 162 | let { width, height, left, top } = this.position 163 | top -= this.scrollTop 164 | left -= this.scrollLeft 165 | const wwidth = window.innerWidth, 166 | wheight = window.innerHeight, 167 | padding = this.item.padding || 10 168 | return ` 169 | M${left - padding} ${top + height + padding}, 170 | 0 ${wheight}, 171 | ${wwidth} ${wheight}, 172 | ${wwidth} 0, 173 | 0 0, 174 | 0 ${wheight}, 175 | ${left - padding} ${top + height + padding}, 176 | ${left - padding} ${top - padding}, 177 | ${left + width + padding} ${top - padding}, 178 | ${left + width + padding} ${top + height + padding} 179 | Z` 180 | }, 181 | }, 182 | } 183 | -------------------------------------------------------------------------------- /test/normal.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 75 | -------------------------------------------------------------------------------- /test/边界固定.vue: -------------------------------------------------------------------------------- 1 | 23 | 24 | 78 | --------------------------------------------------------------------------------