iov-design 2.15.45 → 2.15.47

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 (141) hide show
  1. package/lib/alert.js +2 -2
  2. package/lib/aside.js +2 -2
  3. package/lib/autocomplete.js +2 -2
  4. package/lib/avatar.js +2 -2
  5. package/lib/backtop.js +2 -2
  6. package/lib/badge.js +2 -2
  7. package/lib/breadcrumb-item.js +2 -2
  8. package/lib/breadcrumb.js +2 -2
  9. package/lib/button-group.js +2 -2
  10. package/lib/button.js +2 -2
  11. package/lib/calendar.js +4 -4
  12. package/lib/card.js +2 -2
  13. package/lib/carousel-item.js +2 -2
  14. package/lib/carousel.js +16 -16
  15. package/lib/cascader-panel.js +6 -6
  16. package/lib/cascader.js +96 -96
  17. package/lib/checkbox-button.js +2 -2
  18. package/lib/checkbox-group.js +2 -2
  19. package/lib/checkbox.js +2 -2
  20. package/lib/col.js +2 -2
  21. package/lib/collapse-item.js +23 -23
  22. package/lib/collapse.js +2 -2
  23. package/lib/color-picker.js +2 -2
  24. package/lib/container.js +2 -2
  25. package/lib/date-picker.js +70 -91
  26. package/lib/descriptions-item.js +2 -2
  27. package/lib/descriptions.js +2 -2
  28. package/lib/dialog.js +58 -12
  29. package/lib/divider.js +2 -2
  30. package/lib/dropdown-item.js +2 -2
  31. package/lib/dropdown-menu.js +2 -2
  32. package/lib/dropdown.js +11 -11
  33. package/lib/empty.js +13 -10
  34. package/lib/footer.js +2 -2
  35. package/lib/form-item.js +4 -4
  36. package/lib/form.js +2 -2
  37. package/lib/header.js +2 -2
  38. package/lib/icon.js +2 -2
  39. package/lib/image.js +9 -9
  40. package/lib/index.js +1 -1
  41. package/lib/infinite-scroll.js +2 -2
  42. package/lib/input-number.js +62 -62
  43. package/lib/iov-design.common.js +1027 -173
  44. package/lib/link.js +2 -2
  45. package/lib/loading.js +11 -11
  46. package/lib/main.js +2 -2
  47. package/lib/menu-item-group.js +2 -2
  48. package/lib/menu-item.js +65 -65
  49. package/lib/menu.js +2 -2
  50. package/lib/message-box.js +11 -11
  51. package/lib/message.js +15 -15
  52. package/lib/notification.js +9 -9
  53. package/lib/option-group.js +2 -2
  54. package/lib/option.js +4 -4
  55. package/lib/page-header.js +2 -2
  56. package/lib/pagination.js +6 -6
  57. package/lib/popconfirm.js +24 -24
  58. package/lib/popover.js +9 -9
  59. package/lib/progress.js +2 -2
  60. package/lib/radio-button.js +2 -2
  61. package/lib/radio-group.js +2 -2
  62. package/lib/radio.js +9 -9
  63. package/lib/rate.js +23 -23
  64. package/lib/result.js +2 -2
  65. package/lib/row.js +2 -2
  66. package/lib/scrollbar.js +4 -4
  67. package/lib/select.js +18 -18
  68. package/lib/skeleton-item.js +2 -2
  69. package/lib/skeleton.js +2 -2
  70. package/lib/slider.js +4 -4
  71. package/lib/spinner.js +2 -2
  72. package/lib/static/excel.f44318e.png +0 -0
  73. package/lib/static/excel.f44318e0.png +0 -0
  74. package/lib/static/file.4ed3551.png +0 -0
  75. package/lib/static/file.4ed35511.png +0 -0
  76. package/lib/static/img.cd179e5.png +0 -0
  77. package/lib/static/img.cd179e5b.png +0 -0
  78. package/lib/static/pdf.79cb57f.png +0 -0
  79. package/lib/static/pdf.79cb57f8.png +0 -0
  80. package/lib/static/ppt.eed4918.png +0 -0
  81. package/lib/static/ppt.eed4918e.png +0 -0
  82. package/lib/static/word.35070ef.png +0 -0
  83. package/lib/static/word.35070ef0.png +0 -0
  84. package/lib/static/zip.dca21a8.png +0 -0
  85. package/lib/static/zip.dca21a88.png +0 -0
  86. package/lib/statistic.js +4 -4
  87. package/lib/step.js +2 -2
  88. package/lib/steps.js +9 -9
  89. package/lib/submenu.js +4 -4
  90. package/lib/switch.js +2 -2
  91. package/lib/tab-pane.js +2 -2
  92. package/lib/table-column.js +2 -2
  93. package/lib/table.js +23 -15
  94. package/lib/tabs.js +2 -2
  95. package/lib/tag.js +2 -2
  96. package/lib/theme-chalk/alert.css +1 -1
  97. package/lib/theme-chalk/base.css +1 -1
  98. package/lib/theme-chalk/dialog.css +1 -1
  99. package/lib/theme-chalk/index.css +1 -1
  100. package/lib/theme-chalk/iovfont.css +1 -1
  101. package/lib/theme-chalk/message.css +1 -1
  102. package/lib/theme-chalk/notification.css +1 -1
  103. package/lib/theme-chalk/upload.css +1 -1
  104. package/lib/time-picker.js +12 -12
  105. package/lib/time-select.js +9 -9
  106. package/lib/timeline-item.js +2 -2
  107. package/lib/timeline.js +2 -2
  108. package/lib/tooltip.js +2 -2
  109. package/lib/transfer.js +11 -11
  110. package/lib/tree.js +2 -2
  111. package/lib/upload.js +920 -119
  112. package/package.json +1 -1
  113. package/packages/dialog/src/component.vue +44 -4
  114. package/packages/empty/src/index.vue +4 -1
  115. package/packages/message/src/main.js +1 -1
  116. package/packages/message/src/main.vue +6 -6
  117. package/packages/tabs/src/tabs.vue +196 -196
  118. package/packages/theme-chalk/src/alert.scss +21 -18
  119. package/packages/theme-chalk/src/assets/img_fail.png +0 -0
  120. package/packages/theme-chalk/src/assets/img_placeholder.png +0 -0
  121. package/packages/theme-chalk/src/common/var.scss +1 -34
  122. package/packages/theme-chalk/src/dialog.scss +20 -6
  123. package/packages/theme-chalk/src/iovfont.scss +3 -3
  124. package/packages/theme-chalk/src/message-box.scss +207 -207
  125. package/packages/theme-chalk/src/message.scss +28 -37
  126. package/packages/theme-chalk/src/tabs.scss +686 -686
  127. package/packages/theme-chalk/src/upload.scss +568 -603
  128. package/packages/upload/src/assets/excel.png +0 -0
  129. package/packages/upload/src/assets/file.png +0 -0
  130. package/packages/upload/src/assets/img.png +0 -0
  131. package/packages/upload/src/assets/pdf.png +0 -0
  132. package/packages/upload/src/assets/ppt.png +0 -0
  133. package/packages/upload/src/assets/word.png +0 -0
  134. package/packages/upload/src/assets/zip.png +0 -0
  135. package/packages/upload/src/index.vue +73 -5
  136. package/packages/upload/src/upload-file.vue +90 -0
  137. package/packages/upload/src/upload-list.vue +52 -50
  138. package/packages/upload/src/upload-picture.vue +90 -0
  139. package/packages/upload/src/upload.vue +231 -211
  140. package/packages/upload/src/utils.js +30 -0
  141. package/src/index.js +1 -1
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 47);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 48);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ([
@@ -113,13 +113,13 @@ module.exports = require("iov-design/lib/mixins/emitter");
113
113
  /* 4 */
114
114
  /***/ (function(module, exports) {
115
115
 
116
- module.exports = require("iov-design/lib/mixins/locale");
116
+ module.exports = require("iov-design/lib/utils/vue-popper");
117
117
 
118
118
  /***/ }),
119
119
  /* 5 */
120
120
  /***/ (function(module, exports) {
121
121
 
122
- module.exports = require("iov-design/lib/utils/vue-popper");
122
+ module.exports = require("iov-design/lib/mixins/locale");
123
123
 
124
124
  /***/ }),
125
125
  /* 6 */
@@ -233,73 +233,73 @@ module.exports = require("iov-design/lib/mixins/focus");
233
233
  /* 24 */
234
234
  /***/ (function(module, exports) {
235
235
 
236
- module.exports = require("babel-helper-vue-jsx-merge-props");
236
+ module.exports = require("iov-design/lib/progress");
237
237
 
238
238
  /***/ }),
239
239
  /* 25 */
240
240
  /***/ (function(module, exports) {
241
241
 
242
- module.exports = require("throttle-debounce/throttle");
242
+ module.exports = require("babel-helper-vue-jsx-merge-props");
243
243
 
244
244
  /***/ }),
245
245
  /* 26 */
246
246
  /***/ (function(module, exports) {
247
247
 
248
- module.exports = require("iov-design/lib/tooltip");
248
+ module.exports = require("throttle-debounce/throttle");
249
249
 
250
250
  /***/ }),
251
251
  /* 27 */
252
252
  /***/ (function(module, exports) {
253
253
 
254
- module.exports = require("iov-design/lib/utils/scroll-into-view");
254
+ module.exports = require("iov-design/lib/tooltip");
255
255
 
256
256
  /***/ }),
257
257
  /* 28 */
258
258
  /***/ (function(module, exports) {
259
259
 
260
- module.exports = require("iov-design/lib/utils/lodash");
260
+ module.exports = require("iov-design/lib/utils/scroll-into-view");
261
261
 
262
262
  /***/ }),
263
263
  /* 29 */
264
264
  /***/ (function(module, exports) {
265
265
 
266
- module.exports = require("iov-design/lib/button-group");
266
+ module.exports = require("iov-design/lib/utils/lodash");
267
267
 
268
268
  /***/ }),
269
269
  /* 30 */
270
270
  /***/ (function(module, exports) {
271
271
 
272
- module.exports = require("iov-design/lib/tag");
272
+ module.exports = require("iov-design/lib/button-group");
273
273
 
274
274
  /***/ }),
275
275
  /* 31 */
276
276
  /***/ (function(module, exports) {
277
277
 
278
- module.exports = require("iov-design/lib/empty");
278
+ module.exports = require("iov-design/lib/tag");
279
279
 
280
280
  /***/ }),
281
281
  /* 32 */
282
282
  /***/ (function(module, exports) {
283
283
 
284
- module.exports = require("iov-design/lib/utils/scrollbar-width");
284
+ module.exports = require("iov-design/lib/empty");
285
285
 
286
286
  /***/ }),
287
287
  /* 33 */
288
288
  /***/ (function(module, exports) {
289
289
 
290
- module.exports = require("iov-design/lib/checkbox-group");
290
+ module.exports = require("iov-design/lib/utils/scrollbar-width");
291
291
 
292
292
  /***/ }),
293
293
  /* 34 */
294
294
  /***/ (function(module, exports) {
295
295
 
296
- module.exports = require("iov-design/lib/utils/after-leave");
296
+ module.exports = require("iov-design/lib/checkbox-group");
297
297
 
298
298
  /***/ }),
299
299
  /* 35 */
300
300
  /***/ (function(module, exports) {
301
301
 
302
- module.exports = require("iov-design/lib/progress");
302
+ module.exports = require("iov-design/lib/utils/after-leave");
303
303
 
304
304
  /***/ }),
305
305
  /* 36 */
@@ -309,73 +309,115 @@ module.exports = require("iov-design/lib/utils/aria-utils");
309
309
 
310
310
  /***/ }),
