cy-element-ui 1.0.39 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/README.md +8 -7
  2. package/lib/alert.js +13 -31
  3. package/lib/aside.js +77 -84
  4. package/lib/autocomplete.js +3969 -268
  5. package/lib/avatar.js +108 -108
  6. package/lib/backtop.js +118 -136
  7. package/lib/badge.js +112 -133
  8. package/lib/breadcrumb-item.js +8 -21
  9. package/lib/breadcrumb.js +8 -14
  10. package/lib/button-group.js +8 -14
  11. package/lib/button.js +8 -33
  12. package/lib/calendar.js +1549 -109
  13. package/lib/card.js +96 -104
  14. package/lib/carousel-item.js +456 -135
  15. package/lib/carousel.js +191 -179
  16. package/lib/cascader-panel.js +2275 -209
  17. package/lib/cascader.js +6410 -349
  18. package/lib/checkbox-button.js +52 -62
  19. package/lib/checkbox-group.js +51 -20
  20. package/lib/checkbox.js +51 -75
  21. package/lib/col.js +2 -2
  22. package/lib/collapse-item.js +829 -170
  23. package/lib/collapse.js +112 -118
  24. package/lib/color-picker.js +3917 -258
  25. package/lib/container.js +88 -95
  26. package/lib/date-picker.js +8736 -4669
  27. package/lib/descriptions-item.js +2 -2
  28. package/lib/descriptions.js +63 -8
  29. package/lib/dialog.js +1213 -75
  30. package/lib/divider.js +104 -120
  31. package/lib/drawer.js +897 -173
  32. package/lib/dropdown-item.js +47 -31
  33. package/lib/dropdown-menu.js +2275 -81
  34. package/lib/dropdown.js +1072 -136
  35. package/lib/element-ui.common.js +910 -4903
  36. package/lib/empty.js +625 -169
  37. package/lib/fileUpload.js +3593 -520
  38. package/lib/footer.js +77 -84
  39. package/lib/form-item.js +450 -99
  40. package/lib/form.js +33 -28
  41. package/lib/header.js +77 -84
  42. package/lib/icon.js +67 -72
  43. package/lib/image.js +1400 -152
  44. package/lib/index.js +1 -1
  45. package/lib/infinite-scroll.js +311 -21
  46. package/lib/input-number.js +1438 -100
  47. package/lib/input.js +511 -151
  48. package/lib/link.js +9 -33
  49. package/lib/loading.js +808 -90
  50. package/lib/main.js +64 -71
  51. package/lib/menu-item-group.js +8 -20
  52. package/lib/menu-item.js +2912 -59
  53. package/lib/menu.js +745 -54
  54. package/lib/message-box.js +2556 -184
  55. package/lib/message.js +1117 -64
  56. package/lib/notification.js +1114 -67
  57. package/lib/option-group.js +47 -27
  58. package/lib/option.js +404 -43
  59. package/lib/page-header.js +683 -94
  60. package/lib/pagination.js +6078 -170
  61. package/lib/popconfirm.js +3514 -263
  62. package/lib/popover.js +2594 -93
  63. package/lib/progress.js +9 -62
  64. package/lib/radio-button.js +48 -55
  65. package/lib/radio-group.js +47 -26
  66. package/lib/radio.js +52 -67
  67. package/lib/rate.js +760 -152
  68. package/lib/result.js +39 -89
  69. package/lib/row.js +2 -2
  70. package/lib/scrollbar.js +735 -50
  71. package/lib/select.js +4294 -326
  72. package/lib/skeleton-item.js +13 -33
  73. package/lib/skeleton.js +116 -143
  74. package/lib/slider.js +4285 -254
  75. package/lib/spinner.js +100 -108
  76. package/lib/statistic.js +9627 -161
  77. package/lib/step.js +140 -186
  78. package/lib/steps.js +514 -111
  79. package/lib/subTitle.js +91 -100
  80. package/lib/submenu.js +2444 -123
  81. package/lib/switch.js +483 -67
  82. package/lib/tab-pane.js +10 -24
  83. package/lib/tabDialog.js +1548 -71
  84. package/lib/table-column.js +880 -32
  85. package/lib/table.js +4530 -744
  86. package/lib/tabs.js +432 -23
  87. package/lib/tag.js +4 -4
  88. package/lib/theme-chalk/gulpfile.js +27 -0
  89. package/lib/time-picker.js +5016 -566
  90. package/lib/time-select.js +4976 -313
  91. package/lib/timeline-item.js +114 -156
  92. package/lib/timeline.js +82 -82
  93. package/lib/tooltip.js +2566 -41
  94. package/lib/transfer.js +2143 -247
  95. package/lib/tree.js +1387 -180
  96. package/lib/treeSelect.js +3426 -153
  97. package/lib/upload.js +1154 -207
  98. package/package.json +10 -11
  99. package/packages/input-number/src/input-number.vue +7 -4
  100. package/packages/selectDisplayInput/index.js +8 -0
  101. package/packages/selectDisplayInput/src/main.vue +75 -0
  102. package/packages/theme-chalk/gulpfile.js +27 -0
  103. package/packages/theme-cy/gulpfile.js +27 -0
  104. package/packages/theme-cy/src/base.scss +3 -0
  105. package/packages/theme-cy/src/index.scss +1 -0
  106. package/packages/theme-cy/src/selectDisplayInput.scss +76 -0
  107. package/packages/theme-cy/src/treeSelect.scss +9 -4
  108. package/packages/treeSelect/src/main.vue +79 -0
  109. package/src/index.js +7 -4
  110. package/types/element-ui.d.ts +5 -1
  111. package/types/selectDisplayInput.d.ts +5 -0
  112. package/CHANGELOG.md +0 -280
  113. /package/{packages/theme-cy/lib → lib/theme-chalk}/base.css +0 -0
  114. /package/{packages/theme-cy/lib → lib/theme-chalk}/element.css +0 -0
  115. /package/{packages/theme-cy/lib → lib/theme-chalk}/fileUpload.css +0 -0
  116. /package/{packages/theme-cy/lib → lib/theme-chalk}/index.css +0 -0
  117. /package/{packages/theme-cy/lib → lib/theme-chalk}/subTitle.css +0 -0
  118. /package/{packages/theme-cy/lib → lib/theme-chalk}/tabDialog.css +0 -0
  119. /package/{packages/theme-cy/lib → lib/theme-chalk}/treeSelect.css +0 -0
package/lib/image.js CHANGED
@@ -82,12 +82,534 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 70);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 72);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
90
  /***/ 0:
