├── .editorconfig ├── .gitignore ├── LICENSE ├── README.md ├── babel.config.js ├── dist ├── demo.html ├── vue-print-plugin.common.js ├── vue-print-plugin.common.js.map ├── vue-print-plugin.umd.js ├── vue-print-plugin.umd.js.map ├── vue-print-plugin.umd.min.js └── vue-print-plugin.umd.min.js.map ├── package.json ├── public ├── favicon.ico └── index.html ├── src ├── App.vue ├── assets │ └── print.png ├── components │ └── Comp.vue ├── main.js └── plugins │ └── print │ ├── index.js │ ├── print copy.js │ ├── print.js │ └── print.ts ├── vue.config.js └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- 1 | [*.{js,jsx,ts,tsx,vue}] 2 | indent_style = space 3 | indent_size = 2 4 | trim_trailing_whitespace = true 5 | insert_final_newline = true 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | build/ 4 | # local env files 5 | .env.local 6 | .env.*.local 7 | 8 | # Log files 9 | npm-debug.log* 10 | yarn-debug.log* 11 | yarn-error.log* 12 | 13 | # Editor directories and files 14 | .idea 15 | .vscode 16 | *.suo 17 | *.ntvs* 18 | *.njsproj 19 | *.sln 20 | *.sw? 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 BurNing1993 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # vue-print-plugin 2 | 3 | Prints plugins for specific blocks 4 | 5 | ## EXAMPLE 6 | 7 | [Demo](https://burning1993.github.io/vue-print-plugin) 8 | 9 | ## Install 10 | 11 | ```sh 12 | npm install vue-print-plugin -S 13 | ``` 14 | 15 | ## Quick Start 16 | 17 | ```js 18 | // main.js 19 | import Vue from 'vue' 20 | import Print from 'vue-print-plugin' 21 | 22 | Vue.use(Print) 23 | // App.vue 24 | this.$print(this.$refs[ref]) 25 | ``` 26 | 27 | ## LICENSE 28 | 29 | [MIT](./LICENSE) -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /dist/demo.html: -------------------------------------------------------------------------------- 1 | 2 | vue-print-plugin demo 3 | 4 | 5 | 6 | 7 | 8 | 11 | -------------------------------------------------------------------------------- /dist/vue-print-plugin.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 = "fae3"); 86 | /******/ }) 87 | /************************************************************************/ 88 | /******/ ({ 89 | 90 | /***/ "0366": 91 | /***/ (function(module, exports, __webpack_require__) { 92 | 93 | var aFunction = __webpack_require__("1c0b"); 94 | 95 | // optional / simple context binding 96 | module.exports = function (fn, that, length) { 97 | aFunction(fn); 98 | if (that === undefined) return fn; 99 | switch (length) { 100 | case 0: return function () { 101 | return fn.call(that); 102 | }; 103 | case 1: return function (a) { 104 | return fn.call(that, a); 105 | }; 106 | case 2: return function (a, b) { 107 | return fn.call(that, a, b); 108 | }; 109 | case 3: return function (a, b, c) { 110 | return fn.call(that, a, b, c); 111 | }; 112 | } 113 | return function (/* ...args */) { 114 | return fn.apply(that, arguments); 115 | }; 116 | }; 117 | 118 | 119 | /***/ }), 120 | 121 | /***/ "06cf": 122 | /***/ (function(module, exports, __webpack_require__) { 123 | 124 | var DESCRIPTORS = __webpack_require__("83ab"); 125 | var propertyIsEnumerableModule = __webpack_require__("d1e7"); 126 | var createPropertyDescriptor = __webpack_require__("5c6c"); 127 | var toIndexedObject = __webpack_require__("fc6a"); 128 | var toPrimitive = __webpack_require__("c04e"); 129 | var has = __webpack_require__("5135"); 130 | var IE8_DOM_DEFINE = __webpack_require__("0cfb"); 131 | 132 | var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; 133 | 134 | // `Object.getOwnPropertyDescriptor` method 135 | // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor 136 | exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { 137 | O = toIndexedObject(O); 138 | P = toPrimitive(P, true); 139 | if (IE8_DOM_DEFINE) try { 140 | return nativeGetOwnPropertyDescriptor(O, P); 141 | } catch (error) { /* empty */ } 142 | if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]); 143 | }; 144 | 145 | 146 | /***/ }), 147 | 148 | /***/ "0cfb": 149 | /***/ (function(module, exports, __webpack_require__) { 150 | 151 | var DESCRIPTORS = __webpack_require__("83ab"); 152 | var fails = __webpack_require__("d039"); 153 | var createElement = __webpack_require__("cc12"); 154 | 155 | // Thank's IE8 for his funny defineProperty 156 | module.exports = !DESCRIPTORS && !fails(function () { 157 | return Object.defineProperty(createElement('div'), 'a', { 158 | get: function () { return 7; } 159 | }).a != 7; 160 | }); 161 | 162 | 163 | /***/ }), 164 | 165 | /***/ "159b": 166 | /***/ (function(module, exports, __webpack_require__) { 167 | 168 | var global = __webpack_require__("da84"); 169 | var DOMIterables = __webpack_require__("fdbc"); 170 | var forEach = __webpack_require__("17c2"); 171 | var createNonEnumerableProperty = __webpack_require__("9112"); 172 | 173 | for (var COLLECTION_NAME in DOMIterables) { 174 | var Collection = global[COLLECTION_NAME]; 175 | var CollectionPrototype = Collection && Collection.prototype; 176 | // some Chrome versions have non-configurable methods on DOMTokenList 177 | if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try { 178 | createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach); 179 | } catch (error) { 180 | CollectionPrototype.forEach = forEach; 181 | } 182 | } 183 | 184 | 185 | /***/ }), 186 | 187 | /***/ "17c2": 188 | /***/ (function(module, exports, __webpack_require__) { 189 | 190 | "use strict"; 191 | 192 | var $forEach = __webpack_require__("b727").forEach; 193 | var arrayMethodIsStrict = __webpack_require__("a640"); 194 | var arrayMethodUsesToLength = __webpack_require__("ae40"); 195 | 196 | var STRICT_METHOD = arrayMethodIsStrict('forEach'); 197 | var USES_TO_LENGTH = arrayMethodUsesToLength('forEach'); 198 | 199 | // `Array.prototype.forEach` method implementation 200 | // https://tc39.github.io/ecma262/#sec-array.prototype.foreach 201 | module.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callbackfn /* , thisArg */) { 202 | return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); 203 | } : [].forEach; 204 | 205 | 206 | /***/ }), 207 | 208 | /***/ "1c0b": 209 | /***/ (function(module, exports) { 210 | 211 | module.exports = function (it) { 212 | if (typeof it != 'function') { 213 | throw TypeError(String(it) + ' is not a function'); 214 | } return it; 215 | }; 216 | 217 | 218 | /***/ }), 219 | 220 | /***/ "1d80": 221 | /***/ (function(module, exports) { 222 | 223 | // `RequireObjectCoercible` abstract operation 224 | // https://tc39.github.io/ecma262/#sec-requireobjectcoercible 225 | module.exports = function (it) { 226 | if (it == undefined) throw TypeError("Can't call method on " + it); 227 | return it; 228 | }; 229 | 230 | 231 | /***/ }), 232 | 233 | /***/ "1eb2": 234 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 235 | 236 | "use strict"; 237 | // This file is imported into lib/wc client bundles. 238 | 239 | if (typeof window !== 'undefined') { 240 | if (true) { 241 | __webpack_require__("f6fd") 242 | } 243 | 244 | var i 245 | if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) { 246 | __webpack_require__.p = i[1] // eslint-disable-line 247 | } 248 | } 249 | 250 | // Indicate to webpack that this file can be concatenated 251 | /* unused harmony default export */ var _unused_webpack_default_export = (null); 252 | 253 | 254 | /***/ }), 255 | 256 | /***/ "23cb": 257 | /***/ (function(module, exports, __webpack_require__) { 258 | 259 | var toInteger = __webpack_require__("a691"); 260 | 261 | var max = Math.max; 262 | var min = Math.min; 263 | 264 | // Helper for a popular repeating case of the spec: 265 | // Let integer be ? ToInteger(index). 266 | // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). 267 | module.exports = function (index, length) { 268 | var integer = toInteger(index); 269 | return integer < 0 ? max(integer + length, 0) : min(integer, length); 270 | }; 271 | 272 | 273 | /***/ }), 274 | 275 | /***/ "23e7": 276 | /***/ (function(module, exports, __webpack_require__) { 277 | 278 | var global = __webpack_require__("da84"); 279 | var getOwnPropertyDescriptor = __webpack_require__("06cf").f; 280 | var createNonEnumerableProperty = __webpack_require__("9112"); 281 | var redefine = __webpack_require__("6eeb"); 282 | var setGlobal = __webpack_require__("ce4e"); 283 | var copyConstructorProperties = __webpack_require__("e893"); 284 | var isForced = __webpack_require__("94ca"); 285 | 286 | /* 287 | options.target - name of the target object 288 | options.global - target is the global object 289 | options.stat - export as static methods of target 290 | options.proto - export as prototype methods of target 291 | options.real - real prototype method for the `pure` version 292 | options.forced - export even if the native feature is available 293 | options.bind - bind methods to the target, required for the `pure` version 294 | options.wrap - wrap constructors to preventing global pollution, required for the `pure` version 295 | options.unsafe - use the simple assignment of property instead of delete + defineProperty 296 | options.sham - add a flag to not completely full polyfills 297 | options.enumerable - export as enumerable property 298 | options.noTargetGet - prevent calling a getter on target 299 | */ 300 | module.exports = function (options, source) { 301 | var TARGET = options.target; 302 | var GLOBAL = options.global; 303 | var STATIC = options.stat; 304 | var FORCED, target, key, targetProperty, sourceProperty, descriptor; 305 | if (GLOBAL) { 306 | target = global; 307 | } else if (STATIC) { 308 | target = global[TARGET] || setGlobal(TARGET, {}); 309 | } else { 310 | target = (global[TARGET] || {}).prototype; 311 | } 312 | if (target) for (key in source) { 313 | sourceProperty = source[key]; 314 | if (options.noTargetGet) { 315 | descriptor = getOwnPropertyDescriptor(target, key); 316 | targetProperty = descriptor && descriptor.value; 317 | } else targetProperty = target[key]; 318 | FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); 319 | // contained in target 320 | if (!FORCED && targetProperty !== undefined) { 321 | if (typeof sourceProperty === typeof targetProperty) continue; 322 | copyConstructorProperties(sourceProperty, targetProperty); 323 | } 324 | // add a flag to not completely full polyfills 325 | if (options.sham || (targetProperty && targetProperty.sham)) { 326 | createNonEnumerableProperty(sourceProperty, 'sham', true); 327 | } 328 | // extend global 329 | redefine(target, key, sourceProperty, options); 330 | } 331 | }; 332 | 333 | 334 | /***/ }), 335 | 336 | /***/ "241c": 337 | /***/ (function(module, exports, __webpack_require__) { 338 | 339 | var internalObjectKeys = __webpack_require__("ca84"); 340 | var enumBugKeys = __webpack_require__("7839"); 341 | 342 | var hiddenKeys = enumBugKeys.concat('length', 'prototype'); 343 | 344 | // `Object.getOwnPropertyNames` method 345 | // https://tc39.github.io/ecma262/#sec-object.getownpropertynames 346 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { 347 | return internalObjectKeys(O, hiddenKeys); 348 | }; 349 | 350 | 351 | /***/ }), 352 | 353 | /***/ "323e": 354 | /***/ (function(module, exports, __webpack_require__) { 355 | 356 | "use strict"; 357 | 358 | /* eslint-disable */ 359 | 360 | __webpack_require__("4160"); 361 | 362 | __webpack_require__("159b"); 363 | 364 | exports.__esModule = true; 365 | 366 | var vue_1 = __webpack_require__("8bbf"); 367 | 368 | var Print = 369 | /** @class */ 370 | function () { 371 | function Print(dom) { 372 | if (dom instanceof HTMLElement) { 373 | this.dom = dom; 374 | } else if (dom instanceof vue_1['default']) { 375 | this.dom = dom.$el; 376 | } else if (typeof dom === 'string') { 377 | this.dom = document.querySelector(dom); 378 | } else {// TODO 379 | } 380 | 381 | this.init(); 382 | } 383 | 384 | Print.prototype.init = function () { 385 | var style = this.getStyle(); 386 | var html = this.dom.outerHTML; 387 | var content = style + html; 388 | this.iframePrint(content); 389 | }; // 获取link 和 style 390 | 391 | 392 | Print.prototype.getStyle = function () { 393 | var styleString = ''; 394 | var styles = document.querySelectorAll('style,link'); 395 | styles.forEach(function (style) { 396 | styleString += style.outerHTML; 397 | }); 398 | return styleString; 399 | }; // 通过 iframe 打印 400 | 401 | 402 | Print.prototype.iframePrint = function (content) { 403 | var iframe = document.createElement('iframe'); 404 | iframe.setAttribute('style', 'position:absolute;width:0;height:0;top:-100%;left:-100%;'); 405 | var el = document.body.appendChild(iframe); 406 | var _window = el.contentWindow; 407 | 408 | var _document = el.contentDocument || el.contentWindow.document; 409 | 410 | _document.open(); 411 | 412 | _document.write(content); 413 | 414 | _document.close(); 415 | 416 | iframe.onload = function () { 417 | _window.print(); 418 | }; 419 | }; 420 | 421 | return Print; 422 | }(); 423 | 424 | exports['default'] = { 425 | install: function install(Vue) { 426 | // 4. 添加实例方法 427 | Vue.prototype.$print = function (dom) { 428 | return new Print(dom); 429 | }; 430 | } 431 | }; 432 | 433 | /***/ }), 434 | 435 | /***/ "4160": 436 | /***/ (function(module, exports, __webpack_require__) { 437 | 438 | "use strict"; 439 | 440 | var $ = __webpack_require__("23e7"); 441 | var forEach = __webpack_require__("17c2"); 442 | 443 | // `Array.prototype.forEach` method 444 | // https://tc39.github.io/ecma262/#sec-array.prototype.foreach 445 | $({ target: 'Array', proto: true, forced: [].forEach != forEach }, { 446 | forEach: forEach 447 | }); 448 | 449 | 450 | /***/ }), 451 | 452 | /***/ "428f": 453 | /***/ (function(module, exports, __webpack_require__) { 454 | 455 | var global = __webpack_require__("da84"); 456 | 457 | module.exports = global; 458 | 459 | 460 | /***/ }), 461 | 462 | /***/ "44ad": 463 | /***/ (function(module, exports, __webpack_require__) { 464 | 465 | var fails = __webpack_require__("d039"); 466 | var classof = __webpack_require__("c6b6"); 467 | 468 | var split = ''.split; 469 | 470 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 471 | module.exports = fails(function () { 472 | // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 473 | // eslint-disable-next-line no-prototype-builtins 474 | return !Object('z').propertyIsEnumerable(0); 475 | }) ? function (it) { 476 | return classof(it) == 'String' ? split.call(it, '') : Object(it); 477 | } : Object; 478 | 479 | 480 | /***/ }), 481 | 482 | /***/ "4930": 483 | /***/ (function(module, exports, __webpack_require__) { 484 | 485 | var fails = __webpack_require__("d039"); 486 | 487 | module.exports = !!Object.getOwnPropertySymbols && !fails(function () { 488 | // Chrome 38 Symbol has incorrect toString conversion 489 | // eslint-disable-next-line no-undef 490 | return !String(Symbol()); 491 | }); 492 | 493 | 494 | /***/ }), 495 | 496 | /***/ "4d64": 497 | /***/ (function(module, exports, __webpack_require__) { 498 | 499 | var toIndexedObject = __webpack_require__("fc6a"); 500 | var toLength = __webpack_require__("50c4"); 501 | var toAbsoluteIndex = __webpack_require__("23cb"); 502 | 503 | // `Array.prototype.{ indexOf, includes }` methods implementation 504 | var createMethod = function (IS_INCLUDES) { 505 | return function ($this, el, fromIndex) { 506 | var O = toIndexedObject($this); 507 | var length = toLength(O.length); 508 | var index = toAbsoluteIndex(fromIndex, length); 509 | var value; 510 | // Array#includes uses SameValueZero equality algorithm 511 | // eslint-disable-next-line no-self-compare 512 | if (IS_INCLUDES && el != el) while (length > index) { 513 | value = O[index++]; 514 | // eslint-disable-next-line no-self-compare 515 | if (value != value) return true; 516 | // Array#indexOf ignores holes, Array#includes - not 517 | } else for (;length > index; index++) { 518 | if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; 519 | } return !IS_INCLUDES && -1; 520 | }; 521 | }; 522 | 523 | module.exports = { 524 | // `Array.prototype.includes` method 525 | // https://tc39.github.io/ecma262/#sec-array.prototype.includes 526 | includes: createMethod(true), 527 | // `Array.prototype.indexOf` method 528 | // https://tc39.github.io/ecma262/#sec-array.prototype.indexof 529 | indexOf: createMethod(false) 530 | }; 531 | 532 | 533 | /***/ }), 534 | 535 | /***/ "50c4": 536 | /***/ (function(module, exports, __webpack_require__) { 537 | 538 | var toInteger = __webpack_require__("a691"); 539 | 540 | var min = Math.min; 541 | 542 | // `ToLength` abstract operation 543 | // https://tc39.github.io/ecma262/#sec-tolength 544 | module.exports = function (argument) { 545 | return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 546 | }; 547 | 548 | 549 | /***/ }), 550 | 551 | /***/ "5135": 552 | /***/ (function(module, exports) { 553 | 554 | var hasOwnProperty = {}.hasOwnProperty; 555 | 556 | module.exports = function (it, key) { 557 | return hasOwnProperty.call(it, key); 558 | }; 559 | 560 | 561 | /***/ }), 562 | 563 | /***/ "5692": 564 | /***/ (function(module, exports, __webpack_require__) { 565 | 566 | var IS_PURE = __webpack_require__("c430"); 567 | var store = __webpack_require__("c6cd"); 568 | 569 | (module.exports = function (key, value) { 570 | return store[key] || (store[key] = value !== undefined ? value : {}); 571 | })('versions', []).push({ 572 | version: '3.6.4', 573 | mode: IS_PURE ? 'pure' : 'global', 574 | copyright: '© 2020 Denis Pushkarev (zloirock.ru)' 575 | }); 576 | 577 | 578 | /***/ }), 579 | 580 | /***/ "56ef": 581 | /***/ (function(module, exports, __webpack_require__) { 582 | 583 | var getBuiltIn = __webpack_require__("d066"); 584 | var getOwnPropertyNamesModule = __webpack_require__("241c"); 585 | var getOwnPropertySymbolsModule = __webpack_require__("7418"); 586 | var anObject = __webpack_require__("825a"); 587 | 588 | // all object keys, includes non-enumerable and symbols 589 | module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { 590 | var keys = getOwnPropertyNamesModule.f(anObject(it)); 591 | var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; 592 | return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys; 593 | }; 594 | 595 | 596 | /***/ }), 597 | 598 | /***/ "5c6c": 599 | /***/ (function(module, exports) { 600 | 601 | module.exports = function (bitmap, value) { 602 | return { 603 | enumerable: !(bitmap & 1), 604 | configurable: !(bitmap & 2), 605 | writable: !(bitmap & 4), 606 | value: value 607 | }; 608 | }; 609 | 610 | 611 | /***/ }), 612 | 613 | /***/ "65f0": 614 | /***/ (function(module, exports, __webpack_require__) { 615 | 616 | var isObject = __webpack_require__("861d"); 617 | var isArray = __webpack_require__("e8b5"); 618 | var wellKnownSymbol = __webpack_require__("b622"); 619 | 620 | var SPECIES = wellKnownSymbol('species'); 621 | 622 | // `ArraySpeciesCreate` abstract operation 623 | // https://tc39.github.io/ecma262/#sec-arrayspeciescreate 624 | module.exports = function (originalArray, length) { 625 | var C; 626 | if (isArray(originalArray)) { 627 | C = originalArray.constructor; 628 | // cross-realm fallback 629 | if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; 630 | else if (isObject(C)) { 631 | C = C[SPECIES]; 632 | if (C === null) C = undefined; 633 | } 634 | } return new (C === undefined ? Array : C)(length === 0 ? 0 : length); 635 | }; 636 | 637 | 638 | /***/ }), 639 | 640 | /***/ "69f3": 641 | /***/ (function(module, exports, __webpack_require__) { 642 | 643 | var NATIVE_WEAK_MAP = __webpack_require__("7f9a"); 644 | var global = __webpack_require__("da84"); 645 | var isObject = __webpack_require__("861d"); 646 | var createNonEnumerableProperty = __webpack_require__("9112"); 647 | var objectHas = __webpack_require__("5135"); 648 | var sharedKey = __webpack_require__("f772"); 649 | var hiddenKeys = __webpack_require__("d012"); 650 | 651 | var WeakMap = global.WeakMap; 652 | var set, get, has; 653 | 654 | var enforce = function (it) { 655 | return has(it) ? get(it) : set(it, {}); 656 | }; 657 | 658 | var getterFor = function (TYPE) { 659 | return function (it) { 660 | var state; 661 | if (!isObject(it) || (state = get(it)).type !== TYPE) { 662 | throw TypeError('Incompatible receiver, ' + TYPE + ' required'); 663 | } return state; 664 | }; 665 | }; 666 | 667 | if (NATIVE_WEAK_MAP) { 668 | var store = new WeakMap(); 669 | var wmget = store.get; 670 | var wmhas = store.has; 671 | var wmset = store.set; 672 | set = function (it, metadata) { 673 | wmset.call(store, it, metadata); 674 | return metadata; 675 | }; 676 | get = function (it) { 677 | return wmget.call(store, it) || {}; 678 | }; 679 | has = function (it) { 680 | return wmhas.call(store, it); 681 | }; 682 | } else { 683 | var STATE = sharedKey('state'); 684 | hiddenKeys[STATE] = true; 685 | set = function (it, metadata) { 686 | createNonEnumerableProperty(it, STATE, metadata); 687 | return metadata; 688 | }; 689 | get = function (it) { 690 | return objectHas(it, STATE) ? it[STATE] : {}; 691 | }; 692 | has = function (it) { 693 | return objectHas(it, STATE); 694 | }; 695 | } 696 | 697 | module.exports = { 698 | set: set, 699 | get: get, 700 | has: has, 701 | enforce: enforce, 702 | getterFor: getterFor 703 | }; 704 | 705 | 706 | /***/ }), 707 | 708 | /***/ "6eeb": 709 | /***/ (function(module, exports, __webpack_require__) { 710 | 711 | var global = __webpack_require__("da84"); 712 | var createNonEnumerableProperty = __webpack_require__("9112"); 713 | var has = __webpack_require__("5135"); 714 | var setGlobal = __webpack_require__("ce4e"); 715 | var inspectSource = __webpack_require__("8925"); 716 | var InternalStateModule = __webpack_require__("69f3"); 717 | 718 | var getInternalState = InternalStateModule.get; 719 | var enforceInternalState = InternalStateModule.enforce; 720 | var TEMPLATE = String(String).split('String'); 721 | 722 | (module.exports = function (O, key, value, options) { 723 | var unsafe = options ? !!options.unsafe : false; 724 | var simple = options ? !!options.enumerable : false; 725 | var noTargetGet = options ? !!options.noTargetGet : false; 726 | if (typeof value == 'function') { 727 | if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key); 728 | enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : ''); 729 | } 730 | if (O === global) { 731 | if (simple) O[key] = value; 732 | else setGlobal(key, value); 733 | return; 734 | } else if (!unsafe) { 735 | delete O[key]; 736 | } else if (!noTargetGet && O[key]) { 737 | simple = true; 738 | } 739 | if (simple) O[key] = value; 740 | else createNonEnumerableProperty(O, key, value); 741 | // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative 742 | })(Function.prototype, 'toString', function toString() { 743 | return typeof this == 'function' && getInternalState(this).source || inspectSource(this); 744 | }); 745 | 746 | 747 | /***/ }), 748 | 749 | /***/ "7418": 750 | /***/ (function(module, exports) { 751 | 752 | exports.f = Object.getOwnPropertySymbols; 753 | 754 | 755 | /***/ }), 756 | 757 | /***/ "7839": 758 | /***/ (function(module, exports) { 759 | 760 | // IE8- don't enum bug keys 761 | module.exports = [ 762 | 'constructor', 763 | 'hasOwnProperty', 764 | 'isPrototypeOf', 765 | 'propertyIsEnumerable', 766 | 'toLocaleString', 767 | 'toString', 768 | 'valueOf' 769 | ]; 770 | 771 | 772 | /***/ }), 773 | 774 | /***/ "7b0b": 775 | /***/ (function(module, exports, __webpack_require__) { 776 | 777 | var requireObjectCoercible = __webpack_require__("1d80"); 778 | 779 | // `ToObject` abstract operation 780 | // https://tc39.github.io/ecma262/#sec-toobject 781 | module.exports = function (argument) { 782 | return Object(requireObjectCoercible(argument)); 783 | }; 784 | 785 | 786 | /***/ }), 787 | 788 | /***/ "7f9a": 789 | /***/ (function(module, exports, __webpack_require__) { 790 | 791 | var global = __webpack_require__("da84"); 792 | var inspectSource = __webpack_require__("8925"); 793 | 794 | var WeakMap = global.WeakMap; 795 | 796 | module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap)); 797 | 798 | 799 | /***/ }), 800 | 801 | /***/ "825a": 802 | /***/ (function(module, exports, __webpack_require__) { 803 | 804 | var isObject = __webpack_require__("861d"); 805 | 806 | module.exports = function (it) { 807 | if (!isObject(it)) { 808 | throw TypeError(String(it) + ' is not an object'); 809 | } return it; 810 | }; 811 | 812 | 813 | /***/ }), 814 | 815 | /***/ "83ab": 816 | /***/ (function(module, exports, __webpack_require__) { 817 | 818 | var fails = __webpack_require__("d039"); 819 | 820 | // Thank's IE8 for his funny defineProperty 821 | module.exports = !fails(function () { 822 | return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; 823 | }); 824 | 825 | 826 | /***/ }), 827 | 828 | /***/ "861d": 829 | /***/ (function(module, exports) { 830 | 831 | module.exports = function (it) { 832 | return typeof it === 'object' ? it !== null : typeof it === 'function'; 833 | }; 834 | 835 | 836 | /***/ }), 837 | 838 | /***/ "8925": 839 | /***/ (function(module, exports, __webpack_require__) { 840 | 841 | var store = __webpack_require__("c6cd"); 842 | 843 | var functionToString = Function.toString; 844 | 845 | // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper 846 | if (typeof store.inspectSource != 'function') { 847 | store.inspectSource = function (it) { 848 | return functionToString.call(it); 849 | }; 850 | } 851 | 852 | module.exports = store.inspectSource; 853 | 854 | 855 | /***/ }), 856 | 857 | /***/ "8bbf": 858 | /***/ (function(module, exports) { 859 | 860 | module.exports = require("vue"); 861 | 862 | /***/ }), 863 | 864 | /***/ "90e3": 865 | /***/ (function(module, exports) { 866 | 867 | var id = 0; 868 | var postfix = Math.random(); 869 | 870 | module.exports = function (key) { 871 | return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36); 872 | }; 873 | 874 | 875 | /***/ }), 876 | 877 | /***/ "9112": 878 | /***/ (function(module, exports, __webpack_require__) { 879 | 880 | var DESCRIPTORS = __webpack_require__("83ab"); 881 | var definePropertyModule = __webpack_require__("9bf2"); 882 | var createPropertyDescriptor = __webpack_require__("5c6c"); 883 | 884 | module.exports = DESCRIPTORS ? function (object, key, value) { 885 | return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); 886 | } : function (object, key, value) { 887 | object[key] = value; 888 | return object; 889 | }; 890 | 891 | 892 | /***/ }), 893 | 894 | /***/ "94ca": 895 | /***/ (function(module, exports, __webpack_require__) { 896 | 897 | var fails = __webpack_require__("d039"); 898 | 899 | var replacement = /#|\.prototype\./; 900 | 901 | var isForced = function (feature, detection) { 902 | var value = data[normalize(feature)]; 903 | return value == POLYFILL ? true 904 | : value == NATIVE ? false 905 | : typeof detection == 'function' ? fails(detection) 906 | : !!detection; 907 | }; 908 | 909 | var normalize = isForced.normalize = function (string) { 910 | return String(string).replace(replacement, '.').toLowerCase(); 911 | }; 912 | 913 | var data = isForced.data = {}; 914 | var NATIVE = isForced.NATIVE = 'N'; 915 | var POLYFILL = isForced.POLYFILL = 'P'; 916 | 917 | module.exports = isForced; 918 | 919 | 920 | /***/ }), 921 | 922 | /***/ "9bf2": 923 | /***/ (function(module, exports, __webpack_require__) { 924 | 925 | var DESCRIPTORS = __webpack_require__("83ab"); 926 | var IE8_DOM_DEFINE = __webpack_require__("0cfb"); 927 | var anObject = __webpack_require__("825a"); 928 | var toPrimitive = __webpack_require__("c04e"); 929 | 930 | var nativeDefineProperty = Object.defineProperty; 931 | 932 | // `Object.defineProperty` method 933 | // https://tc39.github.io/ecma262/#sec-object.defineproperty 934 | exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) { 935 | anObject(O); 936 | P = toPrimitive(P, true); 937 | anObject(Attributes); 938 | if (IE8_DOM_DEFINE) try { 939 | return nativeDefineProperty(O, P, Attributes); 940 | } catch (error) { /* empty */ } 941 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); 942 | if ('value' in Attributes) O[P] = Attributes.value; 943 | return O; 944 | }; 945 | 946 | 947 | /***/ }), 948 | 949 | /***/ "a640": 950 | /***/ (function(module, exports, __webpack_require__) { 951 | 952 | "use strict"; 953 | 954 | var fails = __webpack_require__("d039"); 955 | 956 | module.exports = function (METHOD_NAME, argument) { 957 | var method = [][METHOD_NAME]; 958 | return !!method && fails(function () { 959 | // eslint-disable-next-line no-useless-call,no-throw-literal 960 | method.call(null, argument || function () { throw 1; }, 1); 961 | }); 962 | }; 963 | 964 | 965 | /***/ }), 966 | 967 | /***/ "a691": 968 | /***/ (function(module, exports) { 969 | 970 | var ceil = Math.ceil; 971 | var floor = Math.floor; 972 | 973 | // `ToInteger` abstract operation 974 | // https://tc39.github.io/ecma262/#sec-tointeger 975 | module.exports = function (argument) { 976 | return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); 977 | }; 978 | 979 | 980 | /***/ }), 981 | 982 | /***/ "ae40": 983 | /***/ (function(module, exports, __webpack_require__) { 984 | 985 | var DESCRIPTORS = __webpack_require__("83ab"); 986 | var fails = __webpack_require__("d039"); 987 | var has = __webpack_require__("5135"); 988 | 989 | var defineProperty = Object.defineProperty; 990 | var cache = {}; 991 | 992 | var thrower = function (it) { throw it; }; 993 | 994 | module.exports = function (METHOD_NAME, options) { 995 | if (has(cache, METHOD_NAME)) return cache[METHOD_NAME]; 996 | if (!options) options = {}; 997 | var method = [][METHOD_NAME]; 998 | var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false; 999 | var argument0 = has(options, 0) ? options[0] : thrower; 1000 | var argument1 = has(options, 1) ? options[1] : undefined; 1001 | 1002 | return cache[METHOD_NAME] = !!method && !fails(function () { 1003 | if (ACCESSORS && !DESCRIPTORS) return true; 1004 | var O = { length: -1 }; 1005 | 1006 | if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower }); 1007 | else O[1] = 1; 1008 | 1009 | method.call(O, argument0, argument1); 1010 | }); 1011 | }; 1012 | 1013 | 1014 | /***/ }), 1015 | 1016 | /***/ "b622": 1017 | /***/ (function(module, exports, __webpack_require__) { 1018 | 1019 | var global = __webpack_require__("da84"); 1020 | var shared = __webpack_require__("5692"); 1021 | var has = __webpack_require__("5135"); 1022 | var uid = __webpack_require__("90e3"); 1023 | var NATIVE_SYMBOL = __webpack_require__("4930"); 1024 | var USE_SYMBOL_AS_UID = __webpack_require__("fdbf"); 1025 | 1026 | var WellKnownSymbolsStore = shared('wks'); 1027 | var Symbol = global.Symbol; 1028 | var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid; 1029 | 1030 | module.exports = function (name) { 1031 | if (!has(WellKnownSymbolsStore, name)) { 1032 | if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name]; 1033 | else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); 1034 | } return WellKnownSymbolsStore[name]; 1035 | }; 1036 | 1037 | 1038 | /***/ }), 1039 | 1040 | /***/ "b727": 1041 | /***/ (function(module, exports, __webpack_require__) { 1042 | 1043 | var bind = __webpack_require__("0366"); 1044 | var IndexedObject = __webpack_require__("44ad"); 1045 | var toObject = __webpack_require__("7b0b"); 1046 | var toLength = __webpack_require__("50c4"); 1047 | var arraySpeciesCreate = __webpack_require__("65f0"); 1048 | 1049 | var push = [].push; 1050 | 1051 | // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation 1052 | var createMethod = function (TYPE) { 1053 | var IS_MAP = TYPE == 1; 1054 | var IS_FILTER = TYPE == 2; 1055 | var IS_SOME = TYPE == 3; 1056 | var IS_EVERY = TYPE == 4; 1057 | var IS_FIND_INDEX = TYPE == 6; 1058 | var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; 1059 | return function ($this, callbackfn, that, specificCreate) { 1060 | var O = toObject($this); 1061 | var self = IndexedObject(O); 1062 | var boundFunction = bind(callbackfn, that, 3); 1063 | var length = toLength(self.length); 1064 | var index = 0; 1065 | var create = specificCreate || arraySpeciesCreate; 1066 | var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; 1067 | var value, result; 1068 | for (;length > index; index++) if (NO_HOLES || index in self) { 1069 | value = self[index]; 1070 | result = boundFunction(value, index, O); 1071 | if (TYPE) { 1072 | if (IS_MAP) target[index] = result; // map 1073 | else if (result) switch (TYPE) { 1074 | case 3: return true; // some 1075 | case 5: return value; // find 1076 | case 6: return index; // findIndex 1077 | case 2: push.call(target, value); // filter 1078 | } else if (IS_EVERY) return false; // every 1079 | } 1080 | } 1081 | return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; 1082 | }; 1083 | }; 1084 | 1085 | module.exports = { 1086 | // `Array.prototype.forEach` method 1087 | // https://tc39.github.io/ecma262/#sec-array.prototype.foreach 1088 | forEach: createMethod(0), 1089 | // `Array.prototype.map` method 1090 | // https://tc39.github.io/ecma262/#sec-array.prototype.map 1091 | map: createMethod(1), 1092 | // `Array.prototype.filter` method 1093 | // https://tc39.github.io/ecma262/#sec-array.prototype.filter 1094 | filter: createMethod(2), 1095 | // `Array.prototype.some` method 1096 | // https://tc39.github.io/ecma262/#sec-array.prototype.some 1097 | some: createMethod(3), 1098 | // `Array.prototype.every` method 1099 | // https://tc39.github.io/ecma262/#sec-array.prototype.every 1100 | every: createMethod(4), 1101 | // `Array.prototype.find` method 1102 | // https://tc39.github.io/ecma262/#sec-array.prototype.find 1103 | find: createMethod(5), 1104 | // `Array.prototype.findIndex` method 1105 | // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex 1106 | findIndex: createMethod(6) 1107 | }; 1108 | 1109 | 1110 | /***/ }), 1111 | 1112 | /***/ "c04e": 1113 | /***/ (function(module, exports, __webpack_require__) { 1114 | 1115 | var isObject = __webpack_require__("861d"); 1116 | 1117 | // `ToPrimitive` abstract operation 1118 | // https://tc39.github.io/ecma262/#sec-toprimitive 1119 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 1120 | // and the second argument - flag - preferred type is a string 1121 | module.exports = function (input, PREFERRED_STRING) { 1122 | if (!isObject(input)) return input; 1123 | var fn, val; 1124 | if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; 1125 | if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val; 1126 | if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; 1127 | throw TypeError("Can't convert object to primitive value"); 1128 | }; 1129 | 1130 | 1131 | /***/ }), 1132 | 1133 | /***/ "c430": 1134 | /***/ (function(module, exports) { 1135 | 1136 | module.exports = false; 1137 | 1138 | 1139 | /***/ }), 1140 | 1141 | /***/ "c6b6": 1142 | /***/ (function(module, exports) { 1143 | 1144 | var toString = {}.toString; 1145 | 1146 | module.exports = function (it) { 1147 | return toString.call(it).slice(8, -1); 1148 | }; 1149 | 1150 | 1151 | /***/ }), 1152 | 1153 | /***/ "c6cd": 1154 | /***/ (function(module, exports, __webpack_require__) { 1155 | 1156 | var global = __webpack_require__("da84"); 1157 | var setGlobal = __webpack_require__("ce4e"); 1158 | 1159 | var SHARED = '__core-js_shared__'; 1160 | var store = global[SHARED] || setGlobal(SHARED, {}); 1161 | 1162 | module.exports = store; 1163 | 1164 | 1165 | /***/ }), 1166 | 1167 | /***/ "c8ba": 1168 | /***/ (function(module, exports) { 1169 | 1170 | var g; 1171 | 1172 | // This works in non-strict mode 1173 | g = (function() { 1174 | return this; 1175 | })(); 1176 | 1177 | try { 1178 | // This works if eval is allowed (see CSP) 1179 | g = g || new Function("return this")(); 1180 | } catch (e) { 1181 | // This works if the window reference is available 1182 | if (typeof window === "object") g = window; 1183 | } 1184 | 1185 | // g can still be undefined, but nothing to do about it... 1186 | // We return undefined, instead of nothing here, so it's 1187 | // easier to handle this case. if(!global) { ...} 1188 | 1189 | module.exports = g; 1190 | 1191 | 1192 | /***/ }), 1193 | 1194 | /***/ "ca84": 1195 | /***/ (function(module, exports, __webpack_require__) { 1196 | 1197 | var has = __webpack_require__("5135"); 1198 | var toIndexedObject = __webpack_require__("fc6a"); 1199 | var indexOf = __webpack_require__("4d64").indexOf; 1200 | var hiddenKeys = __webpack_require__("d012"); 1201 | 1202 | module.exports = function (object, names) { 1203 | var O = toIndexedObject(object); 1204 | var i = 0; 1205 | var result = []; 1206 | var key; 1207 | for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key); 1208 | // Don't enum bug & hidden keys 1209 | while (names.length > i) if (has(O, key = names[i++])) { 1210 | ~indexOf(result, key) || result.push(key); 1211 | } 1212 | return result; 1213 | }; 1214 | 1215 | 1216 | /***/ }), 1217 | 1218 | /***/ "cc12": 1219 | /***/ (function(module, exports, __webpack_require__) { 1220 | 1221 | var global = __webpack_require__("da84"); 1222 | var isObject = __webpack_require__("861d"); 1223 | 1224 | var document = global.document; 1225 | // typeof document.createElement is 'object' in old IE 1226 | var EXISTS = isObject(document) && isObject(document.createElement); 1227 | 1228 | module.exports = function (it) { 1229 | return EXISTS ? document.createElement(it) : {}; 1230 | }; 1231 | 1232 | 1233 | /***/ }), 1234 | 1235 | /***/ "ce4e": 1236 | /***/ (function(module, exports, __webpack_require__) { 1237 | 1238 | var global = __webpack_require__("da84"); 1239 | var createNonEnumerableProperty = __webpack_require__("9112"); 1240 | 1241 | module.exports = function (key, value) { 1242 | try { 1243 | createNonEnumerableProperty(global, key, value); 1244 | } catch (error) { 1245 | global[key] = value; 1246 | } return value; 1247 | }; 1248 | 1249 | 1250 | /***/ }), 1251 | 1252 | /***/ "d012": 1253 | /***/ (function(module, exports) { 1254 | 1255 | module.exports = {}; 1256 | 1257 | 1258 | /***/ }), 1259 | 1260 | /***/ "d039": 1261 | /***/ (function(module, exports) { 1262 | 1263 | module.exports = function (exec) { 1264 | try { 1265 | return !!exec(); 1266 | } catch (error) { 1267 | return true; 1268 | } 1269 | }; 1270 | 1271 | 1272 | /***/ }), 1273 | 1274 | /***/ "d066": 1275 | /***/ (function(module, exports, __webpack_require__) { 1276 | 1277 | var path = __webpack_require__("428f"); 1278 | var global = __webpack_require__("da84"); 1279 | 1280 | var aFunction = function (variable) { 1281 | return typeof variable == 'function' ? variable : undefined; 1282 | }; 1283 | 1284 | module.exports = function (namespace, method) { 1285 | return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace]) 1286 | : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method]; 1287 | }; 1288 | 1289 | 1290 | /***/ }), 1291 | 1292 | /***/ "d1e7": 1293 | /***/ (function(module, exports, __webpack_require__) { 1294 | 1295 | "use strict"; 1296 | 1297 | var nativePropertyIsEnumerable = {}.propertyIsEnumerable; 1298 | var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; 1299 | 1300 | // Nashorn ~ JDK8 bug 1301 | var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1); 1302 | 1303 | // `Object.prototype.propertyIsEnumerable` method implementation 1304 | // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable 1305 | exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) { 1306 | var descriptor = getOwnPropertyDescriptor(this, V); 1307 | return !!descriptor && descriptor.enumerable; 1308 | } : nativePropertyIsEnumerable; 1309 | 1310 | 1311 | /***/ }), 1312 | 1313 | /***/ "da84": 1314 | /***/ (function(module, exports, __webpack_require__) { 1315 | 1316 | /* WEBPACK VAR INJECTION */(function(global) {var check = function (it) { 1317 | return it && it.Math == Math && it; 1318 | }; 1319 | 1320 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 1321 | module.exports = 1322 | // eslint-disable-next-line no-undef 1323 | check(typeof globalThis == 'object' && globalThis) || 1324 | check(typeof window == 'object' && window) || 1325 | check(typeof self == 'object' && self) || 1326 | check(typeof global == 'object' && global) || 1327 | // eslint-disable-next-line no-new-func 1328 | Function('return this')(); 1329 | 1330 | /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba"))) 1331 | 1332 | /***/ }), 1333 | 1334 | /***/ "e893": 1335 | /***/ (function(module, exports, __webpack_require__) { 1336 | 1337 | var has = __webpack_require__("5135"); 1338 | var ownKeys = __webpack_require__("56ef"); 1339 | var getOwnPropertyDescriptorModule = __webpack_require__("06cf"); 1340 | var definePropertyModule = __webpack_require__("9bf2"); 1341 | 1342 | module.exports = function (target, source) { 1343 | var keys = ownKeys(source); 1344 | var defineProperty = definePropertyModule.f; 1345 | var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; 1346 | for (var i = 0; i < keys.length; i++) { 1347 | var key = keys[i]; 1348 | if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); 1349 | } 1350 | }; 1351 | 1352 | 1353 | /***/ }), 1354 | 1355 | /***/ "e8b5": 1356 | /***/ (function(module, exports, __webpack_require__) { 1357 | 1358 | var classof = __webpack_require__("c6b6"); 1359 | 1360 | // `IsArray` abstract operation 1361 | // https://tc39.github.io/ecma262/#sec-isarray 1362 | module.exports = Array.isArray || function isArray(arg) { 1363 | return classof(arg) == 'Array'; 1364 | }; 1365 | 1366 | 1367 | /***/ }), 1368 | 1369 | /***/ "f6fd": 1370 | /***/ (function(module, exports) { 1371 | 1372 | // document.currentScript polyfill by Adam Miller 1373 | 1374 | // MIT license 1375 | 1376 | (function(document){ 1377 | var currentScript = "currentScript", 1378 | scripts = document.getElementsByTagName('script'); // Live NodeList collection 1379 | 1380 | // If browser needs currentScript polyfill, add get currentScript() to the document object 1381 | if (!(currentScript in document)) { 1382 | Object.defineProperty(document, currentScript, { 1383 | get: function(){ 1384 | 1385 | // IE 6-10 supports script readyState 1386 | // IE 10+ support stack trace 1387 | try { throw new Error(); } 1388 | catch (err) { 1389 | 1390 | // Find the second match for the "at" string to get file src url from stack. 1391 | // Specifically works with the format of stack traces in IE. 1392 | var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1]; 1393 | 1394 | // For all scripts on the page, if src matches or if ready state is interactive, return the script tag 1395 | for(i in scripts){ 1396 | if(scripts[i].src == res || scripts[i].readyState == "interactive"){ 1397 | return scripts[i]; 1398 | } 1399 | } 1400 | 1401 | // If no match, return null 1402 | return null; 1403 | } 1404 | } 1405 | }); 1406 | } 1407 | })(document); 1408 | 1409 | 1410 | /***/ }), 1411 | 1412 | /***/ "f772": 1413 | /***/ (function(module, exports, __webpack_require__) { 1414 | 1415 | var shared = __webpack_require__("5692"); 1416 | var uid = __webpack_require__("90e3"); 1417 | 1418 | var keys = shared('keys'); 1419 | 1420 | module.exports = function (key) { 1421 | return keys[key] || (keys[key] = uid(key)); 1422 | }; 1423 | 1424 | 1425 | /***/ }), 1426 | 1427 | /***/ "fae3": 1428 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 1429 | 1430 | "use strict"; 1431 | __webpack_require__.r(__webpack_exports__); 1432 | /* harmony import */ var _setPublicPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1eb2"); 1433 | /* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("323e"); 1434 | /* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_entry__WEBPACK_IMPORTED_MODULE_1__); 1435 | /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _entry__WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _entry__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); 1436 | 1437 | 1438 | 1439 | 1440 | /***/ }), 1441 | 1442 | /***/ "fc6a": 1443 | /***/ (function(module, exports, __webpack_require__) { 1444 | 1445 | // toObject with fallback for non-array-like ES3 strings 1446 | var IndexedObject = __webpack_require__("44ad"); 1447 | var requireObjectCoercible = __webpack_require__("1d80"); 1448 | 1449 | module.exports = function (it) { 1450 | return IndexedObject(requireObjectCoercible(it)); 1451 | }; 1452 | 1453 | 1454 | /***/ }), 1455 | 1456 | /***/ "fdbc": 1457 | /***/ (function(module, exports) { 1458 | 1459 | // iterable DOM collections 1460 | // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods 1461 | module.exports = { 1462 | CSSRuleList: 0, 1463 | CSSStyleDeclaration: 0, 1464 | CSSValueList: 0, 1465 | ClientRectList: 0, 1466 | DOMRectList: 0, 1467 | DOMStringList: 0, 1468 | DOMTokenList: 1, 1469 | DataTransferItemList: 0, 1470 | FileList: 0, 1471 | HTMLAllCollection: 0, 1472 | HTMLCollection: 0, 1473 | HTMLFormElement: 0, 1474 | HTMLSelectElement: 0, 1475 | MediaList: 0, 1476 | MimeTypeArray: 0, 1477 | NamedNodeMap: 0, 1478 | NodeList: 1, 1479 | PaintRequestList: 0, 1480 | Plugin: 0, 1481 | PluginArray: 0, 1482 | SVGLengthList: 0, 1483 | SVGNumberList: 0, 1484 | SVGPathSegList: 0, 1485 | SVGPointList: 0, 1486 | SVGStringList: 0, 1487 | SVGTransformList: 0, 1488 | SourceBufferList: 0, 1489 | StyleSheetList: 0, 1490 | TextTrackCueList: 0, 1491 | TextTrackList: 0, 1492 | TouchList: 0 1493 | }; 1494 | 1495 | 1496 | /***/ }), 1497 | 1498 | /***/ "fdbf": 1499 | /***/ (function(module, exports, __webpack_require__) { 1500 | 1501 | var NATIVE_SYMBOL = __webpack_require__("4930"); 1502 | 1503 | module.exports = NATIVE_SYMBOL 1504 | // eslint-disable-next-line no-undef 1505 | && !Symbol.sham 1506 | // eslint-disable-next-line no-undef 1507 | && typeof Symbol.iterator == 'symbol'; 1508 | 1509 | 1510 | /***/ }) 1511 | 1512 | /******/ }); 1513 | //# sourceMappingURL=vue-print-plugin.common.js.map -------------------------------------------------------------------------------- /dist/vue-print-plugin.common.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["webpack://vue-print-plugin/webpack/bootstrap","webpack://vue-print-plugin/./node_modules/core-js/internals/function-bind-context.js","webpack://vue-print-plugin/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://vue-print-plugin/./node_modules/core-js/internals/ie8-dom-define.js","webpack://vue-print-plugin/./node_modules/core-js/modules/web.dom-collections.for-each.js","webpack://vue-print-plugin/./node_modules/core-js/internals/array-for-each.js","webpack://vue-print-plugin/./node_modules/core-js/internals/a-function.js","webpack://vue-print-plugin/./node_modules/core-js/internals/require-object-coercible.js","webpack://vue-print-plugin/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-print-plugin/./node_modules/core-js/internals/to-absolute-index.js","webpack://vue-print-plugin/./node_modules/core-js/internals/export.js","webpack://vue-print-plugin/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://vue-print-plugin/./src/plugins/print/print.js","webpack://vue-print-plugin/./node_modules/core-js/modules/es.array.for-each.js","webpack://vue-print-plugin/./node_modules/core-js/internals/path.js","webpack://vue-print-plugin/./node_modules/core-js/internals/indexed-object.js","webpack://vue-print-plugin/./node_modules/core-js/internals/native-symbol.js","webpack://vue-print-plugin/./node_modules/core-js/internals/array-includes.js","webpack://vue-print-plugin/./node_modules/core-js/internals/to-length.js","webpack://vue-print-plugin/./node_modules/core-js/internals/has.js","webpack://vue-print-plugin/./node_modules/core-js/internals/shared.js","webpack://vue-print-plugin/./node_modules/core-js/internals/own-keys.js","webpack://vue-print-plugin/./node_modules/core-js/internals/create-property-descriptor.js","webpack://vue-print-plugin/./node_modules/core-js/internals/array-species-create.js","webpack://vue-print-plugin/./node_modules/core-js/internals/internal-state.js","webpack://vue-print-plugin/./node_modules/core-js/internals/redefine.js","webpack://vue-print-plugin/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://vue-print-plugin/./node_modules/core-js/internals/enum-bug-keys.js","webpack://vue-print-plugin/./node_modules/core-js/internals/to-object.js","webpack://vue-print-plugin/./node_modules/core-js/internals/native-weak-map.js","webpack://vue-print-plugin/./node_modules/core-js/internals/an-object.js","webpack://vue-print-plugin/./node_modules/core-js/internals/descriptors.js","webpack://vue-print-plugin/./node_modules/core-js/internals/is-object.js","webpack://vue-print-plugin/./node_modules/core-js/internals/inspect-source.js","webpack://vue-print-plugin/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://vue-print-plugin/./node_modules/core-js/internals/uid.js","webpack://vue-print-plugin/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://vue-print-plugin/./node_modules/core-js/internals/is-forced.js","webpack://vue-print-plugin/./node_modules/core-js/internals/object-define-property.js","webpack://vue-print-plugin/./node_modules/core-js/internals/array-method-is-strict.js","webpack://vue-print-plugin/./node_modules/core-js/internals/to-integer.js","webpack://vue-print-plugin/./node_modules/core-js/internals/array-method-uses-to-length.js","webpack://vue-print-plugin/./node_modules/core-js/internals/well-known-symbol.js","webpack://vue-print-plugin/./node_modules/core-js/internals/array-iteration.js","webpack://vue-print-plugin/./node_modules/core-js/internals/to-primitive.js","webpack://vue-print-plugin/./node_modules/core-js/internals/is-pure.js","webpack://vue-print-plugin/./node_modules/core-js/internals/classof-raw.js","webpack://vue-print-plugin/./node_modules/core-js/internals/shared-store.js","webpack://vue-print-plugin/(webpack)/buildin/global.js","webpack://vue-print-plugin/./node_modules/core-js/internals/object-keys-internal.js","webpack://vue-print-plugin/./node_modules/core-js/internals/document-create-element.js","webpack://vue-print-plugin/./node_modules/core-js/internals/set-global.js","webpack://vue-print-plugin/./node_modules/core-js/internals/hidden-keys.js","webpack://vue-print-plugin/./node_modules/core-js/internals/fails.js","webpack://vue-print-plugin/./node_modules/core-js/internals/get-built-in.js","webpack://vue-print-plugin/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://vue-print-plugin/./node_modules/core-js/internals/global.js","webpack://vue-print-plugin/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://vue-print-plugin/./node_modules/core-js/internals/is-array.js","webpack://vue-print-plugin/./node_modules/current-script-polyfill/currentScript.js","webpack://vue-print-plugin/./node_modules/core-js/internals/shared-key.js","webpack://vue-print-plugin/./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js","webpack://vue-print-plugin/./node_modules/core-js/internals/to-indexed-object.js","webpack://vue-print-plugin/./node_modules/core-js/internals/dom-iterables.js","webpack://vue-print-plugin/./node_modules/core-js/internals/use-symbol-as-uid.js"],"names":["exports","__esModule","vue_1","require","Print","dom","HTMLElement","$el","document","querySelector","init","prototype","style","getStyle","html","outerHTML","content","iframePrint","styleString","styles","querySelectorAll","forEach","iframe","createElement","setAttribute","el","body","appendChild","_window","contentWindow","_document","contentDocument","open","write","close","onload","print","install","Vue","$print"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA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;;;;;;;;ACZA,UAAU,mBAAO,CAAC,MAAkB;AACpC,cAAc,mBAAO,CAAC,MAAuB;AAC7C,qCAAqC,mBAAO,CAAC,MAAiD;AAC9F,2BAA2B,mBAAO,CAAC,MAAqC;;AAExE;AACA;AACA;AACA;AACA,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;;;;;;;;ACbA,cAAc,mBAAO,CAAC,MAA0B;;AAEhD;AACA;AACA;AACA;AACA;;;;;;;;ACNA;;AAEA;;AAEA;AACA;AACA,wDAAwD;;AAExD;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,mBAAmB;AAChC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;;;;;;;ACnCD,aAAa,mBAAO,CAAC,MAAqB;AAC1C,UAAU,mBAAO,CAAC,MAAkB;;AAEpC;;AAEA;AACA;AACA;;;;;;;;;ACPA;AAAA;AAAA;AAAA;AAAA;AAAwB;AACF;;;;;;;;ACDtB;AACA,oBAAoB,mBAAO,CAAC,MAA6B;AACzD,6BAA6B,mBAAO,CAAC,MAAuC;;AAE5E;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClCA,oBAAoB,mBAAO,CAAC,MAA4B;;AAExD;AACA;AACA;AACA;AACA","file":"vue-print-plugin.common.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fae3\");\n","var aFunction = require('../internals/a-function');\n\n// optional / simple context binding\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 0: return function () {\n return fn.call(that);\n };\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPrimitive = require('../internals/to-primitive');\nvar has = require('../internals/has');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\nvar nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return nativeGetOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n}\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.github.io/ecma262/#sec-array.prototype.foreach\nmodule.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n} : [].forEach;\n","module.exports = function (it) {\n if (typeof it != 'function') {\n throw TypeError(String(it) + ' is not a function');\n } return it;\n};\n","// `RequireObjectCoercible` abstract operation\n// https://tc39.github.io/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var toInteger = require('../internals/to-integer');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar setGlobal = require('../internals/set-global');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty === typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n // extend global\n redefine(target, key, sourceProperty, options);\n }\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertynames\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","'use strict'\r\n/* eslint-disable */\r\nexports.__esModule = true\r\nvar vue_1 = require('vue')\r\nvar Print = /** @class */ (function () {\r\n function Print (dom) {\r\n if (dom instanceof HTMLElement) {\r\n this.dom = dom\r\n } else if (dom instanceof vue_1['default']) {\r\n this.dom = dom.$el\r\n } else if (typeof dom === 'string') {\r\n this.dom = document.querySelector(dom)\r\n } else {\r\n // TODO\r\n }\r\n this.init()\r\n }\r\n Print.prototype.init = function () {\r\n var style = this.getStyle()\r\n var html = this.dom.outerHTML\r\n var content = style + html\r\n this.iframePrint(content)\r\n }\r\n // 获取link 和 style\r\n Print.prototype.getStyle = function () {\r\n var styleString = ''\r\n var styles = document.querySelectorAll('style,link')\r\n styles.forEach(function (style) {\r\n styleString += style.outerHTML\r\n })\r\n return styleString\r\n }\r\n // 通过 iframe 打印\r\n Print.prototype.iframePrint = function (content) {\r\n var iframe = document.createElement('iframe')\r\n iframe.setAttribute('style', 'position:absolute;width:0;height:0;top:-100%;left:-100%;')\r\n var el = document.body.appendChild(iframe)\r\n var _window = el.contentWindow\r\n var _document = el.contentDocument || el.contentWindow.document\r\n _document.open()\r\n _document.write(content)\r\n _document.close()\r\n iframe.onload = function () {\r\n _window.print()\r\n }\r\n }\r\n return Print\r\n}())\r\nexports['default'] = {\r\n install: function (Vue) {\r\n // 4. 添加实例方法\r\n Vue.prototype.$print = function (dom) { return new Print(dom) }\r\n }\r\n}\r\n","'use strict';\nvar $ = require('../internals/export');\nvar forEach = require('../internals/array-for-each');\n\n// `Array.prototype.forEach` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.foreach\n$({ target: 'Array', proto: true, forced: [].forEach != forEach }, {\n forEach: forEach\n});\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","var fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar split = ''.split;\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split.call(it, '') : Object(it);\n} : Object;\n","var fails = require('../internals/fails');\n\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n // Chrome 38 Symbol has incorrect toString conversion\n // eslint-disable-next-line no-undef\n return !String(Symbol());\n});\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toLength = require('../internals/to-length');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var toInteger = require('../internals/to-integer');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.github.io/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var hasOwnProperty = {}.hasOwnProperty;\n\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.6.4',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n","var getBuiltIn = require('../internals/get-built-in');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var isObject = require('../internals/is-object');\nvar isArray = require('../internals/is-array');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.github.io/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);\n};\n","var NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar objectHas = require('../internals/has');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP) {\n var store = new WeakMap();\n var wmget = store.get;\n var wmhas = store.has;\n var wmset = store.set;\n set = function (it, metadata) {\n wmset.call(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget.call(store, it) || {};\n };\n has = function (it) {\n return wmhas.call(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return objectHas(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return objectHas(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\nvar setGlobal = require('../internals/set-global');\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar getInternalState = InternalStateModule.get;\nvar enforceInternalState = InternalStateModule.enforce;\nvar TEMPLATE = String(String).split('String');\n\n(module.exports = function (O, key, value, options) {\n var unsafe = options ? !!options.unsafe : false;\n var simple = options ? !!options.enumerable : false;\n var noTargetGet = options ? !!options.noTargetGet : false;\n if (typeof value == 'function') {\n if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);\n enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');\n }\n if (O === global) {\n if (simple) O[key] = value;\n else setGlobal(key, value);\n return;\n } else if (!unsafe) {\n delete O[key];\n } else if (!noTargetGet && O[key]) {\n simple = true;\n }\n if (simple) O[key] = value;\n else createNonEnumerableProperty(O, key, value);\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, 'toString', function toString() {\n return typeof this == 'function' && getInternalState(this).source || inspectSource(this);\n});\n","exports.f = Object.getOwnPropertySymbols;\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `ToObject` abstract operation\n// https://tc39.github.io/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n","var global = require('../internals/global');\nvar inspectSource = require('../internals/inspect-source');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));\n","var isObject = require('../internals/is-object');\n\nmodule.exports = function (it) {\n if (!isObject(it)) {\n throw TypeError(String(it) + ' is not an object');\n } return it;\n};\n","var fails = require('../internals/fails');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !fails(function () {\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","var store = require('../internals/shared-store');\n\nvar functionToString = Function.toString;\n\n// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper\nif (typeof store.inspectSource != 'function') {\n store.inspectSource = function (it) {\n return functionToString.call(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","module.exports = require(\"vue\");","var id = 0;\nvar postfix = Math.random();\n\nmodule.exports = function (key) {\n return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var fails = require('../internals/fails');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : typeof detection == 'function' ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar anObject = require('../internals/an-object');\nvar toPrimitive = require('../internals/to-primitive');\n\nvar nativeDefineProperty = Object.defineProperty;\n\n// `Object.defineProperty` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return nativeDefineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call,no-throw-literal\n method.call(null, argument || function () { throw 1; }, 1);\n });\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `ToInteger` abstract operation\n// https://tc39.github.io/ecma262/#sec-tointeger\nmodule.exports = function (argument) {\n return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar has = require('../internals/has');\n\nvar defineProperty = Object.defineProperty;\nvar cache = {};\n\nvar thrower = function (it) { throw it; };\n\nmodule.exports = function (METHOD_NAME, options) {\n if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];\n if (!options) options = {};\n var method = [][METHOD_NAME];\n var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;\n var argument0 = has(options, 0) ? options[0] : thrower;\n var argument1 = has(options, 1) ? options[1] : undefined;\n\n return cache[METHOD_NAME] = !!method && !fails(function () {\n if (ACCESSORS && !DESCRIPTORS) return true;\n var O = { length: -1 };\n\n if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });\n else O[1] = 1;\n\n method.call(O, argument0, argument1);\n });\n};\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar has = require('../internals/has');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!has(WellKnownSymbolsStore, name)) {\n if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];\n else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","var bind = require('../internals/function-bind-context');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = [].push;\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push.call(target, value); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6)\n};\n","var isObject = require('../internals/is-object');\n\n// `ToPrimitive` abstract operation\n// https://tc39.github.io/ecma262/#sec-toprimitive\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (input, PREFERRED_STRING) {\n if (!isObject(input)) return input;\n var fn, val;\n if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;\n if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = false;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var global = require('../internals/global');\nvar setGlobal = require('../internals/set-global');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","var has = require('../internals/has');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~indexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nmodule.exports = function (key, value) {\n try {\n createNonEnumerableProperty(global, key, value);\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","module.exports = {};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var path = require('../internals/path');\nvar global = require('../internals/global');\n\nvar aFunction = function (variable) {\n return typeof variable == 'function' ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])\n : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n","'use strict';\nvar nativePropertyIsEnumerable = {}.propertyIsEnumerable;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : nativePropertyIsEnumerable;\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line no-undef\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func\n Function('return this')();\n","var has = require('../internals/has');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.github.io/ecma262/#sec-isarray\nmodule.exports = Array.isArray || function isArray(arg) {\n return classof(arg) == 'Array';\n};\n","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","import './setPublicPath'\nexport * from '~entry'\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n // eslint-disable-next-line no-undef\n && !Symbol.sham\n // eslint-disable-next-line no-undef\n && typeof Symbol.iterator == 'symbol';\n"],"sourceRoot":""} -------------------------------------------------------------------------------- /dist/vue-print-plugin.umd.js: -------------------------------------------------------------------------------- 1 | (function webpackUniversalModuleDefinition(root, factory) { 2 | if(typeof exports === 'object' && typeof module === 'object') 3 | module.exports = factory(require("vue")); 4 | else if(typeof define === 'function' && define.amd) 5 | define([], factory); 6 | else if(typeof exports === 'object') 7 | exports["vue-print-plugin"] = factory(require("vue")); 8 | else 9 | root["vue-print-plugin"] = factory(root["Vue"]); 10 | })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) { 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 = "fae3"); 95 | /******/ }) 96 | /************************************************************************/ 97 | /******/ ({ 98 | 99 | /***/ "0366": 100 | /***/ (function(module, exports, __webpack_require__) { 101 | 102 | var aFunction = __webpack_require__("1c0b"); 103 | 104 | // optional / simple context binding 105 | module.exports = function (fn, that, length) { 106 | aFunction(fn); 107 | if (that === undefined) return fn; 108 | switch (length) { 109 | case 0: return function () { 110 | return fn.call(that); 111 | }; 112 | case 1: return function (a) { 113 | return fn.call(that, a); 114 | }; 115 | case 2: return function (a, b) { 116 | return fn.call(that, a, b); 117 | }; 118 | case 3: return function (a, b, c) { 119 | return fn.call(that, a, b, c); 120 | }; 121 | } 122 | return function (/* ...args */) { 123 | return fn.apply(that, arguments); 124 | }; 125 | }; 126 | 127 | 128 | /***/ }), 129 | 130 | /***/ "06cf": 131 | /***/ (function(module, exports, __webpack_require__) { 132 | 133 | var DESCRIPTORS = __webpack_require__("83ab"); 134 | var propertyIsEnumerableModule = __webpack_require__("d1e7"); 135 | var createPropertyDescriptor = __webpack_require__("5c6c"); 136 | var toIndexedObject = __webpack_require__("fc6a"); 137 | var toPrimitive = __webpack_require__("c04e"); 138 | var has = __webpack_require__("5135"); 139 | var IE8_DOM_DEFINE = __webpack_require__("0cfb"); 140 | 141 | var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; 142 | 143 | // `Object.getOwnPropertyDescriptor` method 144 | // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor 145 | exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { 146 | O = toIndexedObject(O); 147 | P = toPrimitive(P, true); 148 | if (IE8_DOM_DEFINE) try { 149 | return nativeGetOwnPropertyDescriptor(O, P); 150 | } catch (error) { /* empty */ } 151 | if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]); 152 | }; 153 | 154 | 155 | /***/ }), 156 | 157 | /***/ "0cfb": 158 | /***/ (function(module, exports, __webpack_require__) { 159 | 160 | var DESCRIPTORS = __webpack_require__("83ab"); 161 | var fails = __webpack_require__("d039"); 162 | var createElement = __webpack_require__("cc12"); 163 | 164 | // Thank's IE8 for his funny defineProperty 165 | module.exports = !DESCRIPTORS && !fails(function () { 166 | return Object.defineProperty(createElement('div'), 'a', { 167 | get: function () { return 7; } 168 | }).a != 7; 169 | }); 170 | 171 | 172 | /***/ }), 173 | 174 | /***/ "159b": 175 | /***/ (function(module, exports, __webpack_require__) { 176 | 177 | var global = __webpack_require__("da84"); 178 | var DOMIterables = __webpack_require__("fdbc"); 179 | var forEach = __webpack_require__("17c2"); 180 | var createNonEnumerableProperty = __webpack_require__("9112"); 181 | 182 | for (var COLLECTION_NAME in DOMIterables) { 183 | var Collection = global[COLLECTION_NAME]; 184 | var CollectionPrototype = Collection && Collection.prototype; 185 | // some Chrome versions have non-configurable methods on DOMTokenList 186 | if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try { 187 | createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach); 188 | } catch (error) { 189 | CollectionPrototype.forEach = forEach; 190 | } 191 | } 192 | 193 | 194 | /***/ }), 195 | 196 | /***/ "17c2": 197 | /***/ (function(module, exports, __webpack_require__) { 198 | 199 | "use strict"; 200 | 201 | var $forEach = __webpack_require__("b727").forEach; 202 | var arrayMethodIsStrict = __webpack_require__("a640"); 203 | var arrayMethodUsesToLength = __webpack_require__("ae40"); 204 | 205 | var STRICT_METHOD = arrayMethodIsStrict('forEach'); 206 | var USES_TO_LENGTH = arrayMethodUsesToLength('forEach'); 207 | 208 | // `Array.prototype.forEach` method implementation 209 | // https://tc39.github.io/ecma262/#sec-array.prototype.foreach 210 | module.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callbackfn /* , thisArg */) { 211 | return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); 212 | } : [].forEach; 213 | 214 | 215 | /***/ }), 216 | 217 | /***/ "1c0b": 218 | /***/ (function(module, exports) { 219 | 220 | module.exports = function (it) { 221 | if (typeof it != 'function') { 222 | throw TypeError(String(it) + ' is not a function'); 223 | } return it; 224 | }; 225 | 226 | 227 | /***/ }), 228 | 229 | /***/ "1d80": 230 | /***/ (function(module, exports) { 231 | 232 | // `RequireObjectCoercible` abstract operation 233 | // https://tc39.github.io/ecma262/#sec-requireobjectcoercible 234 | module.exports = function (it) { 235 | if (it == undefined) throw TypeError("Can't call method on " + it); 236 | return it; 237 | }; 238 | 239 | 240 | /***/ }), 241 | 242 | /***/ "1eb2": 243 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 244 | 245 | "use strict"; 246 | // This file is imported into lib/wc client bundles. 247 | 248 | if (typeof window !== 'undefined') { 249 | if (true) { 250 | __webpack_require__("f6fd") 251 | } 252 | 253 | var i 254 | if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) { 255 | __webpack_require__.p = i[1] // eslint-disable-line 256 | } 257 | } 258 | 259 | // Indicate to webpack that this file can be concatenated 260 | /* unused harmony default export */ var _unused_webpack_default_export = (null); 261 | 262 | 263 | /***/ }), 264 | 265 | /***/ "23cb": 266 | /***/ (function(module, exports, __webpack_require__) { 267 | 268 | var toInteger = __webpack_require__("a691"); 269 | 270 | var max = Math.max; 271 | var min = Math.min; 272 | 273 | // Helper for a popular repeating case of the spec: 274 | // Let integer be ? ToInteger(index). 275 | // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). 276 | module.exports = function (index, length) { 277 | var integer = toInteger(index); 278 | return integer < 0 ? max(integer + length, 0) : min(integer, length); 279 | }; 280 | 281 | 282 | /***/ }), 283 | 284 | /***/ "23e7": 285 | /***/ (function(module, exports, __webpack_require__) { 286 | 287 | var global = __webpack_require__("da84"); 288 | var getOwnPropertyDescriptor = __webpack_require__("06cf").f; 289 | var createNonEnumerableProperty = __webpack_require__("9112"); 290 | var redefine = __webpack_require__("6eeb"); 291 | var setGlobal = __webpack_require__("ce4e"); 292 | var copyConstructorProperties = __webpack_require__("e893"); 293 | var isForced = __webpack_require__("94ca"); 294 | 295 | /* 296 | options.target - name of the target object 297 | options.global - target is the global object 298 | options.stat - export as static methods of target 299 | options.proto - export as prototype methods of target 300 | options.real - real prototype method for the `pure` version 301 | options.forced - export even if the native feature is available 302 | options.bind - bind methods to the target, required for the `pure` version 303 | options.wrap - wrap constructors to preventing global pollution, required for the `pure` version 304 | options.unsafe - use the simple assignment of property instead of delete + defineProperty 305 | options.sham - add a flag to not completely full polyfills 306 | options.enumerable - export as enumerable property 307 | options.noTargetGet - prevent calling a getter on target 308 | */ 309 | module.exports = function (options, source) { 310 | var TARGET = options.target; 311 | var GLOBAL = options.global; 312 | var STATIC = options.stat; 313 | var FORCED, target, key, targetProperty, sourceProperty, descriptor; 314 | if (GLOBAL) { 315 | target = global; 316 | } else if (STATIC) { 317 | target = global[TARGET] || setGlobal(TARGET, {}); 318 | } else { 319 | target = (global[TARGET] || {}).prototype; 320 | } 321 | if (target) for (key in source) { 322 | sourceProperty = source[key]; 323 | if (options.noTargetGet) { 324 | descriptor = getOwnPropertyDescriptor(target, key); 325 | targetProperty = descriptor && descriptor.value; 326 | } else targetProperty = target[key]; 327 | FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); 328 | // contained in target 329 | if (!FORCED && targetProperty !== undefined) { 330 | if (typeof sourceProperty === typeof targetProperty) continue; 331 | copyConstructorProperties(sourceProperty, targetProperty); 332 | } 333 | // add a flag to not completely full polyfills 334 | if (options.sham || (targetProperty && targetProperty.sham)) { 335 | createNonEnumerableProperty(sourceProperty, 'sham', true); 336 | } 337 | // extend global 338 | redefine(target, key, sourceProperty, options); 339 | } 340 | }; 341 | 342 | 343 | /***/ }), 344 | 345 | /***/ "241c": 346 | /***/ (function(module, exports, __webpack_require__) { 347 | 348 | var internalObjectKeys = __webpack_require__("ca84"); 349 | var enumBugKeys = __webpack_require__("7839"); 350 | 351 | var hiddenKeys = enumBugKeys.concat('length', 'prototype'); 352 | 353 | // `Object.getOwnPropertyNames` method 354 | // https://tc39.github.io/ecma262/#sec-object.getownpropertynames 355 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { 356 | return internalObjectKeys(O, hiddenKeys); 357 | }; 358 | 359 | 360 | /***/ }), 361 | 362 | /***/ "323e": 363 | /***/ (function(module, exports, __webpack_require__) { 364 | 365 | "use strict"; 366 | 367 | /* eslint-disable */ 368 | 369 | __webpack_require__("4160"); 370 | 371 | __webpack_require__("159b"); 372 | 373 | exports.__esModule = true; 374 | 375 | var vue_1 = __webpack_require__("8bbf"); 376 | 377 | var Print = 378 | /** @class */ 379 | function () { 380 | function Print(dom) { 381 | if (dom instanceof HTMLElement) { 382 | this.dom = dom; 383 | } else if (dom instanceof vue_1['default']) { 384 | this.dom = dom.$el; 385 | } else if (typeof dom === 'string') { 386 | this.dom = document.querySelector(dom); 387 | } else {// TODO 388 | } 389 | 390 | this.init(); 391 | } 392 | 393 | Print.prototype.init = function () { 394 | var style = this.getStyle(); 395 | var html = this.dom.outerHTML; 396 | var content = style + html; 397 | this.iframePrint(content); 398 | }; // 获取link 和 style 399 | 400 | 401 | Print.prototype.getStyle = function () { 402 | var styleString = ''; 403 | var styles = document.querySelectorAll('style,link'); 404 | styles.forEach(function (style) { 405 | styleString += style.outerHTML; 406 | }); 407 | return styleString; 408 | }; // 通过 iframe 打印 409 | 410 | 411 | Print.prototype.iframePrint = function (content) { 412 | var iframe = document.createElement('iframe'); 413 | iframe.setAttribute('style', 'position:absolute;width:0;height:0;top:-100%;left:-100%;'); 414 | var el = document.body.appendChild(iframe); 415 | var _window = el.contentWindow; 416 | 417 | var _document = el.contentDocument || el.contentWindow.document; 418 | 419 | _document.open(); 420 | 421 | _document.write(content); 422 | 423 | _document.close(); 424 | 425 | iframe.onload = function () { 426 | _window.print(); 427 | }; 428 | }; 429 | 430 | return Print; 431 | }(); 432 | 433 | exports['default'] = { 434 | install: function install(Vue) { 435 | // 4. 添加实例方法 436 | Vue.prototype.$print = function (dom) { 437 | return new Print(dom); 438 | }; 439 | } 440 | }; 441 | 442 | /***/ }), 443 | 444 | /***/ "4160": 445 | /***/ (function(module, exports, __webpack_require__) { 446 | 447 | "use strict"; 448 | 449 | var $ = __webpack_require__("23e7"); 450 | var forEach = __webpack_require__("17c2"); 451 | 452 | // `Array.prototype.forEach` method 453 | // https://tc39.github.io/ecma262/#sec-array.prototype.foreach 454 | $({ target: 'Array', proto: true, forced: [].forEach != forEach }, { 455 | forEach: forEach 456 | }); 457 | 458 | 459 | /***/ }), 460 | 461 | /***/ "428f": 462 | /***/ (function(module, exports, __webpack_require__) { 463 | 464 | var global = __webpack_require__("da84"); 465 | 466 | module.exports = global; 467 | 468 | 469 | /***/ }), 470 | 471 | /***/ "44ad": 472 | /***/ (function(module, exports, __webpack_require__) { 473 | 474 | var fails = __webpack_require__("d039"); 475 | var classof = __webpack_require__("c6b6"); 476 | 477 | var split = ''.split; 478 | 479 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 480 | module.exports = fails(function () { 481 | // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 482 | // eslint-disable-next-line no-prototype-builtins 483 | return !Object('z').propertyIsEnumerable(0); 484 | }) ? function (it) { 485 | return classof(it) == 'String' ? split.call(it, '') : Object(it); 486 | } : Object; 487 | 488 | 489 | /***/ }), 490 | 491 | /***/ "4930": 492 | /***/ (function(module, exports, __webpack_require__) { 493 | 494 | var fails = __webpack_require__("d039"); 495 | 496 | module.exports = !!Object.getOwnPropertySymbols && !fails(function () { 497 | // Chrome 38 Symbol has incorrect toString conversion 498 | // eslint-disable-next-line no-undef 499 | return !String(Symbol()); 500 | }); 501 | 502 | 503 | /***/ }), 504 | 505 | /***/ "4d64": 506 | /***/ (function(module, exports, __webpack_require__) { 507 | 508 | var toIndexedObject = __webpack_require__("fc6a"); 509 | var toLength = __webpack_require__("50c4"); 510 | var toAbsoluteIndex = __webpack_require__("23cb"); 511 | 512 | // `Array.prototype.{ indexOf, includes }` methods implementation 513 | var createMethod = function (IS_INCLUDES) { 514 | return function ($this, el, fromIndex) { 515 | var O = toIndexedObject($this); 516 | var length = toLength(O.length); 517 | var index = toAbsoluteIndex(fromIndex, length); 518 | var value; 519 | // Array#includes uses SameValueZero equality algorithm 520 | // eslint-disable-next-line no-self-compare 521 | if (IS_INCLUDES && el != el) while (length > index) { 522 | value = O[index++]; 523 | // eslint-disable-next-line no-self-compare 524 | if (value != value) return true; 525 | // Array#indexOf ignores holes, Array#includes - not 526 | } else for (;length > index; index++) { 527 | if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; 528 | } return !IS_INCLUDES && -1; 529 | }; 530 | }; 531 | 532 | module.exports = { 533 | // `Array.prototype.includes` method 534 | // https://tc39.github.io/ecma262/#sec-array.prototype.includes 535 | includes: createMethod(true), 536 | // `Array.prototype.indexOf` method 537 | // https://tc39.github.io/ecma262/#sec-array.prototype.indexof 538 | indexOf: createMethod(false) 539 | }; 540 | 541 | 542 | /***/ }), 543 | 544 | /***/ "50c4": 545 | /***/ (function(module, exports, __webpack_require__) { 546 | 547 | var toInteger = __webpack_require__("a691"); 548 | 549 | var min = Math.min; 550 | 551 | // `ToLength` abstract operation 552 | // https://tc39.github.io/ecma262/#sec-tolength 553 | module.exports = function (argument) { 554 | return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 555 | }; 556 | 557 | 558 | /***/ }), 559 | 560 | /***/ "5135": 561 | /***/ (function(module, exports) { 562 | 563 | var hasOwnProperty = {}.hasOwnProperty; 564 | 565 | module.exports = function (it, key) { 566 | return hasOwnProperty.call(it, key); 567 | }; 568 | 569 | 570 | /***/ }), 571 | 572 | /***/ "5692": 573 | /***/ (function(module, exports, __webpack_require__) { 574 | 575 | var IS_PURE = __webpack_require__("c430"); 576 | var store = __webpack_require__("c6cd"); 577 | 578 | (module.exports = function (key, value) { 579 | return store[key] || (store[key] = value !== undefined ? value : {}); 580 | })('versions', []).push({ 581 | version: '3.6.4', 582 | mode: IS_PURE ? 'pure' : 'global', 583 | copyright: '© 2020 Denis Pushkarev (zloirock.ru)' 584 | }); 585 | 586 | 587 | /***/ }), 588 | 589 | /***/ "56ef": 590 | /***/ (function(module, exports, __webpack_require__) { 591 | 592 | var getBuiltIn = __webpack_require__("d066"); 593 | var getOwnPropertyNamesModule = __webpack_require__("241c"); 594 | var getOwnPropertySymbolsModule = __webpack_require__("7418"); 595 | var anObject = __webpack_require__("825a"); 596 | 597 | // all object keys, includes non-enumerable and symbols 598 | module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { 599 | var keys = getOwnPropertyNamesModule.f(anObject(it)); 600 | var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; 601 | return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys; 602 | }; 603 | 604 | 605 | /***/ }), 606 | 607 | /***/ "5c6c": 608 | /***/ (function(module, exports) { 609 | 610 | module.exports = function (bitmap, value) { 611 | return { 612 | enumerable: !(bitmap & 1), 613 | configurable: !(bitmap & 2), 614 | writable: !(bitmap & 4), 615 | value: value 616 | }; 617 | }; 618 | 619 | 620 | /***/ }), 621 | 622 | /***/ "65f0": 623 | /***/ (function(module, exports, __webpack_require__) { 624 | 625 | var isObject = __webpack_require__("861d"); 626 | var isArray = __webpack_require__("e8b5"); 627 | var wellKnownSymbol = __webpack_require__("b622"); 628 | 629 | var SPECIES = wellKnownSymbol('species'); 630 | 631 | // `ArraySpeciesCreate` abstract operation 632 | // https://tc39.github.io/ecma262/#sec-arrayspeciescreate 633 | module.exports = function (originalArray, length) { 634 | var C; 635 | if (isArray(originalArray)) { 636 | C = originalArray.constructor; 637 | // cross-realm fallback 638 | if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; 639 | else if (isObject(C)) { 640 | C = C[SPECIES]; 641 | if (C === null) C = undefined; 642 | } 643 | } return new (C === undefined ? Array : C)(length === 0 ? 0 : length); 644 | }; 645 | 646 | 647 | /***/ }), 648 | 649 | /***/ "69f3": 650 | /***/ (function(module, exports, __webpack_require__) { 651 | 652 | var NATIVE_WEAK_MAP = __webpack_require__("7f9a"); 653 | var global = __webpack_require__("da84"); 654 | var isObject = __webpack_require__("861d"); 655 | var createNonEnumerableProperty = __webpack_require__("9112"); 656 | var objectHas = __webpack_require__("5135"); 657 | var sharedKey = __webpack_require__("f772"); 658 | var hiddenKeys = __webpack_require__("d012"); 659 | 660 | var WeakMap = global.WeakMap; 661 | var set, get, has; 662 | 663 | var enforce = function (it) { 664 | return has(it) ? get(it) : set(it, {}); 665 | }; 666 | 667 | var getterFor = function (TYPE) { 668 | return function (it) { 669 | var state; 670 | if (!isObject(it) || (state = get(it)).type !== TYPE) { 671 | throw TypeError('Incompatible receiver, ' + TYPE + ' required'); 672 | } return state; 673 | }; 674 | }; 675 | 676 | if (NATIVE_WEAK_MAP) { 677 | var store = new WeakMap(); 678 | var wmget = store.get; 679 | var wmhas = store.has; 680 | var wmset = store.set; 681 | set = function (it, metadata) { 682 | wmset.call(store, it, metadata); 683 | return metadata; 684 | }; 685 | get = function (it) { 686 | return wmget.call(store, it) || {}; 687 | }; 688 | has = function (it) { 689 | return wmhas.call(store, it); 690 | }; 691 | } else { 692 | var STATE = sharedKey('state'); 693 | hiddenKeys[STATE] = true; 694 | set = function (it, metadata) { 695 | createNonEnumerableProperty(it, STATE, metadata); 696 | return metadata; 697 | }; 698 | get = function (it) { 699 | return objectHas(it, STATE) ? it[STATE] : {}; 700 | }; 701 | has = function (it) { 702 | return objectHas(it, STATE); 703 | }; 704 | } 705 | 706 | module.exports = { 707 | set: set, 708 | get: get, 709 | has: has, 710 | enforce: enforce, 711 | getterFor: getterFor 712 | }; 713 | 714 | 715 | /***/ }), 716 | 717 | /***/ "6eeb": 718 | /***/ (function(module, exports, __webpack_require__) { 719 | 720 | var global = __webpack_require__("da84"); 721 | var createNonEnumerableProperty = __webpack_require__("9112"); 722 | var has = __webpack_require__("5135"); 723 | var setGlobal = __webpack_require__("ce4e"); 724 | var inspectSource = __webpack_require__("8925"); 725 | var InternalStateModule = __webpack_require__("69f3"); 726 | 727 | var getInternalState = InternalStateModule.get; 728 | var enforceInternalState = InternalStateModule.enforce; 729 | var TEMPLATE = String(String).split('String'); 730 | 731 | (module.exports = function (O, key, value, options) { 732 | var unsafe = options ? !!options.unsafe : false; 733 | var simple = options ? !!options.enumerable : false; 734 | var noTargetGet = options ? !!options.noTargetGet : false; 735 | if (typeof value == 'function') { 736 | if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key); 737 | enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : ''); 738 | } 739 | if (O === global) { 740 | if (simple) O[key] = value; 741 | else setGlobal(key, value); 742 | return; 743 | } else if (!unsafe) { 744 | delete O[key]; 745 | } else if (!noTargetGet && O[key]) { 746 | simple = true; 747 | } 748 | if (simple) O[key] = value; 749 | else createNonEnumerableProperty(O, key, value); 750 | // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative 751 | })(Function.prototype, 'toString', function toString() { 752 | return typeof this == 'function' && getInternalState(this).source || inspectSource(this); 753 | }); 754 | 755 | 756 | /***/ }), 757 | 758 | /***/ "7418": 759 | /***/ (function(module, exports) { 760 | 761 | exports.f = Object.getOwnPropertySymbols; 762 | 763 | 764 | /***/ }), 765 | 766 | /***/ "7839": 767 | /***/ (function(module, exports) { 768 | 769 | // IE8- don't enum bug keys 770 | module.exports = [ 771 | 'constructor', 772 | 'hasOwnProperty', 773 | 'isPrototypeOf', 774 | 'propertyIsEnumerable', 775 | 'toLocaleString', 776 | 'toString', 777 | 'valueOf' 778 | ]; 779 | 780 | 781 | /***/ }), 782 | 783 | /***/ "7b0b": 784 | /***/ (function(module, exports, __webpack_require__) { 785 | 786 | var requireObjectCoercible = __webpack_require__("1d80"); 787 | 788 | // `ToObject` abstract operation 789 | // https://tc39.github.io/ecma262/#sec-toobject 790 | module.exports = function (argument) { 791 | return Object(requireObjectCoercible(argument)); 792 | }; 793 | 794 | 795 | /***/ }), 796 | 797 | /***/ "7f9a": 798 | /***/ (function(module, exports, __webpack_require__) { 799 | 800 | var global = __webpack_require__("da84"); 801 | var inspectSource = __webpack_require__("8925"); 802 | 803 | var WeakMap = global.WeakMap; 804 | 805 | module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap)); 806 | 807 | 808 | /***/ }), 809 | 810 | /***/ "825a": 811 | /***/ (function(module, exports, __webpack_require__) { 812 | 813 | var isObject = __webpack_require__("861d"); 814 | 815 | module.exports = function (it) { 816 | if (!isObject(it)) { 817 | throw TypeError(String(it) + ' is not an object'); 818 | } return it; 819 | }; 820 | 821 | 822 | /***/ }), 823 | 824 | /***/ "83ab": 825 | /***/ (function(module, exports, __webpack_require__) { 826 | 827 | var fails = __webpack_require__("d039"); 828 | 829 | // Thank's IE8 for his funny defineProperty 830 | module.exports = !fails(function () { 831 | return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; 832 | }); 833 | 834 | 835 | /***/ }), 836 | 837 | /***/ "861d": 838 | /***/ (function(module, exports) { 839 | 840 | module.exports = function (it) { 841 | return typeof it === 'object' ? it !== null : typeof it === 'function'; 842 | }; 843 | 844 | 845 | /***/ }), 846 | 847 | /***/ "8925": 848 | /***/ (function(module, exports, __webpack_require__) { 849 | 850 | var store = __webpack_require__("c6cd"); 851 | 852 | var functionToString = Function.toString; 853 | 854 | // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper 855 | if (typeof store.inspectSource != 'function') { 856 | store.inspectSource = function (it) { 857 | return functionToString.call(it); 858 | }; 859 | } 860 | 861 | module.exports = store.inspectSource; 862 | 863 | 864 | /***/ }), 865 | 866 | /***/ "8bbf": 867 | /***/ (function(module, exports) { 868 | 869 | module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__; 870 | 871 | /***/ }), 872 | 873 | /***/ "90e3": 874 | /***/ (function(module, exports) { 875 | 876 | var id = 0; 877 | var postfix = Math.random(); 878 | 879 | module.exports = function (key) { 880 | return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36); 881 | }; 882 | 883 | 884 | /***/ }), 885 | 886 | /***/ "9112": 887 | /***/ (function(module, exports, __webpack_require__) { 888 | 889 | var DESCRIPTORS = __webpack_require__("83ab"); 890 | var definePropertyModule = __webpack_require__("9bf2"); 891 | var createPropertyDescriptor = __webpack_require__("5c6c"); 892 | 893 | module.exports = DESCRIPTORS ? function (object, key, value) { 894 | return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); 895 | } : function (object, key, value) { 896 | object[key] = value; 897 | return object; 898 | }; 899 | 900 | 901 | /***/ }), 902 | 903 | /***/ "94ca": 904 | /***/ (function(module, exports, __webpack_require__) { 905 | 906 | var fails = __webpack_require__("d039"); 907 | 908 | var replacement = /#|\.prototype\./; 909 | 910 | var isForced = function (feature, detection) { 911 | var value = data[normalize(feature)]; 912 | return value == POLYFILL ? true 913 | : value == NATIVE ? false 914 | : typeof detection == 'function' ? fails(detection) 915 | : !!detection; 916 | }; 917 | 918 | var normalize = isForced.normalize = function (string) { 919 | return String(string).replace(replacement, '.').toLowerCase(); 920 | }; 921 | 922 | var data = isForced.data = {}; 923 | var NATIVE = isForced.NATIVE = 'N'; 924 | var POLYFILL = isForced.POLYFILL = 'P'; 925 | 926 | module.exports = isForced; 927 | 928 | 929 | /***/ }), 930 | 931 | /***/ "9bf2": 932 | /***/ (function(module, exports, __webpack_require__) { 933 | 934 | var DESCRIPTORS = __webpack_require__("83ab"); 935 | var IE8_DOM_DEFINE = __webpack_require__("0cfb"); 936 | var anObject = __webpack_require__("825a"); 937 | var toPrimitive = __webpack_require__("c04e"); 938 | 939 | var nativeDefineProperty = Object.defineProperty; 940 | 941 | // `Object.defineProperty` method 942 | // https://tc39.github.io/ecma262/#sec-object.defineproperty 943 | exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) { 944 | anObject(O); 945 | P = toPrimitive(P, true); 946 | anObject(Attributes); 947 | if (IE8_DOM_DEFINE) try { 948 | return nativeDefineProperty(O, P, Attributes); 949 | } catch (error) { /* empty */ } 950 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); 951 | if ('value' in Attributes) O[P] = Attributes.value; 952 | return O; 953 | }; 954 | 955 | 956 | /***/ }), 957 | 958 | /***/ "a640": 959 | /***/ (function(module, exports, __webpack_require__) { 960 | 961 | "use strict"; 962 | 963 | var fails = __webpack_require__("d039"); 964 | 965 | module.exports = function (METHOD_NAME, argument) { 966 | var method = [][METHOD_NAME]; 967 | return !!method && fails(function () { 968 | // eslint-disable-next-line no-useless-call,no-throw-literal 969 | method.call(null, argument || function () { throw 1; }, 1); 970 | }); 971 | }; 972 | 973 | 974 | /***/ }), 975 | 976 | /***/ "a691": 977 | /***/ (function(module, exports) { 978 | 979 | var ceil = Math.ceil; 980 | var floor = Math.floor; 981 | 982 | // `ToInteger` abstract operation 983 | // https://tc39.github.io/ecma262/#sec-tointeger 984 | module.exports = function (argument) { 985 | return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); 986 | }; 987 | 988 | 989 | /***/ }), 990 | 991 | /***/ "ae40": 992 | /***/ (function(module, exports, __webpack_require__) { 993 | 994 | var DESCRIPTORS = __webpack_require__("83ab"); 995 | var fails = __webpack_require__("d039"); 996 | var has = __webpack_require__("5135"); 997 | 998 | var defineProperty = Object.defineProperty; 999 | var cache = {}; 1000 | 1001 | var thrower = function (it) { throw it; }; 1002 | 1003 | module.exports = function (METHOD_NAME, options) { 1004 | if (has(cache, METHOD_NAME)) return cache[METHOD_NAME]; 1005 | if (!options) options = {}; 1006 | var method = [][METHOD_NAME]; 1007 | var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false; 1008 | var argument0 = has(options, 0) ? options[0] : thrower; 1009 | var argument1 = has(options, 1) ? options[1] : undefined; 1010 | 1011 | return cache[METHOD_NAME] = !!method && !fails(function () { 1012 | if (ACCESSORS && !DESCRIPTORS) return true; 1013 | var O = { length: -1 }; 1014 | 1015 | if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower }); 1016 | else O[1] = 1; 1017 | 1018 | method.call(O, argument0, argument1); 1019 | }); 1020 | }; 1021 | 1022 | 1023 | /***/ }), 1024 | 1025 | /***/ "b622": 1026 | /***/ (function(module, exports, __webpack_require__) { 1027 | 1028 | var global = __webpack_require__("da84"); 1029 | var shared = __webpack_require__("5692"); 1030 | var has = __webpack_require__("5135"); 1031 | var uid = __webpack_require__("90e3"); 1032 | var NATIVE_SYMBOL = __webpack_require__("4930"); 1033 | var USE_SYMBOL_AS_UID = __webpack_require__("fdbf"); 1034 | 1035 | var WellKnownSymbolsStore = shared('wks'); 1036 | var Symbol = global.Symbol; 1037 | var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid; 1038 | 1039 | module.exports = function (name) { 1040 | if (!has(WellKnownSymbolsStore, name)) { 1041 | if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name]; 1042 | else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); 1043 | } return WellKnownSymbolsStore[name]; 1044 | }; 1045 | 1046 | 1047 | /***/ }), 1048 | 1049 | /***/ "b727": 1050 | /***/ (function(module, exports, __webpack_require__) { 1051 | 1052 | var bind = __webpack_require__("0366"); 1053 | var IndexedObject = __webpack_require__("44ad"); 1054 | var toObject = __webpack_require__("7b0b"); 1055 | var toLength = __webpack_require__("50c4"); 1056 | var arraySpeciesCreate = __webpack_require__("65f0"); 1057 | 1058 | var push = [].push; 1059 | 1060 | // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation 1061 | var createMethod = function (TYPE) { 1062 | var IS_MAP = TYPE == 1; 1063 | var IS_FILTER = TYPE == 2; 1064 | var IS_SOME = TYPE == 3; 1065 | var IS_EVERY = TYPE == 4; 1066 | var IS_FIND_INDEX = TYPE == 6; 1067 | var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; 1068 | return function ($this, callbackfn, that, specificCreate) { 1069 | var O = toObject($this); 1070 | var self = IndexedObject(O); 1071 | var boundFunction = bind(callbackfn, that, 3); 1072 | var length = toLength(self.length); 1073 | var index = 0; 1074 | var create = specificCreate || arraySpeciesCreate; 1075 | var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; 1076 | var value, result; 1077 | for (;length > index; index++) if (NO_HOLES || index in self) { 1078 | value = self[index]; 1079 | result = boundFunction(value, index, O); 1080 | if (TYPE) { 1081 | if (IS_MAP) target[index] = result; // map 1082 | else if (result) switch (TYPE) { 1083 | case 3: return true; // some 1084 | case 5: return value; // find 1085 | case 6: return index; // findIndex 1086 | case 2: push.call(target, value); // filter 1087 | } else if (IS_EVERY) return false; // every 1088 | } 1089 | } 1090 | return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; 1091 | }; 1092 | }; 1093 | 1094 | module.exports = { 1095 | // `Array.prototype.forEach` method 1096 | // https://tc39.github.io/ecma262/#sec-array.prototype.foreach 1097 | forEach: createMethod(0), 1098 | // `Array.prototype.map` method 1099 | // https://tc39.github.io/ecma262/#sec-array.prototype.map 1100 | map: createMethod(1), 1101 | // `Array.prototype.filter` method 1102 | // https://tc39.github.io/ecma262/#sec-array.prototype.filter 1103 | filter: createMethod(2), 1104 | // `Array.prototype.some` method 1105 | // https://tc39.github.io/ecma262/#sec-array.prototype.some 1106 | some: createMethod(3), 1107 | // `Array.prototype.every` method 1108 | // https://tc39.github.io/ecma262/#sec-array.prototype.every 1109 | every: createMethod(4), 1110 | // `Array.prototype.find` method 1111 | // https://tc39.github.io/ecma262/#sec-array.prototype.find 1112 | find: createMethod(5), 1113 | // `Array.prototype.findIndex` method 1114 | // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex 1115 | findIndex: createMethod(6) 1116 | }; 1117 | 1118 | 1119 | /***/ }), 1120 | 1121 | /***/ "c04e": 1122 | /***/ (function(module, exports, __webpack_require__) { 1123 | 1124 | var isObject = __webpack_require__("861d"); 1125 | 1126 | // `ToPrimitive` abstract operation 1127 | // https://tc39.github.io/ecma262/#sec-toprimitive 1128 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 1129 | // and the second argument - flag - preferred type is a string 1130 | module.exports = function (input, PREFERRED_STRING) { 1131 | if (!isObject(input)) return input; 1132 | var fn, val; 1133 | if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; 1134 | if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val; 1135 | if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; 1136 | throw TypeError("Can't convert object to primitive value"); 1137 | }; 1138 | 1139 | 1140 | /***/ }), 1141 | 1142 | /***/ "c430": 1143 | /***/ (function(module, exports) { 1144 | 1145 | module.exports = false; 1146 | 1147 | 1148 | /***/ }), 1149 | 1150 | /***/ "c6b6": 1151 | /***/ (function(module, exports) { 1152 | 1153 | var toString = {}.toString; 1154 | 1155 | module.exports = function (it) { 1156 | return toString.call(it).slice(8, -1); 1157 | }; 1158 | 1159 | 1160 | /***/ }), 1161 | 1162 | /***/ "c6cd": 1163 | /***/ (function(module, exports, __webpack_require__) { 1164 | 1165 | var global = __webpack_require__("da84"); 1166 | var setGlobal = __webpack_require__("ce4e"); 1167 | 1168 | var SHARED = '__core-js_shared__'; 1169 | var store = global[SHARED] || setGlobal(SHARED, {}); 1170 | 1171 | module.exports = store; 1172 | 1173 | 1174 | /***/ }), 1175 | 1176 | /***/ "c8ba": 1177 | /***/ (function(module, exports) { 1178 | 1179 | var g; 1180 | 1181 | // This works in non-strict mode 1182 | g = (function() { 1183 | return this; 1184 | })(); 1185 | 1186 | try { 1187 | // This works if eval is allowed (see CSP) 1188 | g = g || new Function("return this")(); 1189 | } catch (e) { 1190 | // This works if the window reference is available 1191 | if (typeof window === "object") g = window; 1192 | } 1193 | 1194 | // g can still be undefined, but nothing to do about it... 1195 | // We return undefined, instead of nothing here, so it's 1196 | // easier to handle this case. if(!global) { ...} 1197 | 1198 | module.exports = g; 1199 | 1200 | 1201 | /***/ }), 1202 | 1203 | /***/ "ca84": 1204 | /***/ (function(module, exports, __webpack_require__) { 1205 | 1206 | var has = __webpack_require__("5135"); 1207 | var toIndexedObject = __webpack_require__("fc6a"); 1208 | var indexOf = __webpack_require__("4d64").indexOf; 1209 | var hiddenKeys = __webpack_require__("d012"); 1210 | 1211 | module.exports = function (object, names) { 1212 | var O = toIndexedObject(object); 1213 | var i = 0; 1214 | var result = []; 1215 | var key; 1216 | for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key); 1217 | // Don't enum bug & hidden keys 1218 | while (names.length > i) if (has(O, key = names[i++])) { 1219 | ~indexOf(result, key) || result.push(key); 1220 | } 1221 | return result; 1222 | }; 1223 | 1224 | 1225 | /***/ }), 1226 | 1227 | /***/ "cc12": 1228 | /***/ (function(module, exports, __webpack_require__) { 1229 | 1230 | var global = __webpack_require__("da84"); 1231 | var isObject = __webpack_require__("861d"); 1232 | 1233 | var document = global.document; 1234 | // typeof document.createElement is 'object' in old IE 1235 | var EXISTS = isObject(document) && isObject(document.createElement); 1236 | 1237 | module.exports = function (it) { 1238 | return EXISTS ? document.createElement(it) : {}; 1239 | }; 1240 | 1241 | 1242 | /***/ }), 1243 | 1244 | /***/ "ce4e": 1245 | /***/ (function(module, exports, __webpack_require__) { 1246 | 1247 | var global = __webpack_require__("da84"); 1248 | var createNonEnumerableProperty = __webpack_require__("9112"); 1249 | 1250 | module.exports = function (key, value) { 1251 | try { 1252 | createNonEnumerableProperty(global, key, value); 1253 | } catch (error) { 1254 | global[key] = value; 1255 | } return value; 1256 | }; 1257 | 1258 | 1259 | /***/ }), 1260 | 1261 | /***/ "d012": 1262 | /***/ (function(module, exports) { 1263 | 1264 | module.exports = {}; 1265 | 1266 | 1267 | /***/ }), 1268 | 1269 | /***/ "d039": 1270 | /***/ (function(module, exports) { 1271 | 1272 | module.exports = function (exec) { 1273 | try { 1274 | return !!exec(); 1275 | } catch (error) { 1276 | return true; 1277 | } 1278 | }; 1279 | 1280 | 1281 | /***/ }), 1282 | 1283 | /***/ "d066": 1284 | /***/ (function(module, exports, __webpack_require__) { 1285 | 1286 | var path = __webpack_require__("428f"); 1287 | var global = __webpack_require__("da84"); 1288 | 1289 | var aFunction = function (variable) { 1290 | return typeof variable == 'function' ? variable : undefined; 1291 | }; 1292 | 1293 | module.exports = function (namespace, method) { 1294 | return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace]) 1295 | : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method]; 1296 | }; 1297 | 1298 | 1299 | /***/ }), 1300 | 1301 | /***/ "d1e7": 1302 | /***/ (function(module, exports, __webpack_require__) { 1303 | 1304 | "use strict"; 1305 | 1306 | var nativePropertyIsEnumerable = {}.propertyIsEnumerable; 1307 | var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; 1308 | 1309 | // Nashorn ~ JDK8 bug 1310 | var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1); 1311 | 1312 | // `Object.prototype.propertyIsEnumerable` method implementation 1313 | // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable 1314 | exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) { 1315 | var descriptor = getOwnPropertyDescriptor(this, V); 1316 | return !!descriptor && descriptor.enumerable; 1317 | } : nativePropertyIsEnumerable; 1318 | 1319 | 1320 | /***/ }), 1321 | 1322 | /***/ "da84": 1323 | /***/ (function(module, exports, __webpack_require__) { 1324 | 1325 | /* WEBPACK VAR INJECTION */(function(global) {var check = function (it) { 1326 | return it && it.Math == Math && it; 1327 | }; 1328 | 1329 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 1330 | module.exports = 1331 | // eslint-disable-next-line no-undef 1332 | check(typeof globalThis == 'object' && globalThis) || 1333 | check(typeof window == 'object' && window) || 1334 | check(typeof self == 'object' && self) || 1335 | check(typeof global == 'object' && global) || 1336 | // eslint-disable-next-line no-new-func 1337 | Function('return this')(); 1338 | 1339 | /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba"))) 1340 | 1341 | /***/ }), 1342 | 1343 | /***/ "e893": 1344 | /***/ (function(module, exports, __webpack_require__) { 1345 | 1346 | var has = __webpack_require__("5135"); 1347 | var ownKeys = __webpack_require__("56ef"); 1348 | var getOwnPropertyDescriptorModule = __webpack_require__("06cf"); 1349 | var definePropertyModule = __webpack_require__("9bf2"); 1350 | 1351 | module.exports = function (target, source) { 1352 | var keys = ownKeys(source); 1353 | var defineProperty = definePropertyModule.f; 1354 | var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; 1355 | for (var i = 0; i < keys.length; i++) { 1356 | var key = keys[i]; 1357 | if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); 1358 | } 1359 | }; 1360 | 1361 | 1362 | /***/ }), 1363 | 1364 | /***/ "e8b5": 1365 | /***/ (function(module, exports, __webpack_require__) { 1366 | 1367 | var classof = __webpack_require__("c6b6"); 1368 | 1369 | // `IsArray` abstract operation 1370 | // https://tc39.github.io/ecma262/#sec-isarray 1371 | module.exports = Array.isArray || function isArray(arg) { 1372 | return classof(arg) == 'Array'; 1373 | }; 1374 | 1375 | 1376 | /***/ }), 1377 | 1378 | /***/ "f6fd": 1379 | /***/ (function(module, exports) { 1380 | 1381 | // document.currentScript polyfill by Adam Miller 1382 | 1383 | // MIT license 1384 | 1385 | (function(document){ 1386 | var currentScript = "currentScript", 1387 | scripts = document.getElementsByTagName('script'); // Live NodeList collection 1388 | 1389 | // If browser needs currentScript polyfill, add get currentScript() to the document object 1390 | if (!(currentScript in document)) { 1391 | Object.defineProperty(document, currentScript, { 1392 | get: function(){ 1393 | 1394 | // IE 6-10 supports script readyState 1395 | // IE 10+ support stack trace 1396 | try { throw new Error(); } 1397 | catch (err) { 1398 | 1399 | // Find the second match for the "at" string to get file src url from stack. 1400 | // Specifically works with the format of stack traces in IE. 1401 | var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1]; 1402 | 1403 | // For all scripts on the page, if src matches or if ready state is interactive, return the script tag 1404 | for(i in scripts){ 1405 | if(scripts[i].src == res || scripts[i].readyState == "interactive"){ 1406 | return scripts[i]; 1407 | } 1408 | } 1409 | 1410 | // If no match, return null 1411 | return null; 1412 | } 1413 | } 1414 | }); 1415 | } 1416 | })(document); 1417 | 1418 | 1419 | /***/ }), 1420 | 1421 | /***/ "f772": 1422 | /***/ (function(module, exports, __webpack_require__) { 1423 | 1424 | var shared = __webpack_require__("5692"); 1425 | var uid = __webpack_require__("90e3"); 1426 | 1427 | var keys = shared('keys'); 1428 | 1429 | module.exports = function (key) { 1430 | return keys[key] || (keys[key] = uid(key)); 1431 | }; 1432 | 1433 | 1434 | /***/ }), 1435 | 1436 | /***/ "fae3": 1437 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 1438 | 1439 | "use strict"; 1440 | __webpack_require__.r(__webpack_exports__); 1441 | /* harmony import */ var _setPublicPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1eb2"); 1442 | /* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("323e"); 1443 | /* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_entry__WEBPACK_IMPORTED_MODULE_1__); 1444 | /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _entry__WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _entry__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); 1445 | 1446 | 1447 | 1448 | 1449 | /***/ }), 1450 | 1451 | /***/ "fc6a": 1452 | /***/ (function(module, exports, __webpack_require__) { 1453 | 1454 | // toObject with fallback for non-array-like ES3 strings 1455 | var IndexedObject = __webpack_require__("44ad"); 1456 | var requireObjectCoercible = __webpack_require__("1d80"); 1457 | 1458 | module.exports = function (it) { 1459 | return IndexedObject(requireObjectCoercible(it)); 1460 | }; 1461 | 1462 | 1463 | /***/ }), 1464 | 1465 | /***/ "fdbc": 1466 | /***/ (function(module, exports) { 1467 | 1468 | // iterable DOM collections 1469 | // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods 1470 | module.exports = { 1471 | CSSRuleList: 0, 1472 | CSSStyleDeclaration: 0, 1473 | CSSValueList: 0, 1474 | ClientRectList: 0, 1475 | DOMRectList: 0, 1476 | DOMStringList: 0, 1477 | DOMTokenList: 1, 1478 | DataTransferItemList: 0, 1479 | FileList: 0, 1480 | HTMLAllCollection: 0, 1481 | HTMLCollection: 0, 1482 | HTMLFormElement: 0, 1483 | HTMLSelectElement: 0, 1484 | MediaList: 0, 1485 | MimeTypeArray: 0, 1486 | NamedNodeMap: 0, 1487 | NodeList: 1, 1488 | PaintRequestList: 0, 1489 | Plugin: 0, 1490 | PluginArray: 0, 1491 | SVGLengthList: 0, 1492 | SVGNumberList: 0, 1493 | SVGPathSegList: 0, 1494 | SVGPointList: 0, 1495 | SVGStringList: 0, 1496 | SVGTransformList: 0, 1497 | SourceBufferList: 0, 1498 | StyleSheetList: 0, 1499 | TextTrackCueList: 0, 1500 | TextTrackList: 0, 1501 | TouchList: 0 1502 | }; 1503 | 1504 | 1505 | /***/ }), 1506 | 1507 | /***/ "fdbf": 1508 | /***/ (function(module, exports, __webpack_require__) { 1509 | 1510 | var NATIVE_SYMBOL = __webpack_require__("4930"); 1511 | 1512 | module.exports = NATIVE_SYMBOL 1513 | // eslint-disable-next-line no-undef 1514 | && !Symbol.sham 1515 | // eslint-disable-next-line no-undef 1516 | && typeof Symbol.iterator == 'symbol'; 1517 | 1518 | 1519 | /***/ }) 1520 | 1521 | /******/ }); 1522 | }); 1523 | //# sourceMappingURL=vue-print-plugin.umd.js.map -------------------------------------------------------------------------------- /dist/vue-print-plugin.umd.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["webpack://vue-print-plugin/webpack/universalModuleDefinition","webpack://vue-print-plugin/webpack/bootstrap","webpack://vue-print-plugin/./node_modules/core-js/internals/function-bind-context.js","webpack://vue-print-plugin/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://vue-print-plugin/./node_modules/core-js/internals/ie8-dom-define.js","webpack://vue-print-plugin/./node_modules/core-js/modules/web.dom-collections.for-each.js","webpack://vue-print-plugin/./node_modules/core-js/internals/array-for-each.js","webpack://vue-print-plugin/./node_modules/core-js/internals/a-function.js","webpack://vue-print-plugin/./node_modules/core-js/internals/require-object-coercible.js","webpack://vue-print-plugin/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://vue-print-plugin/./node_modules/core-js/internals/to-absolute-index.js","webpack://vue-print-plugin/./node_modules/core-js/internals/export.js","webpack://vue-print-plugin/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://vue-print-plugin/./src/plugins/print/print.js","webpack://vue-print-plugin/./node_modules/core-js/modules/es.array.for-each.js","webpack://vue-print-plugin/./node_modules/core-js/internals/path.js","webpack://vue-print-plugin/./node_modules/core-js/internals/indexed-object.js","webpack://vue-print-plugin/./node_modules/core-js/internals/native-symbol.js","webpack://vue-print-plugin/./node_modules/core-js/internals/array-includes.js","webpack://vue-print-plugin/./node_modules/core-js/internals/to-length.js","webpack://vue-print-plugin/./node_modules/core-js/internals/has.js","webpack://vue-print-plugin/./node_modules/core-js/internals/shared.js","webpack://vue-print-plugin/./node_modules/core-js/internals/own-keys.js","webpack://vue-print-plugin/./node_modules/core-js/internals/create-property-descriptor.js","webpack://vue-print-plugin/./node_modules/core-js/internals/array-species-create.js","webpack://vue-print-plugin/./node_modules/core-js/internals/internal-state.js","webpack://vue-print-plugin/./node_modules/core-js/internals/redefine.js","webpack://vue-print-plugin/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://vue-print-plugin/./node_modules/core-js/internals/enum-bug-keys.js","webpack://vue-print-plugin/./node_modules/core-js/internals/to-object.js","webpack://vue-print-plugin/./node_modules/core-js/internals/native-weak-map.js","webpack://vue-print-plugin/./node_modules/core-js/internals/an-object.js","webpack://vue-print-plugin/./node_modules/core-js/internals/descriptors.js","webpack://vue-print-plugin/./node_modules/core-js/internals/is-object.js","webpack://vue-print-plugin/./node_modules/core-js/internals/inspect-source.js","webpack://vue-print-plugin/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://vue-print-plugin/./node_modules/core-js/internals/uid.js","webpack://vue-print-plugin/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://vue-print-plugin/./node_modules/core-js/internals/is-forced.js","webpack://vue-print-plugin/./node_modules/core-js/internals/object-define-property.js","webpack://vue-print-plugin/./node_modules/core-js/internals/array-method-is-strict.js","webpack://vue-print-plugin/./node_modules/core-js/internals/to-integer.js","webpack://vue-print-plugin/./node_modules/core-js/internals/array-method-uses-to-length.js","webpack://vue-print-plugin/./node_modules/core-js/internals/well-known-symbol.js","webpack://vue-print-plugin/./node_modules/core-js/internals/array-iteration.js","webpack://vue-print-plugin/./node_modules/core-js/internals/to-primitive.js","webpack://vue-print-plugin/./node_modules/core-js/internals/is-pure.js","webpack://vue-print-plugin/./node_modules/core-js/internals/classof-raw.js","webpack://vue-print-plugin/./node_modules/core-js/internals/shared-store.js","webpack://vue-print-plugin/(webpack)/buildin/global.js","webpack://vue-print-plugin/./node_modules/core-js/internals/object-keys-internal.js","webpack://vue-print-plugin/./node_modules/core-js/internals/document-create-element.js","webpack://vue-print-plugin/./node_modules/core-js/internals/set-global.js","webpack://vue-print-plugin/./node_modules/core-js/internals/hidden-keys.js","webpack://vue-print-plugin/./node_modules/core-js/internals/fails.js","webpack://vue-print-plugin/./node_modules/core-js/internals/get-built-in.js","webpack://vue-print-plugin/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://vue-print-plugin/./node_modules/core-js/internals/global.js","webpack://vue-print-plugin/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://vue-print-plugin/./node_modules/core-js/internals/is-array.js","webpack://vue-print-plugin/./node_modules/current-script-polyfill/currentScript.js","webpack://vue-print-plugin/./node_modules/core-js/internals/shared-key.js","webpack://vue-print-plugin/./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js","webpack://vue-print-plugin/./node_modules/core-js/internals/to-indexed-object.js","webpack://vue-print-plugin/./node_modules/core-js/internals/dom-iterables.js","webpack://vue-print-plugin/./node_modules/core-js/internals/use-symbol-as-uid.js"],"names":["exports","__esModule","vue_1","require","Print","dom","HTMLElement","$el","document","querySelector","init","prototype","style","getStyle","html","outerHTML","content","iframePrint","styleString","styles","querySelectorAll","forEach","iframe","createElement","setAttribute","el","body","appendChild","_window","contentWindow","_document","contentDocument","open","write","close","onload","print","install","Vue","$print"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA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,mBAAO,CAAC,MAAkB;AACpC,cAAc,mBAAO,CAAC,MAAuB;AAC7C,qCAAqC,mBAAO,CAAC,MAAiD;AAC9F,2BAA2B,mBAAO,CAAC,MAAqC;;AAExE;AACA;AACA;AACA;AACA,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;;;;;;;;ACbA,cAAc,mBAAO,CAAC,MAA0B;;AAEhD;AACA;AACA;AACA;AACA;;;;;;;;ACNA;;AAEA;;AAEA;AACA;AACA,wDAAwD;;AAExD;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,mBAAmB;AAChC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;;;;;;;ACnCD,aAAa,mBAAO,CAAC,MAAqB;AAC1C,UAAU,mBAAO,CAAC,MAAkB;;AAEpC;;AAEA;AACA;AACA;;;;;;;;;ACPA;AAAA;AAAA;AAAA;AAAA;AAAwB;AACF;;;;;;;;ACDtB;AACA,oBAAoB,mBAAO,CAAC,MAA6B;AACzD,6BAA6B,mBAAO,CAAC,MAAuC;;AAE5E;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClCA,oBAAoB,mBAAO,CAAC,MAA4B;;AAExD;AACA;AACA;AACA;AACA","file":"vue-print-plugin.umd.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"vue-print-plugin\"] = factory(require(\"vue\"));\n\telse\n\t\troot[\"vue-print-plugin\"] = factory(root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fae3\");\n","var aFunction = require('../internals/a-function');\n\n// optional / simple context binding\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 0: return function () {\n return fn.call(that);\n };\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPrimitive = require('../internals/to-primitive');\nvar has = require('../internals/has');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\nvar nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return nativeGetOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n}\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.github.io/ecma262/#sec-array.prototype.foreach\nmodule.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n} : [].forEach;\n","module.exports = function (it) {\n if (typeof it != 'function') {\n throw TypeError(String(it) + ' is not a function');\n } return it;\n};\n","// `RequireObjectCoercible` abstract operation\n// https://tc39.github.io/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n require('current-script-polyfill')\n }\n\n var i\n if ((i = window.document.currentScript) && (i = i.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/))) {\n __webpack_public_path__ = i[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var toInteger = require('../internals/to-integer');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar setGlobal = require('../internals/set-global');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty === typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n // extend global\n redefine(target, key, sourceProperty, options);\n }\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertynames\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","'use strict'\r\n/* eslint-disable */\r\nexports.__esModule = true\r\nvar vue_1 = require('vue')\r\nvar Print = /** @class */ (function () {\r\n function Print (dom) {\r\n if (dom instanceof HTMLElement) {\r\n this.dom = dom\r\n } else if (dom instanceof vue_1['default']) {\r\n this.dom = dom.$el\r\n } else if (typeof dom === 'string') {\r\n this.dom = document.querySelector(dom)\r\n } else {\r\n // TODO\r\n }\r\n this.init()\r\n }\r\n Print.prototype.init = function () {\r\n var style = this.getStyle()\r\n var html = this.dom.outerHTML\r\n var content = style + html\r\n this.iframePrint(content)\r\n }\r\n // 获取link 和 style\r\n Print.prototype.getStyle = function () {\r\n var styleString = ''\r\n var styles = document.querySelectorAll('style,link')\r\n styles.forEach(function (style) {\r\n styleString += style.outerHTML\r\n })\r\n return styleString\r\n }\r\n // 通过 iframe 打印\r\n Print.prototype.iframePrint = function (content) {\r\n var iframe = document.createElement('iframe')\r\n iframe.setAttribute('style', 'position:absolute;width:0;height:0;top:-100%;left:-100%;')\r\n var el = document.body.appendChild(iframe)\r\n var _window = el.contentWindow\r\n var _document = el.contentDocument || el.contentWindow.document\r\n _document.open()\r\n _document.write(content)\r\n _document.close()\r\n iframe.onload = function () {\r\n _window.print()\r\n }\r\n }\r\n return Print\r\n}())\r\nexports['default'] = {\r\n install: function (Vue) {\r\n // 4. 添加实例方法\r\n Vue.prototype.$print = function (dom) { return new Print(dom) }\r\n }\r\n}\r\n","'use strict';\nvar $ = require('../internals/export');\nvar forEach = require('../internals/array-for-each');\n\n// `Array.prototype.forEach` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.foreach\n$({ target: 'Array', proto: true, forced: [].forEach != forEach }, {\n forEach: forEach\n});\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","var fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar split = ''.split;\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split.call(it, '') : Object(it);\n} : Object;\n","var fails = require('../internals/fails');\n\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n // Chrome 38 Symbol has incorrect toString conversion\n // eslint-disable-next-line no-undef\n return !String(Symbol());\n});\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toLength = require('../internals/to-length');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var toInteger = require('../internals/to-integer');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.github.io/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var hasOwnProperty = {}.hasOwnProperty;\n\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.6.4',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n","var getBuiltIn = require('../internals/get-built-in');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var isObject = require('../internals/is-object');\nvar isArray = require('../internals/is-array');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.github.io/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);\n};\n","var NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar objectHas = require('../internals/has');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP) {\n var store = new WeakMap();\n var wmget = store.get;\n var wmhas = store.has;\n var wmset = store.set;\n set = function (it, metadata) {\n wmset.call(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget.call(store, it) || {};\n };\n has = function (it) {\n return wmhas.call(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return objectHas(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return objectHas(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\nvar setGlobal = require('../internals/set-global');\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar getInternalState = InternalStateModule.get;\nvar enforceInternalState = InternalStateModule.enforce;\nvar TEMPLATE = String(String).split('String');\n\n(module.exports = function (O, key, value, options) {\n var unsafe = options ? !!options.unsafe : false;\n var simple = options ? !!options.enumerable : false;\n var noTargetGet = options ? !!options.noTargetGet : false;\n if (typeof value == 'function') {\n if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);\n enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');\n }\n if (O === global) {\n if (simple) O[key] = value;\n else setGlobal(key, value);\n return;\n } else if (!unsafe) {\n delete O[key];\n } else if (!noTargetGet && O[key]) {\n simple = true;\n }\n if (simple) O[key] = value;\n else createNonEnumerableProperty(O, key, value);\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, 'toString', function toString() {\n return typeof this == 'function' && getInternalState(this).source || inspectSource(this);\n});\n","exports.f = Object.getOwnPropertySymbols;\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `ToObject` abstract operation\n// https://tc39.github.io/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n","var global = require('../internals/global');\nvar inspectSource = require('../internals/inspect-source');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));\n","var isObject = require('../internals/is-object');\n\nmodule.exports = function (it) {\n if (!isObject(it)) {\n throw TypeError(String(it) + ' is not an object');\n } return it;\n};\n","var fails = require('../internals/fails');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !fails(function () {\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","var store = require('../internals/shared-store');\n\nvar functionToString = Function.toString;\n\n// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper\nif (typeof store.inspectSource != 'function') {\n store.inspectSource = function (it) {\n return functionToString.call(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","var id = 0;\nvar postfix = Math.random();\n\nmodule.exports = function (key) {\n return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var fails = require('../internals/fails');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : typeof detection == 'function' ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar anObject = require('../internals/an-object');\nvar toPrimitive = require('../internals/to-primitive');\n\nvar nativeDefineProperty = Object.defineProperty;\n\n// `Object.defineProperty` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return nativeDefineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call,no-throw-literal\n method.call(null, argument || function () { throw 1; }, 1);\n });\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `ToInteger` abstract operation\n// https://tc39.github.io/ecma262/#sec-tointeger\nmodule.exports = function (argument) {\n return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar has = require('../internals/has');\n\nvar defineProperty = Object.defineProperty;\nvar cache = {};\n\nvar thrower = function (it) { throw it; };\n\nmodule.exports = function (METHOD_NAME, options) {\n if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];\n if (!options) options = {};\n var method = [][METHOD_NAME];\n var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;\n var argument0 = has(options, 0) ? options[0] : thrower;\n var argument1 = has(options, 1) ? options[1] : undefined;\n\n return cache[METHOD_NAME] = !!method && !fails(function () {\n if (ACCESSORS && !DESCRIPTORS) return true;\n var O = { length: -1 };\n\n if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });\n else O[1] = 1;\n\n method.call(O, argument0, argument1);\n });\n};\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar has = require('../internals/has');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!has(WellKnownSymbolsStore, name)) {\n if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];\n else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","var bind = require('../internals/function-bind-context');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = [].push;\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push.call(target, value); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6)\n};\n","var isObject = require('../internals/is-object');\n\n// `ToPrimitive` abstract operation\n// https://tc39.github.io/ecma262/#sec-toprimitive\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (input, PREFERRED_STRING) {\n if (!isObject(input)) return input;\n var fn, val;\n if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;\n if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = false;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var global = require('../internals/global');\nvar setGlobal = require('../internals/set-global');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","var has = require('../internals/has');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~indexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nmodule.exports = function (key, value) {\n try {\n createNonEnumerableProperty(global, key, value);\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","module.exports = {};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var path = require('../internals/path');\nvar global = require('../internals/global');\n\nvar aFunction = function (variable) {\n return typeof variable == 'function' ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])\n : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n","'use strict';\nvar nativePropertyIsEnumerable = {}.propertyIsEnumerable;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : nativePropertyIsEnumerable;\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line no-undef\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func\n Function('return this')();\n","var has = require('../internals/has');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.github.io/ecma262/#sec-isarray\nmodule.exports = Array.isArray || function isArray(arg) {\n return classof(arg) == 'Array';\n};\n","// document.currentScript polyfill by Adam Miller\n\n// MIT license\n\n(function(document){\n var currentScript = \"currentScript\",\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n\n // If browser needs currentScript polyfill, add get currentScript() to the document object\n if (!(currentScript in document)) {\n Object.defineProperty(document, currentScript, {\n get: function(){\n\n // IE 6-10 supports script readyState\n // IE 10+ support stack trace\n try { throw new Error(); }\n catch (err) {\n\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i, res = ((/.*at [^\\(]*\\((.*):.+:.+\\)$/ig).exec(err.stack) || [false])[1];\n\n // For all scripts on the page, if src matches or if ready state is interactive, return the script tag\n for(i in scripts){\n if(scripts[i].src == res || scripts[i].readyState == \"interactive\"){\n return scripts[i];\n }\n }\n\n // If no match, return null\n return null;\n }\n }\n });\n }\n})(document);\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","import './setPublicPath'\nexport * from '~entry'\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n // eslint-disable-next-line no-undef\n && !Symbol.sham\n // eslint-disable-next-line no-undef\n && typeof Symbol.iterator == 'symbol';\n"],"sourceRoot":""} -------------------------------------------------------------------------------- /dist/vue-print-plugin.umd.min.js: -------------------------------------------------------------------------------- 1 | (function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n(require("vue")):"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["vue-print-plugin"]=n(require("vue")):t["vue-print-plugin"]=n(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="fae3")}({"0366":function(t,n,e){var r=e("1c0b");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 0:return function(){return t.call(n)};case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},"06cf":function(t,n,e){var r=e("83ab"),o=e("d1e7"),i=e("5c6c"),c=e("fc6a"),u=e("c04e"),f=e("5135"),a=e("0cfb"),s=Object.getOwnPropertyDescriptor;n.f=r?s:function(t,n){if(t=c(t),n=u(n,!0),a)try{return s(t,n)}catch(e){}if(f(t,n))return i(!o.f.call(t,n),t[n])}},"0cfb":function(t,n,e){var r=e("83ab"),o=e("d039"),i=e("cc12");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"159b":function(t,n,e){var r=e("da84"),o=e("fdbc"),i=e("17c2"),c=e("9112");for(var u in o){var f=r[u],a=f&&f.prototype;if(a&&a.forEach!==i)try{c(a,"forEach",i)}catch(s){a.forEach=i}}},"17c2":function(t,n,e){"use strict";var r=e("b727").forEach,o=e("a640"),i=e("ae40"),c=o("forEach"),u=i("forEach");t.exports=c&&u?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"1c0b":function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1d80":function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1eb2":function(t,n,e){"use strict";var r;"undefined"!==typeof window&&(e("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(e.p=r[1]))},"23cb":function(t,n,e){var r=e("a691"),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},"23e7":function(t,n,e){var r=e("da84"),o=e("06cf").f,i=e("9112"),c=e("6eeb"),u=e("ce4e"),f=e("e893"),a=e("94ca");t.exports=function(t,n){var e,s,p,l,d,v,y=t.target,b=t.global,h=t.stat;if(s=b?r:h?r[y]||u(y,{}):(r[y]||{}).prototype,s)for(p in n){if(d=n[p],t.noTargetGet?(v=o(s,p),l=v&&v.value):l=s[p],e=a(b?p:y+(h?".":"#")+p,t.forced),!e&&void 0!==l){if(typeof d===typeof l)continue;f(d,l)}(t.sham||l&&l.sham)&&i(d,"sham",!0),c(s,p,d,t)}}},"241c":function(t,n,e){var r=e("ca84"),o=e("7839"),i=o.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"323e":function(t,n,e){"use strict";e("4160"),e("159b"),n.__esModule=!0;var r=e("8bbf"),o=function(){function t(t){t instanceof HTMLElement?this.dom=t:t instanceof r["default"]?this.dom=t.$el:"string"===typeof t&&(this.dom=document.querySelector(t)),this.init()}return t.prototype.init=function(){var t=this.getStyle(),n=this.dom.outerHTML,e=t+n;this.iframePrint(e)},t.prototype.getStyle=function(){var t="",n=document.querySelectorAll("style,link");return n.forEach((function(n){t+=n.outerHTML})),t},t.prototype.iframePrint=function(t){var n=document.createElement("iframe");n.setAttribute("style","position:absolute;width:0;height:0;top:-100%;left:-100%;");var e=document.body.appendChild(n),r=e.contentWindow,o=e.contentDocument||e.contentWindow.document;o.open(),o.write(t),o.close(),n.onload=function(){r.print()}},t}();n["default"]={install:function(t){t.prototype.$print=function(t){return new o(t)}}}},4160:function(t,n,e){"use strict";var r=e("23e7"),o=e("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(t,n,e){var r=e("da84");t.exports=r},"44ad":function(t,n,e){var r=e("d039"),o=e("c6b6"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},4930:function(t,n,e){var r=e("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4d64":function(t,n,e){var r=e("fc6a"),o=e("50c4"),i=e("23cb"),c=function(t){return function(n,e,c){var u,f=r(n),a=o(f.length),s=i(c,a);if(t&&e!=e){while(a>s)if(u=f[s++],u!=u)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},"50c4":function(t,n,e){var r=e("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5135:function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},5692:function(t,n,e){var r=e("c430"),o=e("c6cd");(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,n,e){var r=e("d066"),o=e("241c"),i=e("7418"),c=e("825a");t.exports=r("Reflect","ownKeys")||function(t){var n=o.f(c(t)),e=i.f;return e?n.concat(e(t)):n}},"5c6c":function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},"65f0":function(t,n,e){var r=e("861d"),o=e("e8b5"),i=e("b622"),c=i("species");t.exports=function(t,n){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)?r(e)&&(e=e[c],null===e&&(e=void 0)):e=void 0),new(void 0===e?Array:e)(0===n?0:n)}},"69f3":function(t,n,e){var r,o,i,c=e("7f9a"),u=e("da84"),f=e("861d"),a=e("9112"),s=e("5135"),p=e("f772"),l=e("d012"),d=u.WeakMap,v=function(t){return i(t)?o(t):r(t,{})},y=function(t){return function(n){var e;if(!f(n)||(e=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}};if(c){var b=new d,h=b.get,m=b.has,g=b.set;r=function(t,n){return g.call(b,t,n),n},o=function(t){return h.call(b,t)||{}},i=function(t){return m.call(b,t)}}else{var x=p("state");l[x]=!0,r=function(t,n){return a(t,x,n),n},o=function(t){return s(t,x)?t[x]:{}},i=function(t){return s(t,x)}}t.exports={set:r,get:o,has:i,enforce:v,getterFor:y}},"6eeb":function(t,n,e){var r=e("da84"),o=e("9112"),i=e("5135"),c=e("ce4e"),u=e("8925"),f=e("69f3"),a=f.get,s=f.enforce,p=String(String).split("String");(t.exports=function(t,n,e,u){var f=!!u&&!!u.unsafe,a=!!u&&!!u.enumerable,l=!!u&&!!u.noTargetGet;"function"==typeof e&&("string"!=typeof n||i(e,"name")||o(e,"name",n),s(e).source=p.join("string"==typeof n?n:"")),t!==r?(f?!l&&t[n]&&(a=!0):delete t[n],a?t[n]=e:o(t,n,e)):a?t[n]=e:c(n,e)})(Function.prototype,"toString",(function(){return"function"==typeof this&&a(this).source||u(this)}))},7418:function(t,n){n.f=Object.getOwnPropertySymbols},7839:function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,n,e){var r=e("1d80");t.exports=function(t){return Object(r(t))}},"7f9a":function(t,n,e){var r=e("da84"),o=e("8925"),i=r.WeakMap;t.exports="function"===typeof i&&/native code/.test(o(i))},"825a":function(t,n,e){var r=e("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,n,e){var r=e("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8925:function(t,n,e){var r=e("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},"8bbf":function(n,e){n.exports=t},"90e3":function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},9112:function(t,n,e){var r=e("83ab"),o=e("9bf2"),i=e("5c6c");t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},"94ca":function(t,n,e){var r=e("d039"),o=/#|\.prototype\./,i=function(t,n){var e=u[c(t)];return e==a||e!=f&&("function"==typeof n?r(n):!!n)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},f=i.NATIVE="N",a=i.POLYFILL="P";t.exports=i},"9bf2":function(t,n,e){var r=e("83ab"),o=e("0cfb"),i=e("825a"),c=e("c04e"),u=Object.defineProperty;n.f=r?u:function(t,n,e){if(i(t),n=c(n,!0),i(e),o)try{return u(t,n,e)}catch(r){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},a640:function(t,n,e){"use strict";var r=e("d039");t.exports=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){throw 1},1)}))}},a691:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},ae40:function(t,n,e){var r=e("83ab"),o=e("d039"),i=e("5135"),c=Object.defineProperty,u={},f=function(t){throw t};t.exports=function(t,n){if(i(u,t))return u[t];n||(n={});var e=[][t],a=!!i(n,"ACCESSORS")&&n.ACCESSORS,s=i(n,0)?n[0]:f,p=i(n,1)?n[1]:void 0;return u[t]=!!e&&!o((function(){if(a&&!r)return!0;var t={length:-1};a?c(t,1,{enumerable:!0,get:f}):t[1]=1,e.call(t,s,p)}))}},b622:function(t,n,e){var r=e("da84"),o=e("5692"),i=e("5135"),c=e("90e3"),u=e("4930"),f=e("fdbf"),a=o("wks"),s=r.Symbol,p=f?s:s&&s.withoutSetter||c;t.exports=function(t){return i(a,t)||(u&&i(s,t)?a[t]=s[t]:a[t]=p("Symbol."+t)),a[t]}},b727:function(t,n,e){var r=e("0366"),o=e("44ad"),i=e("7b0b"),c=e("50c4"),u=e("65f0"),f=[].push,a=function(t){var n=1==t,e=2==t,a=3==t,s=4==t,p=6==t,l=5==t||p;return function(d,v,y,b){for(var h,m,g=i(d),x=o(g),S=r(v,y,3),w=c(x.length),O=0,j=b||u,L=n?j(d,w):e?j(d,0):void 0;w>O;O++)if((l||O in x)&&(h=x[O],m=S(h,O,g),t))if(n)L[O]=m;else if(m)switch(t){case 3:return!0;case 5:return h;case 6:return O;case 2:f.call(L,h)}else if(s)return!1;return p?-1:a||s?s:L}};t.exports={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6)}},c04e:function(t,n,e){var r=e("861d");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},c430:function(t,n){t.exports=!1},c6b6:function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},c6cd:function(t,n,e){var r=e("da84"),o=e("ce4e"),i="__core-js_shared__",c=r[i]||o(i,{});t.exports=c},c8ba:function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(r){"object"===typeof window&&(e=window)}t.exports=e},ca84:function(t,n,e){var r=e("5135"),o=e("fc6a"),i=e("4d64").indexOf,c=e("d012");t.exports=function(t,n){var e,u=o(t),f=0,a=[];for(e in u)!r(c,e)&&r(u,e)&&a.push(e);while(n.length>f)r(u,e=n[f++])&&(~i(a,e)||a.push(e));return a}},cc12:function(t,n,e){var r=e("da84"),o=e("861d"),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},ce4e:function(t,n,e){var r=e("da84"),o=e("9112");t.exports=function(t,n){try{o(r,t,n)}catch(e){r[t]=n}return n}},d012:function(t,n){t.exports={}},d039:function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},d066:function(t,n,e){var r=e("428f"),o=e("da84"),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][n]||o[t]&&o[t][n]}},d1e7:function(t,n,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},da84:function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||Function("return this")()}).call(this,e("c8ba"))},e893:function(t,n,e){var r=e("5135"),o=e("56ef"),i=e("06cf"),c=e("9bf2");t.exports=function(t,n){for(var e=o(n),u=c.f,f=i.f,a=0;a 1%", 64 | "last 2 versions" 65 | ] 66 | } 67 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joey2217/vue-print-plugin/a0e381793552b86f85bf3bb91fe87c1e257e5d53/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | vue-print-plugin 9 | 10 | 11 | 12 | 15 |
16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 31 | 32 | 51 | 52 | 57 | -------------------------------------------------------------------------------- /src/assets/print.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joey2217/vue-print-plugin/a0e381793552b86f85bf3bb91fe87c1e257e5d53/src/assets/print.png -------------------------------------------------------------------------------- /src/components/Comp.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | 4 | import './plugins/print' 5 | 6 | Vue.config.productionTip = false 7 | 8 | new Vue({ 9 | render: h => h(App) 10 | }).$mount('#app') 11 | -------------------------------------------------------------------------------- /src/plugins/print/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Print from './print' 3 | 4 | Vue.use(Print) 5 | -------------------------------------------------------------------------------- /src/plugins/print/print copy.js: -------------------------------------------------------------------------------- 1 | // 打印类属性、方法定义 2 | /* eslint-disable */ 3 | const Print = function (dom, options) { 4 | console.log(dom,options); 5 | if (!(this instanceof Print)) return new Print(dom, options); 6 | 7 | this.options = this.extend({ 8 | 'noPrint': '.no-print' 9 | }, options); 10 | 11 | if ((typeof dom) === "string") { 12 | this.dom = document.querySelector(dom); 13 | } else { 14 | this.isDOM(dom) 15 | this.dom = this.isDOM(dom) ? dom : dom.$el; 16 | } 17 | 18 | this.init(); 19 | }; 20 | Print.prototype = { 21 | init: function () { 22 | var content = this.getStyle() + this.getHtml(); 23 | console.log(content); 24 | this.writeIframe(content); 25 | }, 26 | extend: function (obj, obj2) { 27 | for (var k in obj2) { 28 | obj[k] = obj2[k]; 29 | } 30 | return obj; 31 | }, 32 | 33 | getStyle: function () { 34 | var str = "", 35 | styles = document.querySelectorAll('style,link'); 36 | for (var i = 0; i < styles.length; i++) { 37 | str += styles[i].outerHTML; 38 | } 39 | str += ""; 40 | 41 | return str; 42 | }, 43 | 44 | getHtml: function () { 45 | var inputs = document.querySelectorAll('input'); 46 | var textareas = document.querySelectorAll('textarea'); 47 | var selects = document.querySelectorAll('select'); 48 | 49 | for (var k = 0; k < inputs.length; k++) { 50 | if (inputs[k].type == "checkbox" || inputs[k].type == "radio") { 51 | if (inputs[k].checked == true) { 52 | inputs[k].setAttribute('checked', "checked") 53 | } else { 54 | inputs[k].removeAttribute('checked') 55 | } 56 | } else if (inputs[k].type == "text") { 57 | inputs[k].setAttribute('value', inputs[k].value) 58 | } else { 59 | inputs[k].setAttribute('value', inputs[k].value) 60 | } 61 | } 62 | 63 | for (var k2 = 0; k2 < textareas.length; k2++) { 64 | if (textareas[k2].type == 'textarea') { 65 | textareas[k2].innerHTML = textareas[k2].value 66 | } 67 | } 68 | 69 | for (var k3 = 0; k3 < selects.length; k3++) { 70 | if (selects[k3].type == 'select-one') { 71 | var child = selects[k3].children; 72 | for (var i in child) { 73 | if (child[i].tagName == 'OPTION') { 74 | if (child[i].selected == true) { 75 | child[i].setAttribute('selected', "selected") 76 | } else { 77 | child[i].removeAttribute('selected') 78 | } 79 | } 80 | } 81 | } 82 | } 83 | 84 | return this.dom.outerHTML; 85 | }, 86 | 87 | writeIframe: function (content) { 88 | var w, doc, iframe = document.createElement('iframe'), 89 | f = document.body.appendChild(iframe); 90 | iframe.id = "myIframe"; 91 | //iframe.style = "position:absolute;width:0;height:0;top:-10px;left:-10px;"; 92 | iframe.setAttribute('style', 'position:absolute;width:0;height:0;top:-10px;left:-10px;'); 93 | w = f.contentWindow || f.contentDocument; 94 | doc = f.contentDocument || f.contentWindow.document; 95 | doc.open(); 96 | doc.write(content); 97 | doc.close(); 98 | var _this = this 99 | iframe.onload = function(){ 100 | // _this.toPrint(w); 101 | // setTimeout(function () { 102 | // document.body.removeChild(iframe) 103 | // }, 100) 104 | } 105 | }, 106 | 107 | toPrint: function (frameWindow) { 108 | try { 109 | setTimeout(function () { 110 | frameWindow.focus(); 111 | try { 112 | if (!frameWindow.document.execCommand('print', false, null)) { 113 | frameWindow.print(); 114 | } 115 | } catch (e) { 116 | frameWindow.print(); 117 | } 118 | frameWindow.close(); 119 | }, 10); 120 | } catch (err) { 121 | console.log('err', err); 122 | } 123 | }, 124 | isDOM: (typeof HTMLElement === 'object') ? 125 | function (obj) { 126 | return obj instanceof HTMLElement; 127 | } : 128 | function (obj) { 129 | return obj && typeof obj === 'object' && obj.nodeType === 1 && typeof obj.nodeName === 'string'; 130 | } 131 | }; 132 | const MyPlugin = {} 133 | MyPlugin.install = function (Vue, options) { 134 | // 4. 添加实例方法 135 | Vue.prototype.$print =Print 136 | } 137 | export default MyPlugin 138 | -------------------------------------------------------------------------------- /src/plugins/print/print.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | /* eslint-disable */ 3 | exports.__esModule = true 4 | var vue_1 = require('vue') 5 | var Print = /** @class */ (function () { 6 | function Print (dom) { 7 | if (dom instanceof HTMLElement) { 8 | this.dom = dom 9 | } else if (dom instanceof vue_1['default']) { 10 | this.dom = dom.$el 11 | } else if (typeof dom === 'string') { 12 | this.dom = document.querySelector(dom) 13 | } else { 14 | // TODO 15 | } 16 | this.init() 17 | } 18 | Print.prototype.init = function () { 19 | var style = this.getStyle() 20 | var html = this.dom.outerHTML 21 | var content = style + html 22 | this.iframePrint(content) 23 | } 24 | // 获取link 和 style 25 | Print.prototype.getStyle = function () { 26 | var styleString = '' 27 | var styles = document.querySelectorAll('style,link') 28 | styles.forEach(function (style) { 29 | styleString += style.outerHTML 30 | }) 31 | return styleString 32 | } 33 | // 通过 iframe 打印 34 | Print.prototype.iframePrint = function (content) { 35 | var iframe = document.createElement('iframe') 36 | iframe.setAttribute('style', 'position:absolute;width:0;height:0;top:-100%;left:-100%;') 37 | var el = document.body.appendChild(iframe) 38 | var _window = el.contentWindow 39 | var _document = el.contentDocument || el.contentWindow.document 40 | _document.open() 41 | _document.write(content) 42 | _document.close() 43 | iframe.onload = function () { 44 | _window.print() 45 | } 46 | } 47 | return Print 48 | }()) 49 | exports['default'] = { 50 | install: function (Vue) { 51 | // 4. 添加实例方法 52 | Vue.prototype.$print = function (dom) { return new Print(dom) } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/plugins/print/print.ts: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | 3 | class Print { 4 | dom: HTMLElement 5 | constructor(dom) { 6 | if (dom instanceof HTMLElement) { 7 | this.dom = dom 8 | } else if (dom instanceof Vue) { 9 | this.dom = dom.$el 10 | } else if (typeof dom === 'string') { 11 | this.dom = document.querySelector(dom) 12 | } else { 13 | // TODO 14 | } 15 | this.init() 16 | } 17 | init() { 18 | var style = this.getStyle() 19 | var html = this.dom.outerHTML 20 | var content = style + html 21 | this.iframePrint(content) 22 | } 23 | // 获取link 和 style 24 | getStyle() { 25 | var styleString = '' 26 | var styles = document.querySelectorAll('style,link') 27 | styles.forEach(function (style) { 28 | styleString += style.outerHTML 29 | }) 30 | return styleString 31 | } 32 | // 通过 iframe 打印 33 | iframePrint(content) { 34 | var iframe = document.createElement('iframe') 35 | iframe.setAttribute('style', 'position:absolute;width:0;height:0;top:-100%;left:-100%;') 36 | var el = document.body.appendChild(iframe) 37 | var _window = el.contentWindow 38 | var _document = el.contentDocument || el.contentWindow.document 39 | _document.open() 40 | _document.write(content) 41 | _document.close() 42 | iframe.onload = function () { 43 | _window.print() 44 | } 45 | } 46 | } 47 | 48 | 49 | export default { 50 | install: function (Vue) { 51 | // 4. 添加实例方法 52 | Vue.prototype.$print = (dom) => new Print(dom) 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | publicPath: process.env.NODE_ENV === 'production' 3 | ? '/vue-print-plugin/' 4 | : '/' 5 | } 6 | --------------------------------------------------------------------------------