311
311
  /* 37 */
312
+ /***/ (function(module, exports, __webpack_require__) {
313
+
314
+ module.exports = __webpack_require__.p + "static/zip.dca21a8.png";
315
+
316
+ /***/ }),
317
+ /* 38 */
312
318
  /***/ (function(module, exports) {
313
319
 
314
320
  module.exports = require("throttle-debounce");
315
321
 
316
322
  /***/ }),
317
- /* 38 */
323
+ /* 39 */
318
324
  /***/ (function(module, exports) {
319
325
 
320
326
  module.exports = require("iov-design/lib/select");
321
327
 
322
328
  /***/ }),
323
- /* 39 */
329
+ /* 40 */
324
330
  /***/ (function(module, exports) {
325
331
 
326
332
  module.exports = require("iov-design/lib/option");
327
333
 
328
334
  /***/ }),
329
- /* 40 */
335
+ /* 41 */
330
336
  /***/ (function(module, exports) {
331
337
 
332
338
  module.exports = require("normalize-wheel");
333
339
 
334
340
  /***/ }),
335
- /* 41 */
341
+ /* 42 */
336
342
  /***/ (function(module, exports) {
337
343
 
338
344
  module.exports = require("iov-design/lib/utils/aria-dialog");
339
345
 
340
346
  /***/ }),
341
- /* 42 */
347
+ /* 43 */
342
348
  /***/ (function(module, exports) {
343
349
 
344
350
  module.exports = require("async-validator");
345
351
 
346
352
  /***/ }),
347
- /* 43 */
353
+ /* 44 */
348
354
  /***/ (function(module, exports) {
349
355
 
350
356
  module.exports = require("iov-design/lib/input-number");
351
357
 
352
358
  /***/ }),
353
- /* 44 */
359
+ /* 45 */
354
360
  /***/ (function(module, exports) {
355
361
 
356
362
  module.exports = require("iov-design/lib/cascader-panel");
357
363
 
358
364
  /***/ }),
359
- /* 45 */
365
+ /* 46 */
360
366
  /***/ (function(module, exports) {
361
367
 
362
368
  module.exports = require("iov-design/lib/radio");
363
369
 
364
370
  /***/ }),
365
- /* 46 */
371
+ /* 47 */
366
372
  /***/ (function(module, exports) {
367
373
 
368
374
  module.exports = require("iov-design/lib/popover");
369
375
 
370
376
  /***/ }),
371
- /* 47 */
377
+ /* 48 */
372
378
  /***/ (function(module, exports, __webpack_require__) {
373
379
 
374
- module.exports = __webpack_require__(48);
380
+ module.exports = __webpack_require__(55);
375
381
 
376
382
 
377
383
  /***/ }),
378
- /* 48 */
384
+ /* 49 */
385
+ /***/ (function(module, exports, __webpack_require__) {
386
+
387
+ module.exports = __webpack_require__.p + "static/img.cd179e5.png";
388
+
389
+ /***/ }),
390
+ /* 50 */
391
+ /***/ (function(module, exports, __webpack_require__) {
392
+
393
+ module.exports = __webpack_require__.p + "static/pdf.79cb57f.png";
394
+
395
+ /***/ }),
396
+ /* 51 */
397
+ /***/ (function(module, exports, __webpack_require__) {
398
+
399
+ module.exports = __webpack_require__.p + "static/excel.f44318e.png";
400
+
401
+ /***/ }),
402
+ /* 52 */
403
+ /***/ (function(module, exports, __webpack_require__) {
404
+
405
+ module.exports = __webpack_require__.p + "static/ppt.eed4918.png";
406
+
407
+ /***/ }),
408
+ /* 53 */
409
+ /***/ (function(module, exports, __webpack_require__) {
410
+
411
+ module.exports = __webpack_require__.p + "static/word.35070ef.png";
412
+
413
+ /***/ }),
414
+ /* 54 */
415
+ /***/ (function(module, exports, __webpack_require__) {
416
+
417
+ module.exports = __webpack_require__.p + "static/file.4ed3551.png";
418
+
419
+ /***/ }),
420
+ /* 55 */
379
421
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
380
422
 
381
423
  "use strict";
@@ -744,11 +786,11 @@ if (false) { var api; }
744
786
  component.options.__file = "packages/pagination/src/pager.vue"
745
787
  /* harmony default export */ var pager = (component.exports);
746
788
  // EXTERNAL MODULE: external "iov-design/lib/select"
747
- var select_ = __webpack_require__(38);
789
+ var select_ = __webpack_require__(39);
748
790
  var select_default = /*#__PURE__*/__webpack_require__.n(select_);
749
791
 
750
792
  // EXTERNAL MODULE: external "iov-design/lib/option"
751
- var option_ = __webpack_require__(39);
793
+ var option_ = __webpack_require__(40);
752
794
  var option_default = /*#__PURE__*/__webpack_require__.n(option_);
753
795
 
754
796
  // EXTERNAL MODULE: external "iov-design/lib/input"
@@ -756,7 +798,7 @@ var input_ = __webpack_require__(8);
756
798
  var input_default = /*#__PURE__*/__webpack_require__.n(input_);
757
799
 
758
800
  // EXTERNAL MODULE: external "iov-design/lib/mixins/locale"
759
- var locale_ = __webpack_require__(4);
801
+ var locale_ = __webpack_require__(5);
760
802
  var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
761
803
 
762
804
  // EXTERNAL MODULE: external "iov-design/lib/utils/util"