91
+ /***/ (function(module, exports) {
92
+
93
+ module.exports = require("vue");
94
+
95
+ /***/ }),
96
+
97
+ /***/ 1:
98
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
99
+
100
+ "use strict";
101
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
102
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
103
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
104
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
106
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
107
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
108
+ /* unused harmony export setStyle */
109
+ /* unused harmony export isScroll */
110
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
111
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
112
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
113
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
114
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
115
+
116
+ /* istanbul ignore next */
117
+
118
+
119
+
120
+ var isServer = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer;
121
+ var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
122
+ var MOZ_HACK_REGEXP = /^moz([A-Z])/;
123
+ var ieVersion = isServer ? 0 : Number(document.documentMode);
124
+
125
+ /* istanbul ignore next */
126
+ var trim = function trim(string) {
127
+ return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
128
+ };
129
+ /* istanbul ignore next */
130
+ var camelCase = function camelCase(name) {
131
+ return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
132
+ return offset ? letter.toUpperCase() : letter;
133
+ }).replace(MOZ_HACK_REGEXP, 'Moz$1');
134
+ };
135
+
136
+ /* istanbul ignore next */
137
+ var on = function () {
138
+ if (!isServer && document.addEventListener) {
139
+ return function (element, event, handler) {
140
+ if (element && event && handler) {
141
+ element.addEventListener(event, handler, false);
142
+ }
143
+ };
144
+ } else {
145
+ return function (element, event, handler) {
146
+ if (element && event && handler) {
147
+ element.attachEvent('on' + event, handler);
148
+ }
149
+ };
150
+ }
151
+ }();
152
+
153
+ /* istanbul ignore next */
154
+ var off = function () {
155
+ if (!isServer && document.removeEventListener) {
156
+ return function (element, event, handler) {
157
+ if (element && event) {
158
+ element.removeEventListener(event, handler, false);
159
+ }
160
+ };
161
+ } else {
162
+ return function (element, event, handler) {
163
+ if (element && event) {
164
+ element.detachEvent('on' + event, handler);
165
+ }
166
+ };
167
+ }
168
+ }();
169
+
170
+ /* istanbul ignore next */
171
+ var once = function once(el, event, fn) {
172
+ var listener = function listener() {
173
+ if (fn) {
174
+ fn.apply(this, arguments);
175
+ }
176
+ off(el, event, listener);
177
+ };
178
+ on(el, event, listener);
179
+ };
180
+
181
+ /* istanbul ignore next */
182
+ function hasClass(el, cls) {
183
+ if (!el || !cls) return false;
184
+ if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
185
+ if (el.classList) {
186
+ return el.classList.contains(cls);
187
+ } else {
188
+ return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
189
+ }
190
+ };
191
+
192
+ /* istanbul ignore next */
193
+ function addClass(el, cls) {
194
+ if (!el) return;
195
+ var curClass = el.className;
196
+ var classes = (cls || '').split(' ');
197
+
198
+ for (var i = 0, j = classes.length; i < j; i++) {
199
+ var clsName = classes[i];
200
+ if (!clsName) continue;
201
+
202
+ if (el.classList) {
203
+ el.classList.add(clsName);
204
+ } else if (!hasClass(el, clsName)) {
205
+ curClass += ' ' + clsName;
206
+ }
207
+ }
208
+ if (!el.classList) {
209
+ el.setAttribute('class', curClass);
210
+ }
211
+ };
212
+
213
+ /* istanbul ignore next */
214
+ function removeClass(el, cls) {
215
+ if (!el || !cls) return;
216
+ var classes = cls.split(' ');
217
+ var curClass = ' ' + el.className + ' ';
218
+
219
+ for (var i = 0, j = classes.length; i < j; i++) {
220
+ var clsName = classes[i];
221
+ if (!clsName) continue;
222
+
223
+ if (el.classList) {
224
+ el.classList.remove(clsName);
225
+ } else if (hasClass(el, clsName)) {
226
+ curClass = curClass.replace(' ' + clsName + ' ', ' ');
227
+ }
228
+ }
229
+ if (!el.classList) {
230
+ el.setAttribute('class', trim(curClass));
231
+ }
232
+ };
233
+
234
+ /* istanbul ignore next */
235
+ var getStyle = ieVersion < 9 ? function (element, styleName) {
236
+ if (isServer) return;
237
+ if (!element || !styleName) return null;
238
+ styleName = camelCase(styleName);
239
+ if (styleName === 'float') {
240
+ styleName = 'styleFloat';
241
+ }
242
+ try {
243
+ switch (styleName) {
244
+ case 'opacity':
245
+ try {
246
+ return element.filters.item('alpha').opacity / 100;
247
+ } catch (e) {
248
+ return 1.0;
249
+ }
250
+ default:
251
+ return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
252
+ }
253
+ } catch (e) {
254
+ return element.style[styleName];
255
+ }
256
+ } : function (element, styleName) {
257
+ if (isServer) return;
258
+ if (!element || !styleName) return null;
259
+ styleName = camelCase(styleName);
260
+ if (styleName === 'float') {
261
+ styleName = 'cssFloat';
262
+ }
263
+ try {
264
+ var computed = document.defaultView.getComputedStyle(element, '');
265
+ return element.style[styleName] || computed ? computed[styleName] : null;
266
+ } catch (e) {
267
+ return element.style[styleName];
268
+ }
269
+ };
270
+
271
+ /* istanbul ignore next */
272
+ function setStyle(element, styleName, value) {
273
+ if (!element || !styleName) return;
274
+
275
+ if ((typeof styleName === 'undefined' ? 'undefined' : _typeof(styleName)) === 'object') {
276
+ for (var prop in styleName) {
277
+ if (styleName.hasOwnProperty(prop)) {
278
+ setStyle(element, prop, styleName[prop]);
279
+ }
280
+ }
281
+ } else {
282
+ styleName = camelCase(styleName);
283
+ if (styleName === 'opacity' && ieVersion < 9) {
284
+ element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
285
+ } else {
286
+ element.style[styleName] = value;
287
+ }
288
+ }
289
+ };
290
+
291
+ var isScroll = function isScroll(el, vertical) {
292
+ if (isServer) return;
293
+
294
+ var determinedDirection = vertical !== null && vertical !== undefined;
295
+ var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
296
+
297
+ return overflow.match(/(scroll|auto|overlay)/);
298
+ };
299
+
300
+ var getScrollContainer = function getScrollContainer(el, vertical) {
301
+ if (isServer) return;
302
+
303
+ var parent = el;
304
+ while (parent) {
305
+ if ([window, document, document.documentElement].includes(parent)) {
306
+ return window;
307
+ }
308
+ if (isScroll(parent, vertical)) {
309
+ return parent;
310
+ }
311
+ parent = parent.parentNode;
312
+ }
313
+
314
+ return parent;
315
+ };
316
+
317
+ var isInContainer = function isInContainer(el, container) {
318
+ if (isServer || !el || !container) return false;
319
+
320
+ var elRect = el.getBoundingClientRect();
321
+ var containerRect = void 0;
322
+
323
+ if ([window, document, document.documentElement, null, undefined].includes(container)) {
324
+ containerRect = {
325
+ top: 0,
326
+ right: window.innerWidth,
327
+ bottom: window.innerHeight,
328
+ left: 0
329
+ };
330
+ } else {
331
+ containerRect = container.getBoundingClientRect();
332
+ }
333
+
334
+ return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
335
+ };
336
+
337
+ /***/ }),
338
+
339
+ /***/ 11:
340
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
341
+
342
+ "use strict";
343
+
344
+ // EXPORTS
345
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ t; });
346
+
347
+ // UNUSED EXPORTS: use, i18n
348
+
349
+ // CONCATENATED MODULE: ./src/locale/lang/zh-CN.js
350
+ /* harmony default export */ var zh_CN = ({
351
+ el: {
352
+ colorpicker: {
353
+ confirm: '确定',
354
+ clear: '清空'
355
+ },
356
+ datepicker: {
357
+ now: '此刻',
358
+ today: '今天',
359
+ cancel: '取消',
360
+ clear: '清空',
361
+ confirm: '确定',
362
+ selectDate: '选择日期',
363
+ selectTime: '选择时间',
364
+ startDate: '开始日期',
365
+ startTime: '开始时间',
366
+ endDate: '结束日期',
367
+ endTime: '结束时间',
368
+ prevYear: '前一年',
369
+ nextYear: '后一年',
370
+ prevMonth: '上个月',
371
+ nextMonth: '下个月',
372
+ year: '年',
373
+ month1: '1 月',
374
+ month2: '2 月',
375
+ month3: '3 月',
376
+ month4: '4 月',
377
+ month5: '5 月',
378
+ month6: '6 月',
379
+ month7: '7 月',
380
+ month8: '8 月',
381
+ month9: '9 月',
382
+ month10: '10 月',
383
+ month11: '11 月',
384
+ month12: '12 月',
385
+ // week: '周次',
386
+ weeks: {
387
+ sun: '日',
388
+ mon: '一',
389
+ tue: '二',
390
+ wed: '三',
391
+ thu: '四',
392
+ fri: '五',
393
+ sat: '六'
394
+ },
395
+ months: {
396
+ jan: '一月',
397
+ feb: '二月',
398
+ mar: '三月',
399
+ apr: '四月',
400
+ may: '五月',
401
+ jun: '六月',
402
+ jul: '七月',
403
+ aug: '八月',
404
+ sep: '九月',
405
+ oct: '十月',
406
+ nov: '十一月',
407
+ dec: '十二月'
408
+ }
409
+ },
410
+ select: {
411
+ loading: '加载中',
412
+ noMatch: '无匹配数据',
413
+ noData: '无数据',
414
+ placeholder: '请选择'
415
+ },
416
+ cascader: {
417
+ noMatch: '无匹配数据',
418
+ loading: '加载中',
419
+ placeholder: '请选择',
420
+ noData: '暂无数据'
421
+ },
422
+ pagination: {
423
+ goto: '前往',
424
+ pagesize: '条/页',
425
+ total: '共 {total} 条',
426
+ pageClassifier: '页'
427
+ },
428
+ messagebox: {
429
+ title: '提示',
430
+ confirm: '确定',
431
+ cancel: '取消',
432
+ error: '输入的数据不合法!'
433
+ },
434
+ upload: {
435
+ deleteTip: '按 delete 键可删除',
436
+ delete: '删除',
437
+ preview: '查看图片',
438
+ continue: '继续上传'
439
+ },
440
+ table: {
441
+ emptyText: '暂无数据',
442
+ confirmFilter: '筛选',
443
+ resetFilter: '重置',
444
+ clearFilter: '全部',
445
+ sumText: '合计'
446
+ },
447
+ tree: {
448
+ emptyText: '暂无数据'
449
+ },
450
+ transfer: {
451
+ noMatch: '无匹配数据',
452
+ noData: '无数据',
453
+ titles: ['列表 1', '列表 2'],
454
+ filterPlaceholder: '请输入搜索内容',
455
+ noCheckedFormat: '共 {total} 项',
456
+ hasCheckedFormat: '已选 {checked}/{total} 项'
457
+ },
458
+ image: {
459
+ error: '加载失败'
460
+ },
461
+ pageHeader: {
462
+ title: '返回'
463
+ },
464
+ popconfirm: {
465
+ confirmButtonText: '确定',
466
+ cancelButtonText: '取消'
467
+ },
468
+ empty: {
469
+ description: '暂无数据'
470
+ }
471
+ }
472
+ });
473
+ // EXTERNAL MODULE: external "vue"
474
+ var external_vue_ = __webpack_require__(0);
475
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
476
+
477
+ // EXTERNAL MODULE: external "deepmerge"
478
+ var external_deepmerge_ = __webpack_require__(15);
479
+ var external_deepmerge_default = /*#__PURE__*/__webpack_require__.n(external_deepmerge_);
480
+
481
+ // EXTERNAL MODULE: ./src/utils/util.js
482
+ var util = __webpack_require__(3);
483
+
484
+ // CONCATENATED MODULE: ./src/locale/format.js
485
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
486
+
487
+
488
+
489
+ var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
490
+ /**
491
+ * String format template
492
+ * - Inspired:
493
+ * https://github.com/Matt-Esch/string-template/index.js
494
+ */
495
+ /* harmony default export */ var format = (function (Vue) {
496
+ /**
497
+ * template
498
+ *
499
+ * @param {String} string
500
+ * @param {Array} ...args
501
+ * @return {String}
502
+ */
503
+
504
+ function template(string) {
505
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
506
+ args[_key - 1] = arguments[_key];
507
+ }
508
+
509
+ if (args.length === 1 && _typeof(args[0]) === 'object') {
510
+ args = args[0];
511
+ }
512
+
513
+ if (!args || !args.hasOwnProperty) {
514
+ args = {};
515
+ }
516
+
517
+ return string.replace(RE_NARGS, function (match, prefix, i, index) {
518
+ var result = void 0;
519
+
520
+ if (string[index - 1] === '{' && string[index + match.length] === '}') {
521
+ return i;
522
+ } else {
523
+ result = Object(util["j" /* hasOwn */])(args, i) ? args[i] : null;
524
+ if (result === null || result === undefined) {
525
+ return '';
526
+ }
527
+
528
+ return result;
529
+ }
530
+ });
531
+ }
532
+
533
+ return template;
534
+ });
535
+ // CONCATENATED MODULE: ./src/locale/index.js
536
+
537
+
538
+
539
+
540
+
541
+ var locale_format = format(external_vue_default.a);
542
+ var lang = zh_CN;
543
+ var merged = false;
544
+ var locale_i18nHandler = function i18nHandler() {
545
+ var vuei18n = Object.getPrototypeOf(this || external_vue_default.a).$t;
546
+ if (typeof vuei18n === 'function' && !!external_vue_default.a.locale) {
547
+ if (!merged) {
548
+ merged = true;
549
+ external_vue_default.a.locale(external_vue_default.a.config.lang, external_deepmerge_default()(lang, external_vue_default.a.locale(external_vue_default.a.config.lang) || {}, { clone: true }));
550
+ }
551
+ return vuei18n.apply(this, arguments);
552
+ }
553
+ };
554
+
555
+ var t = function t(path, options) {
556
+ var value = locale_i18nHandler.apply(this, arguments);
557
+ if (value !== null && value !== undefined) return value;
558
+
559
+ var array = path.split('.');
560
+ var current = lang;
561
+
562
+ for (var i = 0, j = array.length; i < j; i++) {
563
+ var property = array[i];
564
+ value = current[property];
565
+ if (i === j - 1) return locale_format(value, options);
566
+ if (!value) return '';
567
+ current = value;
568
+ }
569
+ return '';
570
+ };
571
+
572
+ var use = function use(l) {
573
+ lang = l || lang;
574
+ };
575
+
576
+ var i18n = function i18n(fn) {
577
+ locale_i18nHandler = fn || locale_i18nHandler;
578
+ };
579
+
580
+ /* harmony default export */ var locale = ({ use: use, t: t, i18n: i18n });
581
+
582
+ /***/ }),
583
+
584
+ /***/ 13:
585
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
586
+
587
+ "use strict";
588
+ /* harmony import */ var element_ui_src_locale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
589
+
590
+
591
+ /* harmony default export */ __webpack_exports__["a"] = ({
592
+ methods: {
593
+ t: function t() {
594
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
595
+ args[_key] = arguments[_key];
596
+ }
597
+
598
+ return element_ui_src_locale__WEBPACK_IMPORTED_MODULE_0__[/* t */ "a"].apply(this, args);
599
+ }
600
+ }
601
+ });
602
+
603
+ /***/ }),
604
+
605
+ /***/ 15:
606
+ /***/ (function(module, exports) {
607
+
608
+ module.exports = require("deepmerge");
609
+
610
+ /***/ }),
611
+
612
+ /***/ 2:
91
613
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
614
 
93
615
  "use strict";
@@ -192,74 +714,406 @@ function normalizeComponent(
192
714
 
193
715
  /***/ }),
194
716
 
195
- /***/ 14:
196
- /***/ (function(module, exports) {
717
+ /***/ 3:
718
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
719
 
198
- module.exports = require("element-ui/lib/utils/popup");
720
+ "use strict";
721
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
722
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
723
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
724
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
725
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
726
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
727
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
728
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
729
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
730
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
731
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
732
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
733
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
734
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
735
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
736
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
737
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
738
+ /* unused harmony export looseEqual */
739
+ /* unused harmony export arrayEquals */
740
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
741
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
742
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
743
+ /* unused harmony export objToArray */
744
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
745
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
746
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
747
+ /* harmony import */ var element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
748
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
749
+
750
+
751
+
752
+
753
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
754
+
755
+ function noop() {};
756
+
757
+ function hasOwn(obj, key) {
758
+ return hasOwnProperty.call(obj, key);
759
+ };
199
760
 
200
- /***/ }),
761
+ function extend(to, _from) {
762
+ for (var key in _from) {
763
+ to[key] = _from[key];
764
+ }
765
+ return to;
766
+ };
201
767
 
202
- /***/ 18:
203
- /***/ (function(module, exports) {
768
+ function toObject(arr) {
769
+ var res = {};
770
+ for (var i = 0; i < arr.length; i++) {
771
+ if (arr[i]) {
772
+ extend(res, arr[i]);
773
+ }
774
+ }
775
+ return res;
776
+ };
204
777
 
205
- module.exports = require("element-ui/lib/utils/types");
778
+ var getValueByPath = function getValueByPath(object, prop) {
779
+ prop = prop || '';
780
+ var paths = prop.split('.');
781
+ var current = object;
782
+ var result = null;
783
+ for (var i = 0, j = paths.length; i < j; i++) {
784
+ var path = paths[i];
785
+ if (!current) break;
786
+
787
+ if (i === j - 1) {
788
+ result = current[path];
789
+ break;
790
+ }
791
+ current = current[path];
792
+ }
793
+ return result;
794
+ };
206
795
 
207
- /***/ }),
796
+ function getPropByPath(obj, path, strict) {
797
+ var tempObj = obj;
798
+ path = path.replace(/\[(\w+)\]/g, '.$1');
799
+ path = path.replace(/^\./, '');
800
+
801
+ var keyArr = path.split('.');
802
+ var i = 0;
803
+ for (var len = keyArr.length; i < len - 1; ++i) {
804
+ if (!tempObj && !strict) break;
805
+ var key = keyArr[i];
806
+ if (key in tempObj) {
807
+ tempObj = tempObj[key];
808
+ } else {
809
+ if (strict) {
810
+ throw new Error('please transfer a valid prop path to form item!');
811
+ }
812
+ break;
813
+ }
814
+ }
815
+ return {
816
+ o: tempObj,
817
+ k: keyArr[i],
818
+ v: tempObj ? tempObj[keyArr[i]] : null
819
+ };
820
+ };
208
821
 