@@ -1275,6 +1317,7 @@ var componentvue_type_template_id_60140e62_render = function() {
1275
1317
  ? _c(
1276
1318
  "div",
1277
1319
  {
1320
+ ref: "body",
1278
1321
  staticClass: "el-dialog__body",
1279
1322
  class:
1280
1323
  _vm.type === "form"
@@ -1288,7 +1331,7 @@ var componentvue_type_template_id_60140e62_render = function() {
1288
1331
  _vm.$slots.footer
1289
1332
  ? _c(
1290
1333
  "div",
1291
- { staticClass: "el-dialog__footer" },
1334
+ { ref: "footer", staticClass: "el-dialog__footer" },
1292
1335
  [_vm._t("footer")],
1293
1336
  2
1294
1337
  )
@@ -1424,7 +1467,7 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
1424
1467
 
1425
1468
  top: {
1426
1469
  type: String,
1427
- default: '15vh'
1470
+ default: '50%'
1428
1471
  },
1429
1472
  beforeClose: Function,
1430
1473
  center: {
@@ -1473,7 +1516,7 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
1473
1516
  style: function style() {
1474
1517
  var style = {};
1475
1518
  if (!this.fullscreen) {
1476
- style.marginTop = this.top;
1519
+ style.top = this.top;
1477
1520
  if (this.width) {
1478
1521
  style.width = this.width;
1479
1522
  }
@@ -1513,10 +1556,52 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
1513
1556
  this.broadcast('ElDropdownMenu', 'updatePopper');
1514
1557
  },
1515
1558
  afterEnter: function afterEnter() {
1559
+ this.onDialogOpened();
1516
1560
  this.$emit('opened');
1517
1561
  },
1518
1562
  afterLeave: function afterLeave() {
1519
1563
  this.$emit('closed');
1564
+ },
1565
+ onDialogOpened: function onDialogOpened() {
1566
+ var _this2 = this;
1567
+
1568
+ this.$nextTick(function () {
1569
+ _this2.checkOverflow();
1570
+ _this2.observeContentChanges();
1571
+ });
1572
+ },
1573
+
1574
+
1575
+ // 检查内容是否超过body高度
1576
+ checkOverflow: function checkOverflow() {
1577
+ var body = this.$refs.body;
1578
+ var footer = this.$refs.footer;
1579
+ if (!body || !footer) return;
1580
+ if (body.scrollHeight > body.clientHeight) {
1581
+ footer.classList.add('el-dialog__footer--shadow');
1582
+ } else {
1583
+ footer.classList.remove('el-dialog__footer--shadow');
1584
+ }
1585
+ },
1586
+
1587
+ // 监听节点变化
1588
+ observeContentChanges: function observeContentChanges() {
1589
+ var _this3 = this;
1590
+
1591
+ var body = this.$refs.body;
1592
+ if (!body) return;
1593
+ if (this._mutationObserver) {
1594
+ this._mutationObserver.disconnect();
1595
+ }
1596
+ this._mutationObserver = new MutationObserver(function () {
1597
+ _this3.checkOverflow();
1598
+ });
1599
+ // 监听子节点及文本节点的内容变化
1600
+ this._mutationObserver.observe(body, {
1601
+ childList: true,
1602
+ subtree: true,
1603
+ characterData: true
1604
+ });
1520
1605
  }
1521
1606
  },
1522
1607
 
@@ -1534,6 +1619,9 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
1534
1619
  if (this.appendToBody && this.$el && this.$el.parentNode) {
1535
1620
  this.$el.parentNode.removeChild(this.$el);
1536
1621
  }
1622
+ if (this._mutationObserver) {
1623
+ this._mutationObserver.disconnect();
1624
+ }
1537
1625
  }
1538
1626
  });
1539
1627
  // CONCATENATED MODULE: ./packages/dialog/src/component.vue?vue&type=script&lang=js&
@@ -1795,7 +1883,7 @@ autocomplete_suggestionsvue_type_template_id_cd10dcf0_render._withStripped = tru
1795
1883
  // CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=template&id=cd10dcf0&
1796
1884
 
1797
1885
  // EXTERNAL MODULE: external "iov-design/lib/utils/vue-popper"
1798
- var vue_popper_ = __webpack_require__(5);
1886
+ var vue_popper_ = __webpack_require__(4);
1799
1887
  var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
1800
1888
 
1801
1889
  // EXTERNAL MODULE: external "iov-design/lib/scrollbar"
@@ -2245,7 +2333,7 @@ var button_ = __webpack_require__(13);
2245
2333
  var button_default = /*#__PURE__*/__webpack_require__.n(button_);
2246
2334
 
2247
2335
  // EXTERNAL MODULE: external "iov-design/lib/button-group"
2248
- var button_group_ = __webpack_require__(29);
2336
+ var button_group_ = __webpack_require__(30);
2249
2337
  var button_group_default = /*#__PURE__*/__webpack_require__.n(button_group_);
2250
2338
 
2251
2339
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown.vue?vue&type=script&lang=js&
@@ -4013,7 +4101,7 @@ menu_itemvue_type_template_id_2a5dbfea_render._withStripped = true
4013
4101
  // CONCATENATED MODULE: ./packages/menu/src/menu-item.vue?vue&type=template&id=2a5dbfea&
4014
4102
 
4015
4103
  // EXTERNAL MODULE: external "iov-design/lib/tooltip"
4016
- var tooltip_ = __webpack_require__(26);
4104
+ var tooltip_ = __webpack_require__(27);
4017
4105
  var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_);
4018
4106
 
4019
4107
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item.vue?vue&type=script&lang=js&
@@ -8405,18 +8493,18 @@ if (false) { var option_api; }
8405
8493
  option_component.options.__file = "packages/select/src/option.vue"
8406
8494
  /* harmony default export */ var src_option = (option_component.exports);
8407
8495
  // EXTERNAL MODULE: external "iov-design/lib/tag"
8408
- var tag_ = __webpack_require__(30);
8496
+ var tag_ = __webpack_require__(31);
8409
8497
  var tag_default = /*#__PURE__*/__webpack_require__.n(tag_);
8410
8498
 
8411
8499
  // EXTERNAL MODULE: external "iov-design/lib/empty"
8412
- var empty_ = __webpack_require__(31);
8500
+ var empty_ = __webpack_require__(32);
8413
8501
  var empty_default = /*#__PURE__*/__webpack_require__.n(empty_);
8414
8502
 
8415
8503
  // EXTERNAL MODULE: external "iov-design/lib/utils/resize-event"
8416
8504
  var resize_event_ = __webpack_require__(15);
8417
8505
 
8418
8506
  // EXTERNAL MODULE: external "iov-design/lib/utils/scroll-into-view"
8419
- var scroll_into_view_ = __webpack_require__(27);
8507
+ var scroll_into_view_ = __webpack_require__(28);
8420
8508
  var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_view_);
8421
8509
 
8422
8510
  // CONCATENATED MODULE: ./packages/select/src/navigation-mixin.js
@@ -10234,10 +10322,10 @@ var checkbox_ = __webpack_require__(14);
10234
10322
  var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
10235
10323
 
10236
10324
  // EXTERNAL MODULE: external "throttle-debounce"
10237
- var external_throttle_debounce_ = __webpack_require__(37);
10325
+ var external_throttle_debounce_ = __webpack_require__(38);
10238
10326
 
10239
10327
  // EXTERNAL MODULE: external "normalize-wheel"
10240
- var external_normalize_wheel_ = __webpack_require__(40);
10328
+ var external_normalize_wheel_ = __webpack_require__(41);
10241
10329
  var external_normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(external_normalize_wheel_);
10242
10330
 
10243
10331
  // CONCATENATED MODULE: ./src/directives/mousewheel.js
@@ -11713,7 +11801,7 @@ function mapStates(mapper) {
11713
11801
  return res;
11714
11802
  };
11715
11803
  // EXTERNAL MODULE: external "iov-design/lib/utils/scrollbar-width"
11716
- var scrollbar_width_ = __webpack_require__(32);
11804
+ var scrollbar_width_ = __webpack_require__(33);
11717
11805
  var scrollbar_width_default = /*#__PURE__*/__webpack_require__.n(scrollbar_width_);
11718
11806
 
11719
11807
  // CONCATENATED MODULE: ./packages/table/src/table-layout.js
@@ -12841,7 +12929,7 @@ var dropdowns = [];
12841
12929
  }
12842
12930
  });
12843
12931
  // EXTERNAL MODULE: external "iov-design/lib/checkbox-group"
12844
- var checkbox_group_ = __webpack_require__(33);
12932
+ var checkbox_group_ = __webpack_require__(34);
12845
12933
  var checkbox_group_default = /*#__PURE__*/__webpack_require__.n(checkbox_group_);
12846
12934
 
12847
12935
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/filter-panel.vue?vue&type=script&lang=js&
@@ -22847,7 +22935,7 @@ var lib_locale_ = __webpack_require__(12);
22847
22935
  var lib_locale_default = /*#__PURE__*/__webpack_require__.n(lib_locale_);
22848
22936
 
22849
22937
  // EXTERNAL MODULE: external "iov-design/lib/utils/aria-dialog"
22850
- var aria_dialog_ = __webpack_require__(41);
22938
+ var aria_dialog_ = __webpack_require__(42);
22851
22939
  var aria_dialog_default = /*#__PURE__*/__webpack_require__.n(aria_dialog_);
22852
22940
 
22853
22941
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/message-box/src/main.vue?vue&type=script&lang=js&
@@ -24000,7 +24088,7 @@ form_itemvue_type_template_id_b6f3db6c_render._withStripped = true
24000
24088
  // CONCATENATED MODULE: ./packages/form/src/form-item.vue?vue&type=template&id=b6f3db6c&
24001
24089
 
24002
24090
  // EXTERNAL MODULE: external "async-validator"
24003
- var external_async_validator_ = __webpack_require__(42);
24091
+ var external_async_validator_ = __webpack_require__(43);
24004
24092
  var external_async_validator_default = /*#__PURE__*/__webpack_require__.n(external_async_validator_);
24005
24093
 
24006
24094
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/label-wrap.vue?vue&type=script&lang=js&
@@ -28121,7 +28209,7 @@ mainvue_type_template_id_32708644_render._withStripped = true
28121
28209
  // CONCATENATED MODULE: ./packages/slider/src/main.vue?vue&type=template&id=32708644&
28122
28210
 
28123
28211
  // EXTERNAL MODULE: external "iov-design/lib/input-number"
28124
- var input_number_ = __webpack_require__(43);
28212
+ var input_number_ = __webpack_require__(44);
28125
28213
  var input_number_default = /*#__PURE__*/__webpack_require__.n(input_number_);
28126
28214
 
28127
28215
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/slider/src/button.vue?vue&type=template&id=e72d2ad2&
@@ -29082,7 +29170,7 @@ if (false) { var loading_api; }
29082
29170
  loading_component.options.__file = "packages/loading/src/loading.vue"
29083
29171
  /* harmony default export */ var loading = (loading_component.exports);
29084
29172
  // EXTERNAL MODULE: external "iov-design/lib/utils/after-leave"
29085
- var after_leave_ = __webpack_require__(34);
29173
+ var after_leave_ = __webpack_require__(35);
29086
29174
  var after_leave_default = /*#__PURE__*/__webpack_require__.n(after_leave_);
29087
29175
 
29088
29176
  // CONCATENATED MODULE: ./packages/loading/src/directive.js