209
- /***/ 2:
210
- /***/ (function(module, exports) {
822
+ var generateId = function generateId() {
823
+ return Math.floor(Math.random() * 10000);
824
+ };
825
+
826
+ var valueEquals = function valueEquals(a, b) {
827
+ // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
828
+ if (a === b) return true;
829
+ if (!(a instanceof Array)) return false;
830
+ if (!(b instanceof Array)) return false;
831
+ if (a.length !== b.length) return false;
832
+ for (var i = 0; i !== a.length; ++i) {
833
+ if (a[i] !== b[i]) return false;
834
+ }
835
+ return true;
836
+ };
211
837
 
212
- module.exports = require("element-ui/lib/utils/dom");
838
+ var escapeRegexpString = function escapeRegexpString() {
839
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
840
+ return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
841
+ };
842
+
843
+ // TODO: use native Array.find, Array.findIndex when IE support is dropped
844
+ var arrayFindIndex = function arrayFindIndex(arr, pred) {
845
+ for (var i = 0; i !== arr.length; ++i) {
846
+ if (pred(arr[i])) {
847
+ return i;
848
+ }
849
+ }
850
+ return -1;
851
+ };
852
+
853
+ var arrayFind = function arrayFind(arr, pred) {
854
+ var idx = arrayFindIndex(arr, pred);
855
+ return idx !== -1 ? arr[idx] : undefined;
856
+ };
857
+
858
+ // coerce truthy value to array
859
+ var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
860
+ if (Array.isArray(val)) {
861
+ return val;
862
+ } else if (val) {
863
+ return [val];
864
+ } else {
865
+ return [];
866
+ }
867
+ };
868
+
869
+ var isIE = function isIE() {
870
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
871
+ };
872
+
873
+ var isEdge = function isEdge() {
874
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
875
+ };
876
+
877
+ var isFirefox = function isFirefox() {
878
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
879
+ };
880
+
881
+ var autoprefixer = function autoprefixer(style) {
882
+ if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
883
+ var rules = ['transform', 'transition', 'animation'];
884
+ var prefixes = ['ms-', 'webkit-'];
885
+ rules.forEach(function (rule) {
886
+ var value = style[rule];
887
+ if (rule && value) {
888
+ prefixes.forEach(function (prefix) {
889
+ style[prefix + rule] = value;
890
+ });
891
+ }
892
+ });
893
+ return style;
894
+ };
895
+
896
+ var kebabCase = function kebabCase(str) {
897
+ var hyphenateRE = /([^-])([A-Z])/g;
898
+ return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
899
+ };
900
+
901
+ var capitalize = function capitalize(str) {
902
+ if (!Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
903
+ return str.charAt(0).toUpperCase() + str.slice(1);
904
+ };
905
+
906
+ var looseEqual = function looseEqual(a, b) {
907
+ var isObjectA = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
908
+ var isObjectB = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
909
+ if (isObjectA && isObjectB) {
910
+ return JSON.stringify(a) === JSON.stringify(b);
911
+ } else if (!isObjectA && !isObjectB) {
912
+ return String(a) === String(b);
913
+ } else {
914
+ return false;
915
+ }
916
+ };
917
+
918
+ var arrayEquals = function arrayEquals(arrayA, arrayB) {
919
+ arrayA = arrayA || [];
920
+ arrayB = arrayB || [];
921
+
922
+ if (arrayA.length !== arrayB.length) {
923
+ return false;
924
+ }
925
+
926
+ for (var i = 0; i < arrayA.length; i++) {
927
+ if (!looseEqual(arrayA[i], arrayB[i])) {
928
+ return false;
929
+ }
930
+ }
931
+
932
+ return true;
933
+ };
934
+
935
+ var isEqual = function isEqual(value1, value2) {
936
+ if (Array.isArray(value1) && Array.isArray(value2)) {
937
+ return arrayEquals(value1, value2);
938
+ }
939
+ return looseEqual(value1, value2);
940
+ };
941
+
942
+ var isEmpty = function isEmpty(val) {
943
+ // null or undefined
944
+ if (val == null) return true;
945
+
946
+ if (typeof val === 'boolean') return false;
947
+
948
+ if (typeof val === 'number') return !val;
949
+
950
+ if (val instanceof Error) return val.message === '';
951
+
952
+ switch (Object.prototype.toString.call(val)) {
953
+ // String or Array
954
+ case '[object String]':
955
+ case '[object Array]':
956
+ return !val.length;
957
+
958
+ // Map or Set or File
959
+ case '[object File]':
960
+ case '[object Map]':
961
+ case '[object Set]':
962
+ {
963
+ return !val.size;
964
+ }
965
+ // Plain Object
966
+ case '[object Object]':
967
+ {
968
+ return !Object.keys(val).length;
969
+ }
970
+ }
971
+
972
+ return false;
973
+ };
974
+
975
+ function rafThrottle(fn) {
976
+ var locked = false;
977
+ return function () {
978
+ var _this = this;
979
+
980
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
981
+ args[_key] = arguments[_key];
982
+ }
983
+
984
+ if (locked) return;
985
+ locked = true;
986
+ window.requestAnimationFrame(function (_) {
987
+ fn.apply(_this, args);
988
+ locked = false;
989
+ });
990
+ };
991
+ }
992
+
993
+ function objToArray(obj) {
994
+ if (Array.isArray(obj)) {
995
+ return obj;
996
+ }
997
+ return isEmpty(obj) ? [] : [obj];
998
+ }
999
+
1000
+ var isMac = function isMac() {
1001
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
1002
+ };
213
1003
 
214
1004
  /***/ }),
215
1005
 
216
- /***/ 25:
1006
+ /***/ 38:
217
1007
  /***/ (function(module, exports) {
218
1008
 
219
1009
  module.exports = require("throttle-debounce/throttle");
220
1010
 
221
1011
  /***/ }),
222
1012
 
223
- /***/ 3:
224
- /***/ (function(module, exports) {
1013
+ /***/ 4:
1014
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1015
+
1016
+ "use strict";
1017
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
1018
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
1019
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
1020
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
1021
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
1022
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
1023
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1024
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
1025
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
1026
+
1027
+
1028
+
1029
+ function isString(obj) {
1030
+ return Object.prototype.toString.call(obj) === '[object String]';
1031
+ }
1032
+
1033
+ function isObject(obj) {
1034
+ return Object.prototype.toString.call(obj) === '[object Object]';
1035
+ }
1036
+
1037
+ function isHtmlElement(node) {
1038
+ return node && node.nodeType === Node.ELEMENT_NODE;
1039
+ }
1040
+
1041
+ /**
1042
+ * - Inspired:
1043
+ * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
1044
+ */
1045
+ var isFunction = function isFunction(functionToCheck) {
1046
+ var getType = {};
1047
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
1048
+ };
1049
+
1050
+ if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
1051
+ isFunction = function isFunction(obj) {
1052
+ return typeof obj === 'function' || false;
1053
+ };
1054
+ }
1055
+
1056
+
1057
+
1058
+ var isUndefined = function isUndefined(val) {
1059
+ return val === void 0;
1060
+ };
225
1061
 
226
- module.exports = require("element-ui/lib/utils/util");
1062
+ var isDefined = function isDefined(val) {
1063
+ return val !== undefined && val !== null;
1064
+ };
227
1065
 
228
1066
  /***/ }),