@@ -29522,7 +29610,7 @@ var upload_listvue_type_template_id_173fedf5_render = function() {
29522
29610
  var _h = _vm.$createElement
29523
29611
  var _c = _vm._self._c || _h
29524
29612
  return _c(
29525
- "transition-group",
29613
+ "ul",
29526
29614
  {
29527
29615
  class: [
29528
29616
  "el-upload-list",
@@ -29538,24 +29626,12 @@ var upload_listvue_type_template_id_173fedf5_render = function() {
29538
29626
  key: file.uid,
29539
29627
  class: [
29540
29628
  "el-upload-list__item",
29629
+ "el-upload-list__item-" + _vm.size,
29541
29630
  "is-" + file.status,
29542
29631
  _vm.focusing ? "focusing" : ""
29543
29632
  ],
29544
29633
  attrs: { tabindex: "0" },
29545
29634
  on: {
29546
- keydown: function($event) {
29547
- if (
29548
- !("button" in $event) &&
29549
- _vm._k($event.keyCode, "delete", [8, 46], $event.key, [
29550
- "Backspace",
29551
- "Delete",
29552
- "Del"
29553
- ])
29554
- ) {
29555
- return null
29556
- }
29557
- !_vm.disabled && _vm.$emit("remove", file)
29558
- },
29559
29635
  focus: function($event) {
29560
29636
  _vm.focusing = true
29561
29637
  },
@@ -29571,45 +29647,120 @@ var upload_listvue_type_template_id_173fedf5_render = function() {
29571
29647
  _vm._t(
29572
29648
  "default",
29573
29649
  [
29574
- file.status !== "uploading" &&
29575
- ["picture-card", "picture"].indexOf(_vm.listType) > -1
29576
- ? _c("img", {
29577
- staticClass: "el-upload-list__item-thumbnail",
29578
- attrs: { src: file.url, alt: "" }
29579
- })
29580
- : _vm._e(),
29581
- _c(
29582
- "a",
29583
- {
29584
- staticClass: "el-upload-list__item-name",
29585
- on: {
29586
- click: function($event) {
29587
- _vm.handleClick(file)
29588
- }
29589
- }
29590
- },
29591
- [
29592
- _c("i", { staticClass: "el-icon-document" }),
29593
- _vm._v(_vm._s(file.name) + "\n ")
29594
- ]
29595
- ),
29596
- _c(
29597
- "label",
29598
- { staticClass: "el-upload-list__item-status-label" },
29599
- [
29600
- _c("i", {
29601
- class: {
29602
- "el-icon-upload-success": true,
29603
- "el-icon-circle-check": _vm.listType === "text",
29604
- "el-icon-check":
29605
- ["picture-card", "picture"].indexOf(_vm.listType) > -1
29650
+ _c("div", { staticClass: "el-upload-list__file" }, [
29651
+ _c(
29652
+ "div",
29653
+ {
29654
+ staticClass: "el-upload-list__item-name",
29655
+ on: {
29656
+ click: function($event) {
29657
+ _vm.handleClick(file)
29658
+ }
29606
29659
  }
29607
- })
29608
- ]
29609
- ),
29610
- !_vm.disabled
29660
+ },
29661
+ [
29662
+ ["picture-card", "picture"].includes(_vm.listType)
29663
+ ? _c(
29664
+ "span",
29665
+ { staticClass: "el-upload-list__item-thumbnail" },
29666
+ [
29667
+ _c(
29668
+ "el-image",
29669
+ {
29670
+ attrs: {
29671
+ src: file.url,
29672
+ "preview-src-list": _vm.handlePreview
29673
+ ? []
29674
+ : [file.url],
29675
+ fit: "contain"
29676
+ }
29677
+ },
29678
+ [
29679
+ _c("i", {
29680
+ staticClass: "el-image__placeholder",
29681
+ attrs: { slot: "placeholder" },
29682
+ slot: "placeholder"
29683
+ }),
29684
+ _c("i", {
29685
+ staticClass: "el-image__error",
29686
+ attrs: { slot: "error" },
29687
+ slot: "error"
29688
+ })
29689
+ ]
29690
+ )
29691
+ ],
29692
+ 1
29693
+ )
29694
+ : ["text"].includes(_vm.listType)
29695
+ ? _c("i", {
29696
+ staticClass: "el-upload-list__icon",
29697
+ style: _vm.iconStyle(file.name)
29698
+ })
29699
+ : _vm._e(),
29700
+ ["text", "picture"].includes(_vm.listType)
29701
+ ? _c("div", { staticClass: "el-upload-list__name" }, [
29702
+ _c("span", { staticClass: "file-name" }, [
29703
+ _vm._v(_vm._s(file.name))
29704
+ ])
29705
+ ])
29706
+ : _vm._e()
29707
+ ]
29708
+ ),
29709
+ ["text", "picture"].includes(_vm.listType)
29710
+ ? _c(
29711
+ "div",
29712
+ { staticClass: "el-upload-list__item-status-label" },
29713
+ [
29714
+ file.status === "uploading"
29715
+ ? _c("el-progress", {
29716
+ staticClass: "el-upload-progress",
29717
+ attrs: {
29718
+ percentage: file.percentage,
29719
+ width: 14,
29720
+ "stroke-width": 7,
29721
+ "show-text": false,
29722
+ type: "circle",
29723
+ "stroke-linecap": "butt"
29724
+ }
29725
+ })
29726
+ : file.status === "success"
29727
+ ? _c("i", {
29728
+ staticClass: "el-upload-success iov-icon-success"
29729
+ })
29730
+ : _vm._e()
29731
+ ],
29732
+ 1
29733
+ )
29734
+ : ["picture-card"].includes(_vm.listType) &&
29735
+ file.status === "uploading"
29736
+ ? _c(
29737
+ "div",
29738
+ { staticClass: "el-upload-list__item-status-label" },
29739
+ [
29740
+ _c("el-progress", {
29741
+ staticClass: "el-upload-progress",
29742
+ attrs: {
29743
+ percentage: file.percentage,
29744
+ "stroke-width": 2,
29745
+ "show-text": false,
29746
+ type: "line",
29747
+ color: "#3F57FF",
29748
+ "define-back-color": "#F2F3F5"
29749
+ }
29750
+ }),
29751
+ _c(
29752
+ "span",
29753
+ { staticClass: "el-upload-progress__text" },
29754
+ [_vm._v("上传中")]
29755
+ )
29756
+ ],
29757
+ 1
29758
+ )
29759
+ : _vm._e()
29760
+ ]),
29761
+ !_vm.disabled && ["text", "picture"].includes(_vm.listType)
29611
29762
  ? _c("i", {
29612
- staticClass: "el-icon-close",
29763
+ staticClass: "iov-icon-delete",
29613
29764
  on: {
29614
29765
  click: function($event) {
29615
29766
  _vm.$emit("remove", file)
@@ -29617,49 +29768,37 @@ var upload_listvue_type_template_id_173fedf5_render = function() {
29617
29768
  }
29618
29769
  })
29619
29770
  : _vm._e(),
29620
- !_vm.disabled
29621
- ? _c("i", { staticClass: "el-icon-close-tip" }, [
29622
- _vm._v(_vm._s(_vm.t("el.upload.deleteTip")))
29623
- ])
29624
- : _vm._e(),
29625
- file.status === "uploading"
29626
- ? _c("el-progress", {
29627
- attrs: {
29628
- type: _vm.listType === "picture-card" ? "circle" : "line",
29629
- "stroke-width": _vm.listType === "picture-card" ? 6 : 2,
29630
- percentage: _vm.parsePercentage(file.percentage)
29631
- }
29632
- })
29633
- : _vm._e(),
29634
- _vm.listType === "picture-card"
29771
+ _vm.listType === "picture-card" && file.status === "success"
29635
29772
  ? _c("span", { staticClass: "el-upload-list__item-actions" }, [
29636
- _vm.handlePreview && _vm.listType === "picture-card"
29637
- ? _c(
29638
- "span",
29639
- {
29640
- staticClass: "el-upload-list__item-preview",
29641
- on: {
29642
- click: function($event) {
29643
- _vm.handlePreview(file)
29644
- }
29773
+ _vm.handlePreview
29774
+ ? _c("i", {
29775
+ staticClass:
29776
+ "el-upload-list__item-preview iov-icon-eye",
29777
+ on: {
29778
+ click: function($event) {
29779
+ $event.stopPropagation()
29780
+ _vm.handlePreview(file)
29645
29781
  }
29646
- },
29647
- [_c("i", { staticClass: "el-icon-zoom-in" })]
29648
- )
29782
+ }
29783
+ })
29649
29784
  : _vm._e(),
29650
29785
  !_vm.disabled
29651
- ? _c(
29652
- "span",
29653
- {
29654
- staticClass: "el-upload-list__item-delete",
29655
- on: {
29656
- click: function($event) {
29657
- _vm.$emit("remove", file)
29658
- }
29786
+ ? _c("i", {
29787
+ staticClass:
29788
+ "el-upload-list__item-delete iov-icon-delete",
29789
+ on: {
29790
+ click: function($event) {
29791
+ $event.stopPropagation()
29792
+ _vm.$emit("remove", file)
29659
29793
  }
29660
- },
29661
- [_c("i", { staticClass: "el-icon-delete" })]
29662
- )
29794
+ }
29795
+ })
29796
+ : _vm._e(),
29797
+ !_vm.disabled
29798
+ ? _c("i", {
29799
+ staticClass:
29800
+ "el-upload-list__item-update iov-icon-update"
29801
+ })
29663
29802
  : _vm._e()
29664
29803
  ])
29665
29804
  : _vm._e()
@@ -29680,9 +29819,55 @@ upload_listvue_type_template_id_173fedf5_render._withStripped = true
29680
29819
  // CONCATENATED MODULE: ./packages/upload/src/upload-list.vue?vue&type=template&id=173fedf5&
29681
29820
 
29682
29821
  // EXTERNAL MODULE: external "iov-design/lib/progress"
29683
- var progress_ = __webpack_require__(35);
29822
+ var progress_ = __webpack_require__(24);
29684
29823
  var progress_default = /*#__PURE__*/__webpack_require__.n(progress_);
29685
29824
 
29825
+ // CONCATENATED MODULE: ./packages/upload/src/utils.js
29826
+ var ICON_MAP = {
29827
+ img: __webpack_require__(49),
29828
+ pdf: __webpack_require__(50),
29829
+ excel: __webpack_require__(51),
29830
+ zip: __webpack_require__(37),
29831
+ rar: __webpack_require__(37),
29832
+ '7z': __webpack_require__(37),
29833
+ ppt: __webpack_require__(52),
29834
+ word: __webpack_require__(53),
29835
+ default: __webpack_require__(54)
29836
+ };
29837
+
29838
+ function iconStyle(fileName) {
29839
+ var suffixMap = {
29840
+ img: ['png', 'jpg', 'jpeg'],
29841
+ word: ['doc', 'docx'],
29842
+ excel: ['xls', 'xlsx'],
29843
+ ppt: ['ppt', 'pptx']
29844
+ };
29845
+
29846
+ var ext = fileName.split('.').pop().toLowerCase();
29847
+
29848
+ for (var _iterator = Object.entries(suffixMap), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
29849
+ var _ref2;
29850
+
29851
+ if (_isArray) {
29852
+ if (_i >= _iterator.length) break;
29853
+ _ref2 = _iterator[_i++];
29854
+ } else {
29855
+ _i = _iterator.next();
29856
+ if (_i.done) break;
29857
+ _ref2 = _i.value;
29858
+ }
29859
+
29860
+ var _ref = _ref2;
29861
+ var key = _ref[0];
29862
+ var list = _ref[1];
29863
+
29864
+ if (list.includes(ext)) {
29865
+ return { 'background-image': 'url(' + ICON_MAP[key] + ')' };
29866
+ }
29867
+ }
29868
+
29869
+ return { 'background-image': 'url(' + (ICON_MAP[ext] || ICON_MAP.default) + ')' };
29870
+ }
29686
29871
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-list.vue?vue&type=script&lang=js&
29687
29872
  //
29688
29873
  //
@@ -29748,19 +29933,593 @@ var progress_default = /*#__PURE__*/__webpack_require__.n(progress_);
29748
29933
  //
29749
29934
  //
29750
29935
  //
29936
+ //
29937
+ //
29938
+ //
29939
+ //
29940
+ //
29941
+
29942
+
29943
+
29944
+ /* harmony default export */ var upload_listvue_type_script_lang_js_ = ({
29945
+ name: 'ElUploadList',
29946
+ data: function data() {
29947
+ return {
29948
+ focusing: false,
29949
+ iconStyle: iconStyle
29950
+ };
29951
+ },
29952
+
29953
+ components: { ElProgress: progress_default.a },
29954
+
29955
+ props: {
29956
+ files: {
29957
+ type: Array,
29958
+ default: function _default() {
29959
+ return [];
29960
+ }
29961
+ },
29962
+ disabled: {
29963
+ type: Boolean,
29964
+ default: false
29965
+ },
29966
+ size: String,
29967
+ handlePreview: null,
29968
+ listType: String
29969
+ },
29970
+ methods: {
29971
+ parsePercentage: function parsePercentage(val) {
29972
+ return parseInt(val, 10);
29973
+ },
29974
+ handleClick: function handleClick(file) {
29975
+ this.handlePreview && this.handlePreview(file);
29976
+ }
29977
+ }
29978
+ });
29979
+ // CONCATENATED MODULE: ./packages/upload/src/upload-list.vue?vue&type=script&lang=js&
29980
+ /* harmony default export */ var src_upload_listvue_type_script_lang_js_ = (upload_listvue_type_script_lang_js_);
29981
+ // CONCATENATED MODULE: ./packages/upload/src/upload-list.vue
29982
+
29983
+
29984
+
29985
+
29986
+
29987
+ /* normalize component */
29988
+
29989
+ var upload_list_component = normalizeComponent(
29990
+ src_upload_listvue_type_script_lang_js_,
29991
+ upload_listvue_type_template_id_173fedf5_render,
29992
+ upload_listvue_type_template_id_173fedf5_staticRenderFns,
29993
+ false,
29994
+ null,
29995
+ null,
29996
+ null
29997
+
29998
+ )
29999
+
30000
+ /* hot reload */
30001
+ if (false) { var upload_list_api; }
30002
+ upload_list_component.options.__file = "packages/upload/src/upload-list.vue"
30003
+ /* harmony default export */ var upload_list = (upload_list_component.exports);
30004
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-file.vue?vue&type=template&id=c998d85a&
30005
+ var upload_filevue_type_template_id_c998d85a_render = function() {
30006
+ var _vm = this
30007
+ var _h = _vm.$createElement
30008
+ var _c = _vm._self._c || _h
30009
+ return _c(
30010
+ "ul",
30011
+ {
30012
+ class: [
30013
+ "el-upload-list",
30014
+ "el-upload-list--" + _vm.listType,
30015
+ { "is-disabled": _vm.disabled }
30016
+ ]
30017
+ },
30018
+ _vm._l(_vm.files, function(file) {
30019
+ return _c(
30020
+ "li",
30021
+ {
30022
+ key: file.uid,
30023
+ class: [
30024
+ "el-upload-list__item",
30025
+ "is-" + file.status,
30026
+ _vm.focusing ? "focusing" : ""
30027
+ ],
30028
+ attrs: { tabindex: "0" },
30029
+ on: {
30030
+ focus: function($event) {
30031
+ _vm.focusing = true
30032
+ },
30033
+ blur: function($event) {
30034
+ _vm.focusing = false
30035
+ },
30036
+ click: function($event) {
30037
+ _vm.focusing = false
30038
+ }
30039
+ }
30040
+ },
30041
+ [
30042
+ _vm._t(
30043
+ "default",
30044
+ [
30045
+ _c("div", { staticClass: "el-upload-list__file" }, [
30046
+ file.status === "success"
30047
+ ? _c(
30048
+ "div",
30049
+ { staticClass: "el-upload-list__item-name" },
30050
+ [
30051
+ ["picture-card", "picture"].includes(_vm.listType)
30052
+ ? _c(
30053
+ "span",
30054
+ { staticClass: "el-upload-list__item-thumbnail" },
30055
+ [
30056
+ _c(
30057
+ "el-image",
30058
+ {
30059
+ attrs: {
30060
+ src: file.url,
30061
+ "preview-src-list": [file.url],
30062
+ fit: "contain"
30063
+ }
30064
+ },
30065
+ [
30066
+ _c("i", {
30067
+ staticClass: "el-image__placeholder",
30068
+ attrs: { slot: "placeholder" },
30069
+ slot: "placeholder"
30070
+ }),
30071
+ _c("i", {
30072
+ staticClass: "el-image__error",
30073
+ attrs: { slot: "error" },
30074
+ slot: "error"
30075
+ })
30076
+ ]
30077
+ )
30078
+ ],
30079
+ 1
30080
+ )
30081
+ : ["text"].includes(_vm.listType)
30082
+ ? _c("i", {
30083
+ staticClass: "el-upload-list__icon",
30084
+ style: _vm.iconStyle(file.name),
30085
+ on: {
30086
+ click: function($event) {
30087
+ _vm.handleClick(file)
30088
+ }
30089
+ }
30090
+ })
30091
+ : _vm._e(),
30092
+ _c(
30093
+ "div",
30094
+ {
30095
+ staticClass: "el-upload-list__name",
30096
+ on: {
30097
+ click: function($event) {
30098
+ _vm.handleClick(file)
30099
+ }
30100
+ }
30101
+ },
30102
+ [
30103
+ _c("span", { staticClass: "file-name" }, [
30104
+ _vm._v(_vm._s(file.name))
30105
+ ])
30106
+ ]
30107
+ ),
30108
+ _vm.size === "medium"
30109
+ ? _c(
30110
+ "el-button",
30111
+ {
30112
+ staticClass: "el-upload__btn",
30113
+ attrs: {
30114
+ slot: "trigger",
30115
+ round: "",
30116
+ size: "small"
30117
+ },
30118
+ slot: "trigger"
30119
+ },
30120
+ [_vm._v("重新上传")]
30121
+ )
30122
+ : _vm._e()
30123
+ ],
30124
+ 1
30125
+ )
30126
+ : _vm._e(),
30127
+ file.status === "uploading"
30128
+ ? _c(
30129
+ "div",
30130
+ { staticClass: "el-upload-list__item-status-label" },
30131
+ [
30132
+ _c("el-progress", {
30133
+ staticClass: "el-upload-progress",
30134
+ attrs: {
30135
+ percentage: file.percentage,
30136
+ "stroke-width": 2,
30137
+ "show-text": false,
30138
+ type: "line",
30139
+ color: "#3F57FF",
30140
+ "define-back-color": "#F2F3F5"
30141
+ }
30142
+ }),
30143
+ _c(
30144
+ "span",
30145
+ { staticClass: "el-upload-progress__text" },
30146
+ [_vm._v("文件上传中")]
30147
+ )
30148
+ ],
30149
+ 1
30150
+ )
30151
+ : _vm._e()
30152
+ ]),
30153
+ !_vm.disabled
30154
+ ? _c("i", {
30155
+ staticClass: "el-upload__remove iov-icon-close-mini",
30156
+ on: {
30157
+ click: function($event) {
30158
+ $event.stopPropagation()
30159
+ _vm.$emit("remove", file)
30160
+ }
30161
+ }
30162
+ })
30163
+ : _vm._e()
30164
+ ],
30165
+ { file: file }
30166
+ )
30167
+ ],
30168
+ 2
30169
+ )
30170
+ }),
30171
+ 0
30172
+ )
30173
+ }
30174
+ var upload_filevue_type_template_id_c998d85a_staticRenderFns = []
30175
+ upload_filevue_type_template_id_c998d85a_render._withStripped = true
30176
+
30177
+
30178
+ // CONCATENATED MODULE: ./packages/upload/src/upload-file.vue?vue&type=template&id=c998d85a&
30179
+
30180
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-file.vue?vue&type=script&lang=js&
30181
+ //
30182
+ //
30183
+ //
30184
+ //
30185
+ //
30186
+ //
30187
+ //
30188
+ //
30189
+ //
30190
+ //
30191
+ //
30192
+ //
30193
+ //
30194
+ //
30195
+ //
30196
+ //
30197
+ //
30198
+ //
30199
+ //
30200
+ //
30201
+ //
30202
+ //
30203
+ //
30204
+ //
30205
+ //
30206
+ //
30207
+ //
30208
+ //
30209
+ //
30210
+ //
30211
+ //
30212
+ //
30213
+ //
30214
+ //
30215
+ //
30216
+ //
30217
+ //
30218
+ //
30219
+ //
30220
+ //
30221
+ //
30222
+ //
30223
+ //
30224
+ //
30225
+ //
30226
+ //
30227
+ //
30228
+ //
30229
+ //
30230
+ //
29751
30231
 
29752
30232
 
29753
30233
 
30234
+ /* harmony default export */ var upload_filevue_type_script_lang_js_ = ({
30235
+ name: 'ElUploadFile',
30236
+ data: function data() {
30237
+ return {
30238
+ focusing: false,
30239
+ iconStyle: iconStyle
30240
+ };
30241
+ },
29754
30242
 
29755
- /* harmony default export */ var upload_listvue_type_script_lang_js_ = ({
30243
+ components: { ElProgress: progress_default.a },
29756
30244
 
29757
- name: 'ElUploadList',
30245
+ props: {
30246
+ files: {
30247
+ type: Array,
30248
+ default: function _default() {
30249
+ return [];
30250
+ }
30251
+ },
30252
+ disabled: {
30253
+ type: Boolean,
30254
+ default: false
30255
+ },
30256
+ size: String,
30257
+ width: String,
30258
+ height: String,
30259
+ handlePreview: Function,
30260
+ listType: String
30261
+ },
30262
+ methods: {
30263
+ parsePercentage: function parsePercentage(val) {
30264
+ return parseInt(val, 10);
30265
+ },
30266
+ handleClick: function handleClick(file) {
30267
+ this.handlePreview && this.handlePreview(file);
30268
+ }
30269
+ }
30270
+ });
30271
+ // CONCATENATED MODULE: ./packages/upload/src/upload-file.vue?vue&type=script&lang=js&
30272
+ /* harmony default export */ var src_upload_filevue_type_script_lang_js_ = (upload_filevue_type_script_lang_js_);
30273
+ // CONCATENATED MODULE: ./packages/upload/src/upload-file.vue
29758
30274
 
29759
- mixins: [locale_default.a],
29760
30275
 
30276
+
30277
+
30278
+
30279
+ /* normalize component */
30280
+
30281
+ var upload_file_component = normalizeComponent(
30282
+ src_upload_filevue_type_script_lang_js_,
30283
+ upload_filevue_type_template_id_c998d85a_render,
30284
+ upload_filevue_type_template_id_c998d85a_staticRenderFns,
30285
+ false,
30286
+ null,
30287
+ null,
30288
+ null
30289
+
30290
+ )
30291
+
30292
+ /* hot reload */
30293
+ if (false) { var upload_file_api; }
30294
+ upload_file_component.options.__file = "packages/upload/src/upload-file.vue"
30295
+ /* harmony default export */ var upload_file = (upload_file_component.exports);
30296
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-picture.vue?vue&type=template&id=4be68a77&
30297
+ var upload_picturevue_type_template_id_4be68a77_render = function() {
30298
+ var _vm = this
30299
+ var _h = _vm.$createElement
30300
+ var _c = _vm._self._c || _h
30301
+ return _c(
30302
+ "ul",
30303
+ {
30304
+ class: [
30305
+ "el-upload-list",
30306
+ "el-upload-list--" + _vm.listType,
30307
+ { "is-disabled": _vm.disabled }
30308
+ ],
30309
+ attrs: { tag: "ul", name: "el-list" }
30310
+ },
30311
+ _vm._l(_vm.files, function(file) {
30312
+ return _c(
30313
+ "li",
30314
+ {
30315
+ key: file.uid,
30316
+ class: [
30317
+ "el-upload-list__item",
30318
+ "el-upload-list__item-" + _vm.size,
30319
+ "is-" + file.status,
30320
+ _vm.focusing ? "focusing" : ""
30321
+ ],
30322
+ attrs: { tabindex: "0" },
30323
+ on: {
30324
+ focus: function($event) {
30325
+ _vm.focusing = true
30326
+ },
30327
+ blur: function($event) {
30328
+ _vm.focusing = false
30329
+ },
30330
+ click: function($event) {
30331
+ _vm.focusing = false
30332
+ }
30333
+ }
30334
+ },
30335
+ [
30336
+ _vm._t(
30337
+ "default",
30338
+ [
30339
+ _c("div", { staticClass: "el-upload-list__file" }, [
30340
+ file.status === "success"
30341
+ ? _c(
30342
+ "div",
30343
+ {
30344
+ staticClass: "el-upload-list__item-name",
30345
+ on: {
30346
+ click: function($event) {
30347
+ _vm.handleClick(file)
30348
+ }
30349
+ }
30350
+ },
30351
+ [
30352
+ _c(
30353
+ "span",
30354
+ { staticClass: "el-upload-list__item-thumbnail" },
30355
+ [
30356
+ _c(
30357
+ "el-image",
30358
+ {
30359
+ attrs: {
30360
+ src: file.url,
30361
+ "preview-src-list": _vm.handlePreview
30362
+ ? []
30363
+ : [file.url],
30364
+ fit: "contain"
30365
+ }
30366
+ },
30367
+ [
30368
+ _c("i", {
30369
+ staticClass: "el-image__placeholder",
30370
+ attrs: { slot: "placeholder" },
30371
+ slot: "placeholder"
30372
+ }),
30373
+ _c("i", {
30374
+ staticClass: "el-image__error",
30375
+ attrs: { slot: "error" },
30376
+ slot: "error"
30377
+ })
30378
+ ]
30379
+ )
30380
+ ],
30381
+ 1
30382
+ )
30383
+ ]
30384
+ )
30385
+ : _vm._e(),
30386
+ file.status === "uploading"
30387
+ ? _c(
30388
+ "div",
30389
+ { staticClass: "el-upload-list__item-status-label" },
30390
+ [
30391
+ _c("el-progress", {
30392
+ staticClass: "el-upload-progress",
30393
+ attrs: {
30394
+ percentage: file.percentage,
30395
+ "stroke-width": 2,
30396
+ "show-text": false,
30397
+ type: "line",
30398
+ color: "#3F57FF",
30399
+ "define-back-color": "#F2F3F5"
30400
+ }
30401
+ }),
30402
+ _c(
30403
+ "span",
30404
+ { staticClass: "el-upload-progress__text" },
30405
+ [_vm._v("上传中")]
30406
+ )
30407
+ ],
30408
+ 1
30409
+ )
30410
+ : _vm._e()
30411
+ ]),
30412
+ file.status === "success"
30413
+ ? _c("span", { staticClass: "el-upload-list__item-actions" }, [
30414
+ _vm.handlePreview
30415
+ ? _c("i", {
30416
+ staticClass:
30417
+ "el-upload-list__item-preview iov-icon-eye",
30418
+ on: {
30419
+ click: function($event) {
30420
+ _vm.handlePreview(file)
30421
+ }
30422
+ }
30423
+ })
30424
+ : _vm._e(),
30425
+ !_vm.disabled
30426
+ ? _c("i", {
30427
+ staticClass:
30428
+ "el-upload-list__item-delete iov-icon-delete",
30429
+ on: {
30430
+ click: function($event) {
30431
+ $event.stopPropagation()
30432
+ _vm.$emit("remove", file)
30433
+ }
30434
+ }
30435
+ })
30436
+ : _vm._e(),
30437
+ !_vm.disabled
30438
+ ? _c("i", {
30439
+ staticClass:
30440
+ "el-upload-list__item-update iov-icon-update"
30441
+ })
30442
+ : _vm._e()
30443
+ ])
30444
+ : _vm._e()
30445
+ ],
30446
+ { file: file }
30447
+ )
30448
+ ],
30449
+ 2
30450
+ )
30451
+ }),
30452
+ 0
30453
+ )
30454
+ }
30455
+ var upload_picturevue_type_template_id_4be68a77_staticRenderFns = []
30456
+ upload_picturevue_type_template_id_4be68a77_render._withStripped = true
30457
+
30458
+
30459
+ // CONCATENATED MODULE: ./packages/upload/src/upload-picture.vue?vue&type=template&id=4be68a77&
30460
+
30461
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-picture.vue?vue&type=script&lang=js&
30462
+ //
30463
+ //
30464
+ //
30465
+ //
30466
+ //
30467
+ //
30468
+ //
30469
+ //
30470
+ //
30471
+ //
30472
+ //
30473
+ //
30474
+ //
30475
+ //
30476
+ //
30477
+ //
30478
+ //
30479
+ //
30480
+ //
30481
+ //
30482
+ //
30483
+ //
30484
+ //
30485
+ //
30486
+ //
30487
+ //
30488
+ //
30489
+ //
30490
+ //
30491
+ //
30492
+ //
30493
+ //
30494
+ //
30495
+ //
30496
+ //
30497
+ //
30498
+ //
30499
+ //
30500
+ //
30501
+ //
30502
+ //
30503
+ //
30504
+ //
30505
+ //
30506
+ //
30507
+ //
30508
+ //
30509
+ //
30510
+ //
30511
+ //
30512
+ //
30513
+
30514
+
30515
+
30516
+
30517
+ /* harmony default export */ var upload_picturevue_type_script_lang_js_ = ({
30518
+ name: 'ElUploadPicture',
29761
30519
  data: function data() {
29762
30520
  return {
29763
- focusing: false
30521
+ focusing: false,
30522
+ iconStyle: iconStyle
29764
30523
  };
29765
30524
  },
29766
30525
 
@@ -29777,6 +30536,7 @@ var progress_default = /*#__PURE__*/__webpack_require__.n(progress_);
29777
30536
  type: Boolean,
29778
30537
  default: false
29779
30538
  },
30539
+ size: String,
29780
30540
  handlePreview: Function,
29781
30541
  listType: String
29782
30542
  },
@@ -29789,9 +30549,9 @@ var progress_default = /*#__PURE__*/__webpack_require__.n(progress_);
29789
30549
  }
29790
30550
  }
29791
30551
  });
29792
- // CONCATENATED MODULE: ./packages/upload/src/upload-list.vue?vue&type=script&lang=js&
29793
- /* harmony default export */ var src_upload_listvue_type_script_lang_js_ = (upload_listvue_type_script_lang_js_);
29794
- // CONCATENATED MODULE: ./packages/upload/src/upload-list.vue
30552
+ // CONCATENATED MODULE: ./packages/upload/src/upload-picture.vue?vue&type=script&lang=js&
30553
+ /* harmony default export */ var src_upload_picturevue_type_script_lang_js_ = (upload_picturevue_type_script_lang_js_);
30554
+ // CONCATENATED MODULE: ./packages/upload/src/upload-picture.vue
29795
30555
 
29796
30556
 
29797
30557
 
@@ -29799,10 +30559,10 @@ var progress_default = /*#__PURE__*/__webpack_require__.n(progress_);
29799
30559
 
29800
30560
  /* normalize component */
29801
30561
 
29802
- var upload_list_component = normalizeComponent(
29803
- src_upload_listvue_type_script_lang_js_,
29804
- upload_listvue_type_template_id_173fedf5_render,
29805
- upload_listvue_type_template_id_173fedf5_staticRenderFns,
30562
+ var upload_picture_component = normalizeComponent(
30563
+ src_upload_picturevue_type_script_lang_js_,
30564
+ upload_picturevue_type_template_id_4be68a77_render,
30565
+ upload_picturevue_type_template_id_4be68a77_staticRenderFns,
29806
30566
  false,
29807
30567
  null,
29808
30568
  null,
@@ -29811,11 +30571,11 @@ var upload_list_component = normalizeComponent(
29811
30571
  )
29812
30572
 
29813
30573
  /* hot reload */
29814
- if (false) { var upload_list_api; }
29815
- upload_list_component.options.__file = "packages/upload/src/upload-list.vue"
29816
- /* harmony default export */ var upload_list = (upload_list_component.exports);
30574
+ if (false) { var upload_picture_api; }
30575
+ upload_picture_component.options.__file = "packages/upload/src/upload-picture.vue"
30576
+ /* harmony default export */ var upload_picture = (upload_picture_component.exports);
29817
30577
  // EXTERNAL MODULE: external "babel-helper-vue-jsx-merge-props"
29818
- var external_babel_helper_vue_jsx_merge_props_ = __webpack_require__(24);
30578
+ var external_babel_helper_vue_jsx_merge_props_ = __webpack_require__(25);
29819
30579
  var external_babel_helper_vue_jsx_merge_props_default = /*#__PURE__*/__webpack_require__.n(external_babel_helper_vue_jsx_merge_props_);
29820
30580
 
29821
30581
  // CONCATENATED MODULE: ./packages/upload/src/ajax.js
@@ -30069,6 +30829,7 @@ upload_dragger_component.options.__file = "packages/upload/src/upload-dragger.vu
30069
30829
  onError: Function,
30070
30830
  beforeUpload: Function,
30071
30831
  drag: Boolean,
30832
+ size: String,
30072
30833
  onPreview: {
30073
30834
  type: Function,
30074
30835
  default: function _default() {}
@@ -30097,6 +30858,12 @@ upload_dragger_component.options.__file = "packages/upload/src/upload-dragger.vu
30097
30858
  },
30098
30859
 
30099
30860
 
30861
+ computed: {
30862
+ hideUploadInput: function hideUploadInput() {
30863
+ return !this.showFileList && this.listType === 'picture-card' && this.limit === 1 && this.fileList.length === 1;
30864
+ }
30865
+ },
30866
+
30100
30867
  methods: {
30101
30868
  isImage: function isImage(str) {
30102
30869
  return str.indexOf('image') !== -1;
@@ -30105,6 +30872,10 @@ upload_dragger_component.options.__file = "packages/upload/src/upload-dragger.vu
30105
30872
  var files = ev.target.files;
30106
30873
 
30107
30874
  if (!files) return;
30875
+
30876
+ if (this.drag && this.limit === 1 || this.hideUploadInput) {
30877
+ this.fileList.length = [];
30878
+ }
30108
30879
  this.uploadFiles(files);
30109
30880
  },
30110
30881
  uploadFiles: function uploadFiles(files) {
@@ -30228,6 +30999,8 @@ upload_dragger_component.options.__file = "packages/upload/src/upload-dragger.vu
30228
30999
  },
30229
31000
 
30230
31001
  render: function render(h) {
31002
+ var _class;
31003
+
30231
31004
  var handleClick = this.handleClick,
30232
31005
  drag = this.drag,
30233
31006
  name = this.name,
@@ -30237,12 +31010,14 @@ upload_dragger_component.options.__file = "packages/upload/src/upload-dragger.vu
30237
31010
  listType = this.listType,
30238
31011
  uploadFiles = this.uploadFiles,
30239
31012
  disabled = this.disabled,
30240
- handleKeydown = this.handleKeydown;
31013
+ handleKeydown = this.handleKeydown,
31014
+ size = this.size;
30241
31015
 
30242
31016
  var data = {
30243
- class: {
30244
- 'el-upload': true
30245
- },
31017
+ class: (_class = {
31018
+ 'el-upload': true,
31019
+ 'el-upload--drag': drag
31020
+ }, _class['el-upload--drag__' + size] = drag, _class['el-upload--' + size] = !drag, _class['el-upload--picture-card'] = listType === 'picture-card', _class['el-upload--picture-card__no-border'] = this.hideUploadInput, _class),
30246
31021
  on: {
30247
31022
  click: handleClick,
30248
31023
  keydown: handleKeydown
@@ -30262,7 +31037,7 @@ upload_dragger_component.options.__file = "packages/upload/src/upload-dragger.vu
30262
31037
  'file': uploadFiles
30263
31038
  }
30264
31039
  },
30265
- [this.$slots.default]
31040
+ [this.$slots.default, this.$slots.tip]
30266
31041
  ) : this.$slots.default, h('input', { 'class': 'el-upload__input', attrs: { type: 'file', name: name, multiple: multiple, accept: accept },
30267
31042
  ref: 'input', on: {
30268
31043
  'change': handleChange
@@ -30303,6 +31078,8 @@ upload_component.options.__file = "packages/upload/src/upload.vue"
30303
31078
 
30304
31079
 
30305
31080
 
31081
+
31082
+
30306
31083
  function srcvue_type_script_lang_js_noop() {}
30307
31084
 
30308
31085
  /* harmony default export */ var srcvue_type_script_lang_js_ = ({
@@ -30313,6 +31090,8 @@ function srcvue_type_script_lang_js_noop() {}
30313
31090
  components: {
30314
31091
  ElProgress: progress_default.a,
30315
31092
  UploadList: upload_list,
31093
+ UploadFile: upload_file,
31094
+ UploadPicture: upload_picture,
30316
31095
  Upload: src_upload
30317
31096
  },
30318
31097
 
@@ -30403,6 +31182,11 @@ function srcvue_type_script_lang_js_noop() {}
30403
31182
  onExceed: {
30404
31183
  type: Function,
30405
31184
  default: srcvue_type_script_lang_js_noop
31185
+ },
31186
+ background: Boolean,
31187
+ size: {
31188
+ type: String,
31189
+ default: 'medium'
30406
31190
  }
30407
31191
  },
30408
31192
 
@@ -30576,7 +31360,52 @@ function srcvue_type_script_lang_js_noop() {}
30576
31360
  var _this4 = this;
30577
31361
 
30578
31362
  var uploadList = void 0;
31363
+ var uploadFile = h(
31364
+ upload_file,
31365
+ {
31366
+ attrs: {
31367
+ disabled: this.uploadDisabled,
31368
+ listType: this.listType,
31369
+ files: this.uploadFiles,
31370
+ width: this.width,
31371
+ height: this.height,
31372
+ size: this.size,
31373
+
31374
+ handlePreview: this.onPreview },
31375
+ on: {
31376
+ 'remove': this.handleRemove
31377
+ }
31378
+ },
31379
+ [function (props) {
31380
+ if (_this4.$scopedSlots.file) {
31381
+ return _this4.$scopedSlots.file({
31382
+ file: props.file
31383
+ });
31384
+ }
31385
+ }]
31386
+ );
31387
+ var uploadPicture = h(
31388
+ upload_picture,
31389
+ {
31390
+ attrs: {
31391
+ disabled: this.uploadDisabled,
31392
+ listType: this.listType,
31393
+ files: this.uploadFiles,
31394
+ size: this.size,
30579
31395
 
31396
+ handlePreview: this.onPreview },
31397
+ on: {
31398
+ 'remove': this.handleRemove
31399
+ }
31400
+ },
31401
+ [function (props) {
31402
+ if (_this4.$scopedSlots.file) {
31403
+ return _this4.$scopedSlots.file({
31404
+ file: props.file
31405
+ });
31406
+ }
31407
+ }]
31408
+ );
30580
31409
  if (this.showFileList) {
30581
31410
  uploadList = h(
30582
31411
  upload_list,
@@ -30585,6 +31414,7 @@ function srcvue_type_script_lang_js_noop() {}
30585
31414
  disabled: this.uploadDisabled,
30586
31415
  listType: this.listType,
30587
31416
  files: this.uploadFiles,
31417
+ size: this.size,
30588
31418
 
30589
31419
  handlePreview: this.onPreview },
30590
31420
  on: {
@@ -30605,6 +31435,7 @@ function srcvue_type_script_lang_js_noop() {}
30605
31435
  props: {
30606
31436
  type: this.type,
30607
31437
  drag: this.drag,
31438
+ size: this.size,
30608
31439
  action: this.action,
30609
31440
  multiple: this.multiple,
30610
31441
  'before-upload': this.beforeUpload,
@@ -30614,6 +31445,7 @@ function srcvue_type_script_lang_js_noop() {}
30614
31445
  data: this.data,
30615
31446
  accept: this.accept,
30616
31447
  fileList: this.uploadFiles,
31448
+ showFileList: this.showFileList,
30617
31449
  autoUpload: this.autoUpload,
30618
31450
  listType: this.listType,
30619
31451
  disabled: this.uploadDisabled,
@@ -30630,14 +31462,33 @@ function srcvue_type_script_lang_js_noop() {}
30630
31462
  ref: 'upload-inner'
30631
31463
  };
30632
31464
 
30633
- var trigger = this.$slots.trigger || this.$slots.default;
31465
+ var hideUploadInput = !this.showFileList && this.listType === 'picture-card' && this.limit === 1;
31466
+ var slotDefault = this.$slots.default;
31467
+ if (this.drag) {
31468
+ // 拖动文件上传
31469
+ if (this.limit === 1 && !this.showFileList) {
31470
+ slotDefault = this.uploadFiles.length > 0 ? uploadFile : [this.$slots.default, this.$slots.tip];
31471
+ } else {
31472
+ slotDefault = [this.$slots.default, this.$slots.tip];
31473
+ }
31474
+ } else if (hideUploadInput) {
31475
+ // 单个图片上传(不显示图片墙)
31476
+ slotDefault = [uploadPicture, this.$slots.default];
31477
+ } else {
31478
+ slotDefault = this.$slots.default;
31479
+ }
31480
+
31481
+ var trigger = this.$slots.trigger || slotDefault;
30634
31482
  var uploadComponent = h(
30635
31483
  'upload',
30636
31484
  uploadData,
30637
31485
  [trigger]
30638
31486
  );
30639
-
30640
- return h('div', [this.listType === 'picture-card' ? uploadList : '', this.$slots.trigger ? [uploadComponent, this.$slots.default] : uploadComponent, this.$slots.tip, this.listType !== 'picture-card' ? uploadList : '']);
31487
+ return h(
31488
+ 'div',
31489
+ { 'class': { 'el-upload--wrap': true, 'el-upload-bg': this.background } },
31490
+ [this.listType === 'picture-card' ? uploadList : '', this.$slots.trigger ? [uploadComponent, this.$slots.default] : uploadComponent, !this.drag && this.$slots.tip, this.listType !== 'picture-card' ? uploadList : '']
31491
+ );
30641
31492
  }
30642
31493
  });
30643
31494
  // CONCATENATED MODULE: ./packages/upload/src/index.vue?vue&type=script&lang=js&
@@ -31208,7 +32059,7 @@ var mainvue_type_template_id_455b9f60_render = function() {
31208
32059
  ]),
31209
32060
  _vm.showClose
31210
32061
  ? _c("i", {
31211
- staticClass: "el-message__closeBtn el-icon-close",
32062
+ staticClass: "el-message__closeBtn iov-icon-close",
31212
32063
  on: { click: _vm.close }
31213
32064
  })
31214
32065
  : _vm._e()
@@ -31254,9 +32105,9 @@ mainvue_type_template_id_455b9f60_render._withStripped = true
31254
32105
 
31255
32106
  var src_mainvue_type_script_lang_js_typeMap = {
31256
32107
  success: 'success',
31257
- info: 'info',
32108
+ info: 'explain',
31258
32109
  warning: 'warning',
31259
- error: 'error'
32110
+ error: 'fail'
31260
32111
  };
31261
32112
 
31262
32113
  /* harmony default export */ var message_src_mainvue_type_script_lang_js_ = ({
@@ -31271,7 +32122,7 @@ var src_mainvue_type_script_lang_js_typeMap = {
31271
32122
  onClose: null,
31272
32123
  showClose: false,
31273
32124
  closed: false,
31274
- verticalOffset: 20,
32125
+ verticalOffset: 46,
31275
32126
  timer: null,
31276
32127
  dangerouslyUseHTMLString: false,
31277
32128
  center: false
@@ -31281,7 +32132,7 @@ var src_mainvue_type_script_lang_js_typeMap = {
31281
32132
 
31282
32133
  computed: {
31283
32134
  typeClass: function typeClass() {
31284
- return this.type && !this.iconClass ? 'el-message__icon el-icon-' + src_mainvue_type_script_lang_js_typeMap[this.type] : '';
32135
+ return this.type && !this.iconClass ? 'el-message__icon iov-icon-fill-' + src_mainvue_type_script_lang_js_typeMap[this.type] : '';
31285
32136
  },
31286
32137
  positionStyle: function positionStyle() {
31287
32138
  return {
@@ -31406,7 +32257,7 @@ var main_Message = function Message(options) {
31406
32257
  }
31407
32258
  message_src_main_instance.$mount();
31408
32259
  document.body.appendChild(message_src_main_instance.$el);
31409
- var verticalOffset = options.offset || 20;
32260
+ var verticalOffset = options.offset || 46;
31410
32261
  main_instances.forEach(function (item) {
31411
32262
  verticalOffset += item.$el.offsetHeight + 16;
31412
32263
  });
@@ -32705,7 +33556,7 @@ mainvue_type_template_id_5d5d1482_render._withStripped = true
32705
33556
  // CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=template&id=5d5d1482&
32706
33557
 
32707
33558
  // EXTERNAL MODULE: external "throttle-debounce/throttle"
32708
- var throttle_ = __webpack_require__(25);
33559
+ var throttle_ = __webpack_require__(26);
32709
33560
  var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
32710
33561
 
32711
33562
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/main.vue?vue&type=script&lang=js&
@@ -34247,7 +35098,7 @@ cascadervue_type_template_id_032537a6_render._withStripped = true
34247
35098
  // CONCATENATED MODULE: ./packages/cascader/src/cascader.vue?vue&type=template&id=032537a6&
34248
35099
 
34249
35100
  // EXTERNAL MODULE: external "iov-design/lib/cascader-panel"
34250
- var cascader_panel_ = __webpack_require__(44);
35101
+ var cascader_panel_ = __webpack_require__(45);
34251
35102
  var cascader_panel_default = /*#__PURE__*/__webpack_require__.n(cascader_panel_);
34252
35103
 
34253
35104
  // EXTERNAL MODULE: external "iov-design/lib/utils/aria-utils"
@@ -40398,7 +41249,7 @@ cascader_panelvue_type_template_id_34932346_render._withStripped = true
40398
41249
  // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-panel.vue?vue&type=template&id=34932346&
40399
41250
 
40400
41251
  // EXTERNAL MODULE: external "iov-design/lib/radio"
40401
- var radio_ = __webpack_require__(45);
41252
+ var radio_ = __webpack_require__(46);
40402
41253
  var radio_default = /*#__PURE__*/__webpack_require__.n(radio_);
40403
41254
 
40404
41255
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-node.vue?vue&type=script&lang=js&
@@ -42208,7 +43059,7 @@ mainvue_type_template_id_76339aa7_render._withStripped = true
42208
43059
  // CONCATENATED MODULE: ./packages/statistic/src/main.vue?vue&type=template&id=76339aa7&
42209
43060
 
42210
43061
  // EXTERNAL MODULE: external "iov-design/lib/utils/lodash"
42211
- var lodash_ = __webpack_require__(28);
43062
+ var lodash_ = __webpack_require__(29);
42212
43063
 
42213
43064
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/statistic/src/main.vue?vue&type=script&lang=js&
42214
43065
  //
@@ -42550,7 +43401,7 @@ mainvue_type_template_id_048de730_render._withStripped = true
42550
43401
  // CONCATENATED MODULE: ./packages/popconfirm/src/main.vue?vue&type=template&id=048de730&
42551
43402
 
42552
43403
  // EXTERNAL MODULE: external "iov-design/lib/popover"
42553
- var popover_ = __webpack_require__(46);
43404
+ var popover_ = __webpack_require__(47);
42554
43405
  var popover_default = /*#__PURE__*/__webpack_require__.n(popover_);
42555
43406
 
42556
43407
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/popconfirm/src/main.vue?vue&type=script&lang=js&
@@ -43091,7 +43942,10 @@ var IMG = {
43091
43942
  type: Number,
43092
43943
  default: 1
43093
43944
  },
43094
- imageSize: Number,
43945
+ imageSize: {
43946
+ type: Number,
43947
+ default: 140
43948
+ },
43095
43949
  description: {
43096
43950
  type: String,
43097
43951
  default: ''
@@ -44050,7 +44904,7 @@ if (typeof window !== 'undefined' && window.Vue) {
44050
44904
  }
44051
44905
 
44052
44906
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
44053
- version: '2.15.45',
44907
+ version: '2.15.47',
44054
44908
  locale: lib_locale_default.a.use,
44055
44909
  i18n: lib_locale_default.a.i18n,
44056
44910
  install: src_install,