229
1067
 
230
- /***/ 6:
231
- /***/ (function(module, exports) {
1068
+ /***/ 7:
1069
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1070
+
1071
+ "use strict";
1072
+ /* harmony default export */ __webpack_exports__["a"] = (function (target) {
1073
+ for (var i = 1, j = arguments.length; i < j; i++) {
1074
+ var source = arguments[i] || {};
1075
+ for (var prop in source) {
1076
+ if (source.hasOwnProperty(prop)) {
1077
+ var value = source[prop];
1078
+ if (value !== undefined) {
1079
+ target[prop] = value;
1080
+ }
1081
+ }
1082
+ }
1083
+ }
232
1084
 
233
- module.exports = require("element-ui/lib/mixins/locale");
1085
+ return target;
1086
+ });;
234
1087
 
235
1088
  /***/ }),
236
1089
 
237
- /***/ 70:
1090
+ /***/ 72:
238
1091
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
239
1092
 
240
1093
  "use strict";
241
1094
  // ESM COMPAT FLAG
242
1095
  __webpack_require__.r(__webpack_exports__);
243
1096
 
244
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/main.vue?vue&type=template&id=4e908bdb
245
- var render = function () {
246
- var _vm = this
247
- var _h = _vm.$createElement
248
- var _c = _vm._self._c || _h
1097
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/main.vue?vue&type=template&id=4e908bdb
1098
+ var render = function render() {
1099
+ var _vm = this,
1100
+ _c = _vm._self._c
249
1101
  return _c(
250
1102
  "div",
251
1103
  { staticClass: "el-image" },
252
1104
  [
253
1105
  _vm.loading
254
- ? _vm._t("placeholder", [
255
- _c("div", { staticClass: "el-image__placeholder" }),
256
- ])
1106
+ ? _vm._t("placeholder", function () {
1107
+ return [_c("div", { staticClass: "el-image__placeholder" })]
1108
+ })
257
1109
  : _vm.error
258
- ? _vm._t("error", [
259
- _c("div", { staticClass: "el-image__error" }, [
260
- _vm._v(_vm._s(_vm.t("el.image.error"))),
261
- ]),
262
- ])
1110
+ ? _vm._t("error", function () {
1111
+ return [
1112
+ _c("div", { staticClass: "el-image__error" }, [
1113
+ _vm._v(_vm._s(_vm.t("el.image.error"))),
1114
+ ]),
1115
+ ]
1116
+ })
263
1117
  : _c(
264
1118
  "img",
265
1119
  _vm._g(
@@ -305,11 +1159,10 @@ render._withStripped = true
305
1159
 
306
1160
  // CONCATENATED MODULE: ./packages/image/src/main.vue?vue&type=template&id=4e908bdb
307
1161
 
308
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/image-viewer.vue?vue&type=template&id=1cbbb3b9
309
- var image_viewervue_type_template_id_1cbbb3b9_render = function () {
310
- var _vm = this
311
- var _h = _vm.$createElement
312
- var _c = _vm._self._c || _h
1162
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/image-viewer.vue?vue&type=template&id=1cbbb3b9
1163
+ var image_viewervue_type_template_id_1cbbb3b9_render = function render() {
1164
+ var _vm = this,
1165
+ _c = _vm._self._c
313
1166
  return _c("transition", { attrs: { name: "viewer-fade" } }, [
314
1167
  _c(
315
1168
  "div",
@@ -324,10 +1177,8 @@ var image_viewervue_type_template_id_1cbbb3b9_render = function () {
324
1177
  staticClass: "el-image-viewer__mask",
325
1178
  on: {
326
1179
  click: function ($event) {
327
- if ($event.target !== $event.currentTarget) {
328
- return null
329
- }
330
- return _vm.handleMaskClick($event)
1180
+ if ($event.target !== $event.currentTarget) return null
1181
+ return _vm.handleMaskClick.apply(null, arguments)
331
1182
  },
332
1183
  },
333
1184
  }),
@@ -437,72 +1288,18 @@ image_viewervue_type_template_id_1cbbb3b9_render._withStripped = true
437
1288
 
438
1289
  // CONCATENATED MODULE: ./packages/image/src/image-viewer.vue?vue&type=template&id=1cbbb3b9
439
1290
 
440
- // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
441
- var dom_ = __webpack_require__(2);
1291
+ // EXTERNAL MODULE: ./src/utils/dom.js
1292
+ var dom = __webpack_require__(1);
442
1293
 
443
- // EXTERNAL MODULE: external "element-ui/lib/utils/util"
444
- var util_ = __webpack_require__(3);
1294
+ // EXTERNAL MODULE: ./src/utils/util.js
1295
+ var util = __webpack_require__(3);
445
1296
 
446
- // EXTERNAL MODULE: external "element-ui/lib/utils/popup"
447
- var popup_ = __webpack_require__(14);
1297
+ // EXTERNAL MODULE: ./src/utils/popup/index.js + 1 modules
1298
+ var popup = __webpack_require__(9);
448
1299
 
449
1300
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/image-viewer.vue?vue&type=script&lang=js
450
1301
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
451
1302
 
452
- //
453
- //
454
- //
455
- //
456
- //
457
- //
458
- //
459
- //
460
- //
461
- //
462
- //
463
- //
464
- //
465
- //
466
- //
467
- //
468
- //
469
- //
470
- //
471
- //
472
- //
473
- //
474
- //
475
- //
476
- //
477
- //
478
- //
479
- //
480
- //
481
- //
482
- //
483
- //
484
- //
485
- //
486
- //
487
- //
488
- //
489
- //
490
- //
491
- //
492
- //
493
- //
494
- //
495
- //
496
- //
497
- //
498
- //
499
- //
500
- //
501
- //
502
- //
503
- //
504
- //
505
-
506
1303
 
507
1304
 
508
1305
 
@@ -518,7 +1315,7 @@ var Mode = {
518
1315
  }
519
1316
  };
520
1317
 
521
- var mousewheelEventName = Object(util_["isFirefox"])() ? 'DOMMouseScroll' : 'mousewheel';
1318
+ var mousewheelEventName = Object(util["n" /* isFirefox */])() ? 'DOMMouseScroll' : 'mousewheel';
522
1319
 
523
1320
  /* harmony default export */ var image_viewervue_type_script_lang_js = ({
524
1321
  name: 'ElImageViewer',
@@ -606,7 +1403,7 @@ var mousewheelEventName = Object(util_["isFirefox"])() ? 'DOMMouseScroll' : 'mou
606
1403
  return style;
607
1404
  },
608
1405
  viewerZIndex: function viewerZIndex() {
609
- var nextZIndex = popup_["PopupManager"].nextZIndex();
1406
+ var nextZIndex = popup["a" /* PopupManager */].nextZIndex();
610
1407
  return this.zIndex > nextZIndex ? this.zIndex : nextZIndex;
611
1408
  }
612
1409
  },
@@ -666,7 +1463,7 @@ var mousewheelEventName = Object(util_["isFirefox"])() ? 'DOMMouseScroll' : 'mou
666
1463
  break;
667
1464
  }
668
1465
  };
669
- this._mouseWheelHandler = Object(util_["rafThrottle"])(function (e) {
1466
+ this._mouseWheelHandler = Object(util["s" /* rafThrottle */])(function (e) {
670
1467
  var delta = e.wheelDelta ? e.wheelDelta : -e.detail;
671
1468
  if (delta > 0) {
672
1469
  _this2.handleActions('zoomIn', {
@@ -680,12 +1477,12 @@ var mousewheelEventName = Object(util_["isFirefox"])() ? 'DOMMouseScroll' : 'mou
680
1477
  });
681
1478
  }
682
1479
  });
683
- Object(dom_["on"])(document, 'keydown', this._keyDownHandler);
684
- Object(dom_["on"])(document, mousewheelEventName, this._mouseWheelHandler);
1480
+ Object(dom["g" /* on */])(document, 'keydown', this._keyDownHandler);
1481
+ Object(dom["g" /* on */])(document, mousewheelEventName, this._mouseWheelHandler);
685
1482
  },
686
1483
  deviceSupportUninstall: function deviceSupportUninstall() {
687
- Object(dom_["off"])(document, 'keydown', this._keyDownHandler);
688
- Object(dom_["off"])(document, mousewheelEventName, this._mouseWheelHandler);
1484
+ Object(dom["f" /* off */])(document, 'keydown', this._keyDownHandler);
1485
+ Object(dom["f" /* off */])(document, mousewheelEventName, this._mouseWheelHandler);
689
1486
  this._keyDownHandler = null;
690
1487
  this._mouseWheelHandler = null;
691
1488
  },
@@ -707,13 +1504,13 @@ var mousewheelEventName = Object(util_["isFirefox"])() ? 'DOMMouseScroll' : 'mou
707
1504
 
708
1505
  var startX = e.pageX;
709
1506
  var startY = e.pageY;
710
- this._dragHandler = Object(util_["rafThrottle"])(function (ev) {
1507
+ this._dragHandler = Object(util["s" /* rafThrottle */])(function (ev) {
711
1508
  _this3.transform.offsetX = offsetX + ev.pageX - startX;
712
1509
  _this3.transform.offsetY = offsetY + ev.pageY - startY;
713
1510
  });
714
- Object(dom_["on"])(document, 'mousemove', this._dragHandler);
715
- Object(dom_["on"])(document, 'mouseup', function (ev) {
716
- Object(dom_["off"])(document, 'mousemove', _this3._dragHandler);
1511
+ Object(dom["g" /* on */])(document, 'mousemove', this._dragHandler);
1512
+ Object(dom["g" /* on */])(document, 'mouseup', function (ev) {
1513
+ Object(dom["f" /* off */])(document, 'mousemove', _this3._dragHandler);
717
1514
  });
718
1515
 
719
1516
  e.preventDefault();
@@ -806,7 +1603,7 @@ var mousewheelEventName = Object(util_["isFirefox"])() ? 'DOMMouseScroll' : 'mou
806
1603
  // CONCATENATED MODULE: ./packages/image/src/image-viewer.vue?vue&type=script&lang=js
807
1604
  /* harmony default export */ var src_image_viewervue_type_script_lang_js = (image_viewervue_type_script_lang_js);
808
1605
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
809
- var componentNormalizer = __webpack_require__(0);
1606
+ var componentNormalizer = __webpack_require__(2);
810
1607
 
811
1608
  // CONCATENATED MODULE: ./packages/image/src/image-viewer.vue
812
1609
 
@@ -828,41 +1625,17 @@ var component = Object(componentNormalizer["a" /* default */])(
828
1625
  )
829
1626
 
830
1627
  /* harmony default export */ var image_viewer = (component.exports);
831
- // EXTERNAL MODULE: external "element-ui/lib/mixins/locale"
832
- var locale_ = __webpack_require__(6);
833
- var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
1628
+ // EXTERNAL MODULE: ./src/mixins/locale.js
1629
+ var locale = __webpack_require__(13);
834
1630
 
835
- // EXTERNAL MODULE: external "element-ui/lib/utils/types"
836
- var types_ = __webpack_require__(18);
1631
+ // EXTERNAL MODULE: ./src/utils/types.js
1632
+ var types = __webpack_require__(4);
837
1633
 
838
1634
  // EXTERNAL MODULE: external "throttle-debounce/throttle"
839
- var throttle_ = __webpack_require__(25);
1635
+ var throttle_ = __webpack_require__(38);
840
1636
  var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
841
1637
 
842
1638
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/main.vue?vue&type=script&lang=js
843
- //
844
- //
845
- //
846
- //
847
- //
848
- //
849
- //
850
- //
851
- //
852
- //
853
- //
854
- //
855
- //
856
- //
857
- //
858
- //
859
- //
860
- //
861
- //
862
- //
863
- //
864
- //
865
- //
866
1639
 
867
1640
 
868
1641
 
@@ -887,7 +1660,7 @@ var prevOverflow = '';
887
1660
  /* harmony default export */ var mainvue_type_script_lang_js = ({
888
1661
  name: 'ElImage',
889
1662
 
890
- mixins: [locale_default.a],
1663
+ mixins: [locale["a" /* default */]],
891
1664
  inheritAttrs: false,
892
1665
 
893
1666
  components: {
@@ -1014,7 +1787,7 @@ var prevOverflow = '';
1014
1787
  this.$emit('error', e);
1015
1788
  },
1016
1789
  handleLazyLoad: function handleLazyLoad() {
1017
- if (Object(dom_["isInContainer"])(this.$el, this._scrollContainer)) {
1790
+ if (Object(dom["e" /* isInContainer */])(this.$el, this._scrollContainer)) {
1018
1791
  this.show = true;
1019
1792
  this.removeLazyLoadListener();
1020
1793
  }
@@ -1026,18 +1799,18 @@ var prevOverflow = '';
1026
1799
 
1027
1800
  var _scrollContainer = null;
1028
1801
 
1029
- if (Object(types_["isHtmlElement"])(scrollContainer)) {
1802
+ if (Object(types["c" /* isHtmlElement */])(scrollContainer)) {
1030
1803
  _scrollContainer = scrollContainer;
1031
- } else if (Object(types_["isString"])(scrollContainer)) {
1804
+ } else if (Object(types["e" /* isString */])(scrollContainer)) {
1032
1805
  _scrollContainer = document.querySelector(scrollContainer);
1033
1806
  } else {
1034
- _scrollContainer = Object(dom_["getScrollContainer"])(this.$el);
1807
+ _scrollContainer = Object(dom["b" /* getScrollContainer */])(this.$el);
1035
1808
  }
1036
1809
 
1037
1810
  if (_scrollContainer) {
1038
1811
  this._scrollContainer = _scrollContainer;
1039
1812
  this._lazyLoadHandler = throttle_default()(200, this.handleLazyLoad);
1040
- Object(dom_["on"])(_scrollContainer, 'scroll', this._lazyLoadHandler);
1813
+ Object(dom["g" /* on */])(_scrollContainer, 'scroll', this._lazyLoadHandler);
1041
1814
  this.handleLazyLoad();
1042
1815
  }
1043
1816
  },
@@ -1048,13 +1821,13 @@ var prevOverflow = '';
1048
1821
 
1049
1822
  if (this.$isServer || !_scrollContainer || !_lazyLoadHandler) return;
1050
1823
 
1051
- Object(dom_["off"])(_scrollContainer, 'scroll', _lazyLoadHandler);
1824
+ Object(dom["f" /* off */])(_scrollContainer, 'scroll', _lazyLoadHandler);
1052
1825
  this._scrollContainer = null;
1053
1826
  this._lazyLoadHandler = null;
1054
1827
  },
1055
1828
 
1056
- /**
1057
- * simulate object-fit behavior to compatible with IE11 and other browsers which not support object-fit
1829
+ /**
1830
+ * simulate object-fit behavior to compatible with IE11 and other browsers which not support object-fit
1058
1831
  */
1059
1832
  getImageStyle: function getImageStyle(fit) {
1060
1833
  var imageWidth = this.imageWidth,
@@ -1133,6 +1906,481 @@ main.install = function (Vue) {
1133
1906
 
1134
1907
  /* harmony default export */ var packages_image = __webpack_exports__["default"] = (main);
1135
1908
 
1909
+ /***/ }),
1910
+
1911
+ /***/ 8:
1912
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1913
+
1914
+ "use strict";
1915
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1916
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
1917
+
1918
+
1919
+ var scrollBarWidth = void 0;
1920
+
1921
+ /* harmony default export */ __webpack_exports__["a"] = (function () {
1922
+ if (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) return 0;
1923
+ if (scrollBarWidth !== undefined) return scrollBarWidth;
1924
+
1925
+ var outer = document.createElement('div');
1926
+ outer.className = 'el-scrollbar__wrap';
1927
+ outer.style.visibility = 'hidden';
1928
+ outer.style.width = '100px';
1929
+ outer.style.position = 'absolute';
1930
+ outer.style.top = '-9999px';
1931
+ document.body.appendChild(outer);
1932
+
1933
+ var widthNoScroll = outer.offsetWidth;
1934
+ outer.style.overflow = 'scroll';
1935
+
1936
+ var inner = document.createElement('div');
1937
+ inner.style.width = '100%';
1938
+ outer.appendChild(inner);
1939
+
1940
+ var widthWithScroll = inner.offsetWidth;
1941
+ outer.parentNode.removeChild(outer);
1942
+ scrollBarWidth = widthNoScroll - widthWithScroll;
1943
+
1944
+ return scrollBarWidth;
1945
+ });;
1946
+
1947
+ /***/ }),
1948
+
1949
+ /***/ 9:
1950
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1951
+
1952
+ "use strict";
1953
+
1954
+ // EXPORTS
1955
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ popup_manager; });
1956
+
1957
+ // EXTERNAL MODULE: external "vue"
1958
+ var external_vue_ = __webpack_require__(0);
1959
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
1960
+
1961
+ // EXTERNAL MODULE: ./src/utils/merge.js
1962
+ var merge = __webpack_require__(7);
1963
+
1964
+ // EXTERNAL MODULE: ./src/utils/dom.js
1965
+ var utils_dom = __webpack_require__(1);
1966
+
1967
+ // CONCATENATED MODULE: ./src/utils/popup/popup-manager.js
1968
+
1969
+
1970
+
1971
+ var hasModal = false;
1972
+ var hasInitZIndex = false;
1973
+ var popup_manager_zIndex = void 0;
1974
+
1975
+ var popup_manager_getModal = function getModal() {
1976
+ if (external_vue_default.a.prototype.$isServer) return;
1977
+ var modalDom = PopupManager.modalDom;
1978
+ if (modalDom) {
1979
+ hasModal = true;
1980
+ } else {
1981
+ hasModal = false;
1982
+ modalDom = document.createElement('div');
1983
+ PopupManager.modalDom = modalDom;
1984
+
1985
+ modalDom.addEventListener('touchmove', function (event) {
1986
+ event.preventDefault();
1987
+ event.stopPropagation();
1988
+ });
1989
+
1990
+ modalDom.addEventListener('click', function () {
1991
+ PopupManager.doOnModalClick && PopupManager.doOnModalClick();
1992
+ });
1993
+ }
1994
+
1995
+ return modalDom;
1996
+ };
1997
+
1998
+ var instances = {};
1999
+
2000
+ var PopupManager = {
2001
+ modalFade: true,
2002
+
2003
+ getInstance: function getInstance(id) {
2004
+ return instances[id];
2005
+ },
2006
+
2007
+ register: function register(id, instance) {
2008
+ if (id && instance) {
2009
+ instances[id] = instance;
2010
+ }
2011
+ },
2012
+
2013
+ deregister: function deregister(id) {
2014
+ if (id) {
2015
+ instances[id] = null;
2016
+ delete instances[id];
2017
+ }
2018
+ },
2019
+
2020
+ nextZIndex: function nextZIndex() {
2021
+ return PopupManager.zIndex++;
2022
+ },
2023
+
2024
+ modalStack: [],
2025
+
2026
+ doOnModalClick: function doOnModalClick() {
2027
+ var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
2028
+ if (!topItem) return;
2029
+
2030
+ var instance = PopupManager.getInstance(topItem.id);
2031
+ if (instance && instance.closeOnClickModal) {
2032
+ instance.close();
2033
+ }
2034
+ },
2035
+
2036
+ openModal: function openModal(id, zIndex, dom, modalClass, modalFade) {
2037
+ if (external_vue_default.a.prototype.$isServer) return;
2038
+ if (!id || zIndex === undefined) return;
2039
+ this.modalFade = modalFade;
2040
+
2041
+ var modalStack = this.modalStack;
2042
+
2043
+ for (var i = 0, j = modalStack.length; i < j; i++) {
2044
+ var item = modalStack[i];
2045
+ if (item.id === id) {
2046
+ return;
2047
+ }
2048
+ }
2049
+
2050
+ var modalDom = popup_manager_getModal();
2051
+
2052
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal');
2053
+ if (this.modalFade && !hasModal) {
2054
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-enter');
2055
+ }
2056
+ if (modalClass) {
2057
+ var classArr = modalClass.trim().split(/\s+/);
2058
+ classArr.forEach(function (item) {
2059
+ return Object(utils_dom["a" /* addClass */])(modalDom, item);
2060
+ });
2061
+ }
2062
+ setTimeout(function () {
2063
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-enter');
2064
+ }, 200);
2065
+
2066
+ if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
2067
+ dom.parentNode.appendChild(modalDom);
2068
+ } else {
2069
+ document.body.appendChild(modalDom);
2070
+ }
2071
+
2072
+ if (zIndex) {
2073
+ modalDom.style.zIndex = zIndex;
2074
+ }
2075
+ modalDom.tabIndex = 0;
2076
+ modalDom.style.display = '';
2077
+
2078
+ this.modalStack.push({ id: id, zIndex: zIndex, modalClass: modalClass });
2079
+ },
2080
+
2081
+ closeModal: function closeModal(id) {
2082
+ var modalStack = this.modalStack;
2083
+ var modalDom = popup_manager_getModal();
2084
+
2085
+ if (modalStack.length > 0) {
2086
+ var topItem = modalStack[modalStack.length - 1];
2087
+ if (topItem.id === id) {
2088
+ if (topItem.modalClass) {
2089
+ var classArr = topItem.modalClass.trim().split(/\s+/);
2090
+ classArr.forEach(function (item) {
2091
+ return Object(utils_dom["i" /* removeClass */])(modalDom, item);
2092
+ });
2093
+ }
2094
+
2095
+ modalStack.pop();
2096
+ if (modalStack.length > 0) {
2097
+ modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
2098
+ }
2099
+ } else {
2100
+ for (var i = modalStack.length - 1; i >= 0; i--) {
2101
+ if (modalStack[i].id === id) {
2102
+ modalStack.splice(i, 1);
2103
+ break;
2104
+ }
2105
+ }
2106
+ }
2107
+ }
2108
+
2109
+ if (modalStack.length === 0) {
2110
+ if (this.modalFade) {
2111
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-leave');
2112
+ }
2113
+ setTimeout(function () {
2114
+ if (modalStack.length === 0) {
2115
+ if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
2116
+ modalDom.style.display = 'none';
2117
+ PopupManager.modalDom = undefined;
2118
+ }
2119
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-leave');
2120
+ }, 200);
2121
+ }
2122
+ }
2123
+ };
2124
+
2125
+ Object.defineProperty(PopupManager, 'zIndex', {
2126
+ configurable: true,
2127
+ get: function get() {
2128
+ if (!hasInitZIndex) {
2129
+ popup_manager_zIndex = popup_manager_zIndex || (external_vue_default.a.prototype.$ELEMENT || {}).zIndex || 2000;
2130
+ hasInitZIndex = true;
2131
+ }
2132
+ return popup_manager_zIndex;
2133
+ },
2134
+ set: function set(value) {
2135
+ popup_manager_zIndex = value;
2136
+ }
2137
+ });
2138
+
2139
+ var popup_manager_getTopPopup = function getTopPopup() {
2140
+ if (external_vue_default.a.prototype.$isServer) return;
2141
+ if (PopupManager.modalStack.length > 0) {
2142
+ var topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];
2143
+ if (!topPopup) return;
2144
+ var instance = PopupManager.getInstance(topPopup.id);
2145
+
2146
+ return instance;
2147
+ }
2148
+ };
2149
+
2150
+ if (!external_vue_default.a.prototype.$isServer) {
2151
+ // handle `esc` key when the popup is shown
2152
+ window.addEventListener('keydown', function (event) {
2153
+ if (event.keyCode === 27) {
2154
+ var topPopup = popup_manager_getTopPopup();
2155
+
2156
+ if (topPopup && topPopup.closeOnPressEscape) {
2157
+ topPopup.handleClose ? topPopup.handleClose() : topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close();
2158
+ }
2159
+ }
2160
+ });
2161
+ }
2162
+
2163
+ /* harmony default export */ var popup_manager = (PopupManager);
2164
+ // EXTERNAL MODULE: ./src/utils/scrollbar-width.js
2165
+ var scrollbar_width = __webpack_require__(8);
2166
+
2167
+ // CONCATENATED MODULE: ./src/utils/popup/index.js
2168
+
2169
+
2170
+
2171
+
2172
+
2173
+
2174
+ var idSeed = 1;
2175
+
2176
+ var scrollBarWidth = void 0;
2177
+
2178
+ /* harmony default export */ var popup = __webpack_exports__["b"] = ({
2179
+ props: {
2180
+ visible: {
2181
+ type: Boolean,
2182
+ default: false
2183
+ },
2184
+ openDelay: {},
2185
+ closeDelay: {},
2186
+ zIndex: {},
2187
+ modal: {
2188
+ type: Boolean,
2189
+ default: false
2190
+ },
2191
+ modalFade: {
2192
+ type: Boolean,
2193
+ default: true
2194
+ },
2195
+ modalClass: {},
2196
+ modalAppendToBody: {
2197
+ type: Boolean,
2198
+ default: false
2199
+ },
2200
+ lockScroll: {
2201
+ type: Boolean,
2202
+ default: true
2203
+ },
2204
+ closeOnPressEscape: {
2205
+ type: Boolean,
2206
+ default: false
2207
+ },
2208
+ closeOnClickModal: {
2209
+ type: Boolean,
2210
+ default: false
2211
+ }
2212
+ },
2213
+
2214
+ beforeMount: function beforeMount() {
2215
+ this._popupId = 'popup-' + idSeed++;
2216
+ popup_manager.register(this._popupId, this);
2217
+ },
2218
+ beforeDestroy: function beforeDestroy() {
2219
+ popup_manager.deregister(this._popupId);
2220
+ popup_manager.closeModal(this._popupId);
2221
+
2222
+ this.restoreBodyStyle();
2223
+ },
2224
+ data: function data() {
2225
+ return {
2226
+ opened: false,
2227
+ bodyPaddingRight: null,
2228
+ computedBodyPaddingRight: 0,
2229
+ withoutHiddenClass: true,
2230
+ rendered: false
2231
+ };
2232
+ },
2233
+
2234
+
2235
+ watch: {
2236
+ visible: function visible(val) {
2237
+ var _this = this;
2238
+
2239
+ if (val) {
2240
+ if (this._opening) return;
2241
+ if (!this.rendered) {
2242
+ this.rendered = true;
2243
+ external_vue_default.a.nextTick(function () {
2244
+ _this.open();
2245
+ });
2246
+ } else {
2247
+ this.open();
2248
+ }
2249
+ } else {
2250
+ this.close();
2251
+ }
2252
+ }
2253
+ },
2254
+
2255
+ methods: {
2256
+ open: function open(options) {
2257
+ var _this2 = this;
2258
+
2259
+ if (!this.rendered) {
2260
+ this.rendered = true;
2261
+ }
2262
+
2263
+ var props = Object(merge["a" /* default */])({}, this.$props || this, options);
2264
+
2265
+ if (this._closeTimer) {
2266
+ clearTimeout(this._closeTimer);
2267
+ this._closeTimer = null;
2268
+ }
2269
+ clearTimeout(this._openTimer);
2270
+
2271
+ var openDelay = Number(props.openDelay);
2272
+ if (openDelay > 0) {
2273
+ this._openTimer = setTimeout(function () {
2274
+ _this2._openTimer = null;
2275
+ _this2.doOpen(props);
2276
+ }, openDelay);
2277
+ } else {
2278
+ this.doOpen(props);
2279
+ }
2280
+ },
2281
+ doOpen: function doOpen(props) {
2282
+ if (this.$isServer) return;
2283
+ if (this.willOpen && !this.willOpen()) return;
2284
+ if (this.opened) return;
2285
+
2286
+ this._opening = true;
2287
+
2288
+ var dom = this.$el;
2289
+
2290
+ var modal = props.modal;
2291
+
2292
+ var zIndex = props.zIndex;
2293
+ if (zIndex) {
2294
+ popup_manager.zIndex = zIndex;
2295
+ }
2296
+
2297
+ if (modal) {
2298
+ if (this._closing) {
2299
+ popup_manager.closeModal(this._popupId);
2300
+ this._closing = false;
2301
+ }
2302
+ popup_manager.openModal(this._popupId, popup_manager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);
2303
+ if (props.lockScroll) {
2304
+ this.withoutHiddenClass = !Object(utils_dom["d" /* hasClass */])(document.body, 'el-popup-parent--hidden');
2305
+ if (this.withoutHiddenClass) {
2306
+ this.bodyPaddingRight = document.body.style.paddingRight;
2307
+ this.computedBodyPaddingRight = parseInt(Object(utils_dom["c" /* getStyle */])(document.body, 'paddingRight'), 10);
2308
+ }
2309
+ scrollBarWidth = Object(scrollbar_width["a" /* default */])();
2310
+ var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
2311
+ var bodyOverflowY = Object(utils_dom["c" /* getStyle */])(document.body, 'overflowY');
2312
+ if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {
2313
+ document.body.style.paddingRight = this.computedBodyPaddingRight + scrollBarWidth + 'px';
2314
+ }
2315
+ Object(utils_dom["a" /* addClass */])(document.body, 'el-popup-parent--hidden');
2316
+ }
2317
+ }
2318
+
2319
+ if (getComputedStyle(dom).position === 'static') {
2320
+ dom.style.position = 'absolute';
2321
+ }
2322
+
2323
+ dom.style.zIndex = popup_manager.nextZIndex();
2324
+ this.opened = true;
2325
+
2326
+ this.onOpen && this.onOpen();
2327
+
2328
+ this.doAfterOpen();
2329
+ },
2330
+ doAfterOpen: function doAfterOpen() {
2331
+ this._opening = false;
2332
+ },
2333
+ close: function close() {
2334
+ var _this3 = this;
2335
+
2336
+ if (this.willClose && !this.willClose()) return;
2337
+
2338
+ if (this._openTimer !== null) {
2339
+ clearTimeout(this._openTimer);
2340
+ this._openTimer = null;
2341
+ }
2342
+ clearTimeout(this._closeTimer);
2343
+
2344
+ var closeDelay = Number(this.closeDelay);
2345
+
2346
+ if (closeDelay > 0) {
2347
+ this._closeTimer = setTimeout(function () {
2348
+ _this3._closeTimer = null;
2349
+ _this3.doClose();
2350
+ }, closeDelay);
2351
+ } else {
2352
+ this.doClose();
2353
+ }
2354
+ },
2355
+ doClose: function doClose() {
2356
+ this._closing = true;
2357
+
2358
+ this.onClose && this.onClose();
2359
+
2360
+ if (this.lockScroll) {
2361
+ setTimeout(this.restoreBodyStyle, 200);
2362
+ }
2363
+
2364
+ this.opened = false;
2365
+
2366
+ this.doAfterClose();
2367
+ },
2368
+ doAfterClose: function doAfterClose() {
2369
+ popup_manager.closeModal(this._popupId);
2370
+ this._closing = false;
2371
+ },
2372
+ restoreBodyStyle: function restoreBodyStyle() {
2373
+ if (this.modal && this.withoutHiddenClass) {
2374
+ document.body.style.paddingRight = this.bodyPaddingRight;
2375
+ Object(utils_dom["i" /* removeClass */])(document.body, 'el-popup-parent--hidden');
2376
+ }
2377
+ this.withoutHiddenClass = true;
2378
+ }
2379
+ }
2380
+ });
2381
+
2382
+
2383
+
1136
2384
  /***/ })
1137
2385
 
1138
2386
  /******/ });