iov-design 2.15.46 → 2.15.48

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 (137) 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 +9 -9
  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 +9 -9
  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 +968 -163
  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 +9 -9
  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.dc22a8c4.png +1 -0
  73. package/lib/static/excel.f44318e.png +0 -0
  74. package/lib/static/excel.f44318e0.png +0 -0
  75. package/lib/static/file.4ed3551.png +0 -0
  76. package/lib/static/file.4ed35511.png +0 -0
  77. package/lib/static/file.c0509952.png +1 -0
  78. package/lib/static/img.8229bb3e.png +1 -0
  79. package/lib/static/img.cd179e5.png +0 -0
  80. package/lib/static/img.cd179e5b.png +0 -0
  81. package/lib/static/pdf.79cb57f.png +0 -0
  82. package/lib/static/pdf.79cb57f8.png +0 -0
  83. package/lib/static/pdf.f5235ea1.png +1 -0
  84. package/lib/static/ppt.5eedddef.png +1 -0
  85. package/lib/static/ppt.eed4918.png +0 -0
  86. package/lib/static/ppt.eed4918e.png +0 -0
  87. package/lib/static/word.35070ef.png +0 -0
  88. package/lib/static/word.35070ef0.png +0 -0
  89. package/lib/static/word.5fe9189c.png +1 -0
  90. package/lib/static/zip.dca21a8.png +0 -0
  91. package/lib/static/zip.dca21a88.png +0 -0
  92. package/lib/static/zip.e2bfc796.png +1 -0
  93. package/lib/statistic.js +4 -4
  94. package/lib/step.js +2 -2
  95. package/lib/steps.js +9 -9
  96. package/lib/submenu.js +4 -4
  97. package/lib/switch.js +2 -2
  98. package/lib/tab-pane.js +2 -2
  99. package/lib/table-column.js +2 -2
  100. package/lib/table.js +23 -15
  101. package/lib/tabs.js +2 -2
  102. package/lib/tag.js +2 -2
  103. package/lib/theme-chalk/assets/img_fail.png +0 -0
  104. package/lib/theme-chalk/assets/img_placeholder.png +0 -0
  105. package/lib/theme-chalk/base.css +1 -1
  106. package/lib/theme-chalk/dialog.css +1 -1
  107. package/lib/theme-chalk/index.css +1 -1
  108. package/lib/theme-chalk/iovfont.css +1 -1
  109. package/lib/theme-chalk/upload.css +1 -1
  110. package/lib/time-picker.js +12 -12
  111. package/lib/time-select.js +9 -9
  112. package/lib/timeline-item.js +2 -2
  113. package/lib/timeline.js +2 -2
  114. package/lib/tooltip.js +2 -2
  115. package/lib/transfer.js +11 -11
  116. package/lib/tree.js +2 -2
  117. package/lib/upload.js +920 -119
  118. package/package.json +1 -1
  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/dialog.scss +4 -0
  122. package/packages/theme-chalk/src/iovfont.scss +3 -3
  123. package/packages/theme-chalk/src/upload.scss +568 -603
  124. package/packages/upload/src/assets/excel.png +0 -0
  125. package/packages/upload/src/assets/file.png +0 -0
  126. package/packages/upload/src/assets/img.png +0 -0
  127. package/packages/upload/src/assets/pdf.png +0 -0
  128. package/packages/upload/src/assets/ppt.png +0 -0
  129. package/packages/upload/src/assets/word.png +0 -0
  130. package/packages/upload/src/assets/zip.png +0 -0
  131. package/packages/upload/src/index.vue +73 -5
  132. package/packages/upload/src/upload-file.vue +90 -0
  133. package/packages/upload/src/upload-list.vue +52 -50
  134. package/packages/upload/src/upload-picture.vue +90 -0
  135. package/packages/upload/src/upload.vue +231 -211
  136. package/packages/upload/src/utils.js +30 -0
  137. 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.e2bfc796.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.8229bb3e.png";
388
+
389
+ /***/ }),
390
+ /* 50 */
391
+ /***/ (function(module, exports, __webpack_require__) {
392
+
393
+ module.exports = __webpack_require__.p + "static/pdf.f5235ea1.png";
394
+
395
+ /***/ }),
396
+ /* 51 */
397
+ /***/ (function(module, exports, __webpack_require__) {
398
+
399
+ module.exports = __webpack_require__.p + "static/excel.dc22a8c4.png";
400
+
401
+ /***/ }),
402
+ /* 52 */
403
+ /***/ (function(module, exports, __webpack_require__) {
404
+
405
+ module.exports = __webpack_require__.p + "static/ppt.5eedddef.png";
406
+
407
+ /***/ }),
408
+ /* 53 */
409
+ /***/ (function(module, exports, __webpack_require__) {
410
+
411
+ module.exports = __webpack_require__.p + "static/word.5fe9189c.png";
412
+
413
+ /***/ }),
414
+ /* 54 */
415
+ /***/ (function(module, exports, __webpack_require__) {
416
+
417
+ module.exports = __webpack_require__.p + "static/file.c0509952.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"
@@ -1841,7 +1883,7 @@ autocomplete_suggestionsvue_type_template_id_cd10dcf0_render._withStripped = tru
1841
1883
  // CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=template&id=cd10dcf0&
1842
1884
 
1843
1885
  // EXTERNAL MODULE: external "iov-design/lib/utils/vue-popper"
1844
- var vue_popper_ = __webpack_require__(5);
1886
+ var vue_popper_ = __webpack_require__(4);
1845
1887
  var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
1846
1888
 
1847
1889
  // EXTERNAL MODULE: external "iov-design/lib/scrollbar"
@@ -2291,7 +2333,7 @@ var button_ = __webpack_require__(13);
2291
2333
  var button_default = /*#__PURE__*/__webpack_require__.n(button_);
2292
2334
 
2293
2335
  // EXTERNAL MODULE: external "iov-design/lib/button-group"
2294
- var button_group_ = __webpack_require__(29);
2336
+ var button_group_ = __webpack_require__(30);
2295
2337
  var button_group_default = /*#__PURE__*/__webpack_require__.n(button_group_);
2296
2338
 
2297
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&
@@ -4059,7 +4101,7 @@ menu_itemvue_type_template_id_2a5dbfea_render._withStripped = true
4059
4101
  // CONCATENATED MODULE: ./packages/menu/src/menu-item.vue?vue&type=template&id=2a5dbfea&
4060
4102
 
4061
4103
  // EXTERNAL MODULE: external "iov-design/lib/tooltip"
4062
- var tooltip_ = __webpack_require__(26);
4104
+ var tooltip_ = __webpack_require__(27);
4063
4105
  var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_);
4064
4106
 
4065
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&
@@ -8451,18 +8493,18 @@ if (false) { var option_api; }
8451
8493
  option_component.options.__file = "packages/select/src/option.vue"
8452
8494
  /* harmony default export */ var src_option = (option_component.exports);
8453
8495
  // EXTERNAL MODULE: external "iov-design/lib/tag"
8454
- var tag_ = __webpack_require__(30);
8496
+ var tag_ = __webpack_require__(31);
8455
8497
  var tag_default = /*#__PURE__*/__webpack_require__.n(tag_);
8456
8498
 
8457
8499
  // EXTERNAL MODULE: external "iov-design/lib/empty"
8458
- var empty_ = __webpack_require__(31);
8500
+ var empty_ = __webpack_require__(32);
8459
8501
  var empty_default = /*#__PURE__*/__webpack_require__.n(empty_);
8460
8502
 
8461
8503
  // EXTERNAL MODULE: external "iov-design/lib/utils/resize-event"
8462
8504
  var resize_event_ = __webpack_require__(15);
8463
8505
 
8464
8506
  // EXTERNAL MODULE: external "iov-design/lib/utils/scroll-into-view"
8465
- var scroll_into_view_ = __webpack_require__(27);
8507
+ var scroll_into_view_ = __webpack_require__(28);
8466
8508
  var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_view_);
8467
8509
 
8468
8510
  // CONCATENATED MODULE: ./packages/select/src/navigation-mixin.js
@@ -10280,10 +10322,10 @@ var checkbox_ = __webpack_require__(14);
10280
10322
  var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
10281
10323
 
10282
10324
  // EXTERNAL MODULE: external "throttle-debounce"
10283
- var external_throttle_debounce_ = __webpack_require__(37);
10325
+ var external_throttle_debounce_ = __webpack_require__(38);
10284
10326
 
10285
10327
  // EXTERNAL MODULE: external "normalize-wheel"
10286
- var external_normalize_wheel_ = __webpack_require__(40);
10328
+ var external_normalize_wheel_ = __webpack_require__(41);
10287
10329
  var external_normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(external_normalize_wheel_);
10288
10330
 
10289
10331
  // CONCATENATED MODULE: ./src/directives/mousewheel.js
@@ -11759,7 +11801,7 @@ function mapStates(mapper) {
11759
11801
  return res;
11760
11802
  };
11761
11803
  // EXTERNAL MODULE: external "iov-design/lib/utils/scrollbar-width"
11762
- var scrollbar_width_ = __webpack_require__(32);
11804
+ var scrollbar_width_ = __webpack_require__(33);
11763
11805
  var scrollbar_width_default = /*#__PURE__*/__webpack_require__.n(scrollbar_width_);
11764
11806
 
11765
11807
  // CONCATENATED MODULE: ./packages/table/src/table-layout.js
@@ -12887,7 +12929,7 @@ var dropdowns = [];
12887
12929
  }
12888
12930
  });
12889
12931
  // EXTERNAL MODULE: external "iov-design/lib/checkbox-group"
12890
- var checkbox_group_ = __webpack_require__(33);
12932
+ var checkbox_group_ = __webpack_require__(34);
12891
12933
  var checkbox_group_default = /*#__PURE__*/__webpack_require__.n(checkbox_group_);
12892
12934
 
12893
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&
@@ -22893,7 +22935,7 @@ var lib_locale_ = __webpack_require__(12);
22893
22935
  var lib_locale_default = /*#__PURE__*/__webpack_require__.n(lib_locale_);
22894
22936
 
22895
22937
  // EXTERNAL MODULE: external "iov-design/lib/utils/aria-dialog"
22896
- var aria_dialog_ = __webpack_require__(41);
22938
+ var aria_dialog_ = __webpack_require__(42);
22897
22939
  var aria_dialog_default = /*#__PURE__*/__webpack_require__.n(aria_dialog_);
22898
22940
 
22899
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&
@@ -24046,7 +24088,7 @@ form_itemvue_type_template_id_b6f3db6c_render._withStripped = true
24046
24088
  // CONCATENATED MODULE: ./packages/form/src/form-item.vue?vue&type=template&id=b6f3db6c&
24047
24089
 
24048
24090
  // EXTERNAL MODULE: external "async-validator"
24049
- var external_async_validator_ = __webpack_require__(42);
24091
+ var external_async_validator_ = __webpack_require__(43);
24050
24092
  var external_async_validator_default = /*#__PURE__*/__webpack_require__.n(external_async_validator_);
24051
24093
 
24052
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&
@@ -28167,7 +28209,7 @@ mainvue_type_template_id_32708644_render._withStripped = true
28167
28209
  // CONCATENATED MODULE: ./packages/slider/src/main.vue?vue&type=template&id=32708644&
28168
28210
 
28169
28211
  // EXTERNAL MODULE: external "iov-design/lib/input-number"
28170
- var input_number_ = __webpack_require__(43);
28212
+ var input_number_ = __webpack_require__(44);
28171
28213
  var input_number_default = /*#__PURE__*/__webpack_require__.n(input_number_);
28172
28214
 
28173
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&
@@ -29128,7 +29170,7 @@ if (false) { var loading_api; }
29128
29170
  loading_component.options.__file = "packages/loading/src/loading.vue"
29129
29171
  /* harmony default export */ var loading = (loading_component.exports);
29130
29172
  // EXTERNAL MODULE: external "iov-design/lib/utils/after-leave"
29131
- var after_leave_ = __webpack_require__(34);
29173
+ var after_leave_ = __webpack_require__(35);
29132
29174
  var after_leave_default = /*#__PURE__*/__webpack_require__.n(after_leave_);
29133
29175
 
29134
29176
  // CONCATENATED MODULE: ./packages/loading/src/directive.js
@@ -29568,7 +29610,7 @@ var upload_listvue_type_template_id_173fedf5_render = function() {
29568
29610
  var _h = _vm.$createElement
29569
29611
  var _c = _vm._self._c || _h
29570
29612
  return _c(
29571
- "transition-group",
29613
+ "ul",
29572
29614
  {
29573
29615
  class: [
29574
29616
  "el-upload-list",
@@ -29584,24 +29626,12 @@ var upload_listvue_type_template_id_173fedf5_render = function() {
29584
29626
  key: file.uid,
29585
29627
  class: [
29586
29628
  "el-upload-list__item",
29629
+ "el-upload-list__item-" + _vm.size,
29587
29630
  "is-" + file.status,
29588
29631
  _vm.focusing ? "focusing" : ""
29589
29632
  ],
29590
29633
  attrs: { tabindex: "0" },
29591
29634
  on: {
29592
- keydown: function($event) {
29593
- if (
29594
- !("button" in $event) &&
29595
- _vm._k($event.keyCode, "delete", [8, 46], $event.key, [
29596
- "Backspace",
29597
- "Delete",
29598
- "Del"
29599
- ])
29600
- ) {
29601
- return null
29602
- }
29603
- !_vm.disabled && _vm.$emit("remove", file)
29604
- },
29605
29635
  focus: function($event) {
29606
29636
  _vm.focusing = true
29607
29637
  },
@@ -29617,45 +29647,120 @@ var upload_listvue_type_template_id_173fedf5_render = function() {
29617
29647
  _vm._t(
29618
29648
  "default",
29619
29649
  [
29620
- file.status !== "uploading" &&
29621
- ["picture-card", "picture"].indexOf(_vm.listType) > -1
29622
- ? _c("img", {
29623
- staticClass: "el-upload-list__item-thumbnail",
29624
- attrs: { src: file.url, alt: "" }
29625
- })
29626
- : _vm._e(),
29627
- _c(
29628
- "a",
29629
- {
29630
- staticClass: "el-upload-list__item-name",
29631
- on: {
29632
- click: function($event) {
29633
- _vm.handleClick(file)
29634
- }
29635
- }
29636
- },
29637
- [
29638
- _c("i", { staticClass: "el-icon-document" }),
29639
- _vm._v(_vm._s(file.name) + "\n ")
29640
- ]
29641
- ),
29642
- _c(
29643
- "label",
29644
- { staticClass: "el-upload-list__item-status-label" },
29645
- [
29646
- _c("i", {
29647
- class: {
29648
- "el-icon-upload-success": true,
29649
- "el-icon-circle-check": _vm.listType === "text",
29650
- "el-icon-check":
29651
- ["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
+ }
29652
29659
  }
29653
- })
29654
- ]
29655
- ),
29656
- !_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)
29657
29762
  ? _c("i", {
29658
- staticClass: "el-icon-close",
29763
+ staticClass: "iov-icon-delete",
29659
29764
  on: {
29660
29765
  click: function($event) {
29661
29766
  _vm.$emit("remove", file)
@@ -29663,49 +29768,37 @@ var upload_listvue_type_template_id_173fedf5_render = function() {
29663
29768
  }
29664
29769
  })
29665
29770
  : _vm._e(),
29666
- !_vm.disabled
29667
- ? _c("i", { staticClass: "el-icon-close-tip" }, [
29668
- _vm._v(_vm._s(_vm.t("el.upload.deleteTip")))
29669
- ])
29670
- : _vm._e(),
29671
- file.status === "uploading"
29672
- ? _c("el-progress", {
29673
- attrs: {
29674
- type: _vm.listType === "picture-card" ? "circle" : "line",
29675
- "stroke-width": _vm.listType === "picture-card" ? 6 : 2,
29676
- percentage: _vm.parsePercentage(file.percentage)
29677
- }
29678
- })
29679
- : _vm._e(),
29680
- _vm.listType === "picture-card"
29771
+ _vm.listType === "picture-card" && file.status === "success"
29681
29772
  ? _c("span", { staticClass: "el-upload-list__item-actions" }, [
29682
- _vm.handlePreview && _vm.listType === "picture-card"
29683
- ? _c(
29684
- "span",
29685
- {
29686
- staticClass: "el-upload-list__item-preview",
29687
- on: {
29688
- click: function($event) {
29689
- _vm.handlePreview(file)
29690
- }
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)
29691
29781
  }
29692
- },
29693
- [_c("i", { staticClass: "el-icon-zoom-in" })]
29694
- )
29782
+ }
29783
+ })
29695
29784
  : _vm._e(),
29696
29785
  !_vm.disabled
29697
- ? _c(
29698
- "span",
29699
- {
29700
- staticClass: "el-upload-list__item-delete",
29701
- on: {
29702
- click: function($event) {
29703
- _vm.$emit("remove", file)
29704
- }
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)
29705
29793
  }
29706
- },
29707
- [_c("i", { staticClass: "el-icon-delete" })]
29708
- )
29794
+ }
29795
+ })
29796
+ : _vm._e(),
29797
+ !_vm.disabled
29798
+ ? _c("i", {
29799
+ staticClass:
29800
+ "el-upload-list__item-update iov-icon-update"
29801
+ })
29709
29802
  : _vm._e()
29710
29803
  ])
29711
29804
  : _vm._e()
@@ -29726,9 +29819,55 @@ upload_listvue_type_template_id_173fedf5_render._withStripped = true
29726
29819
  // CONCATENATED MODULE: ./packages/upload/src/upload-list.vue?vue&type=template&id=173fedf5&
29727
29820
 
29728
29821
  // EXTERNAL MODULE: external "iov-design/lib/progress"
29729
- var progress_ = __webpack_require__(35);
29822
+ var progress_ = __webpack_require__(24);
29730
29823
  var progress_default = /*#__PURE__*/__webpack_require__.n(progress_);
29731
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
+ }
29732
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&
29733
29872
  //
29734
29873
  //
@@ -29794,19 +29933,593 @@ var progress_default = /*#__PURE__*/__webpack_require__.n(progress_);
29794
29933
  //
29795
29934
  //
29796
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
+ //
29797
30231
 
29798
30232
 
29799
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
+ },
29800
30242
 
29801
- /* harmony default export */ var upload_listvue_type_script_lang_js_ = ({
30243
+ components: { ElProgress: progress_default.a },
29802
30244
 
29803
- 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
29804
30274
 
29805
- mixins: [locale_default.a],
29806
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',
29807
30519
  data: function data() {
29808
30520
  return {
29809
- focusing: false
30521
+ focusing: false,
30522
+ iconStyle: iconStyle
29810
30523
  };
29811
30524
  },
29812
30525
 
@@ -29823,6 +30536,7 @@ var progress_default = /*#__PURE__*/__webpack_require__.n(progress_);
29823
30536
  type: Boolean,
29824
30537
  default: false
29825
30538
  },
30539
+ size: String,
29826
30540
  handlePreview: Function,
29827
30541
  listType: String
29828
30542
  },
@@ -29835,9 +30549,9 @@ var progress_default = /*#__PURE__*/__webpack_require__.n(progress_);
29835
30549
  }
29836
30550
  }
29837
30551
  });
29838
- // CONCATENATED MODULE: ./packages/upload/src/upload-list.vue?vue&type=script&lang=js&
29839
- /* harmony default export */ var src_upload_listvue_type_script_lang_js_ = (upload_listvue_type_script_lang_js_);
29840
- // 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
29841
30555
 
29842
30556
 
29843
30557
 
@@ -29845,10 +30559,10 @@ var progress_default = /*#__PURE__*/__webpack_require__.n(progress_);
29845
30559
 
29846
30560
  /* normalize component */
29847
30561
 
29848
- var upload_list_component = normalizeComponent(
29849
- src_upload_listvue_type_script_lang_js_,
29850
- upload_listvue_type_template_id_173fedf5_render,
29851
- 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,
29852
30566
  false,
29853
30567
  null,
29854
30568
  null,
@@ -29857,11 +30571,11 @@ var upload_list_component = normalizeComponent(
29857
30571
  )
29858
30572
 
29859
30573
  /* hot reload */
29860
- if (false) { var upload_list_api; }
29861
- upload_list_component.options.__file = "packages/upload/src/upload-list.vue"
29862
- /* 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);
29863
30577
  // EXTERNAL MODULE: external "babel-helper-vue-jsx-merge-props"
29864
- var external_babel_helper_vue_jsx_merge_props_ = __webpack_require__(24);
30578
+ var external_babel_helper_vue_jsx_merge_props_ = __webpack_require__(25);
29865
30579
  var external_babel_helper_vue_jsx_merge_props_default = /*#__PURE__*/__webpack_require__.n(external_babel_helper_vue_jsx_merge_props_);
29866
30580
 
29867
30581
  // CONCATENATED MODULE: ./packages/upload/src/ajax.js
@@ -30115,6 +30829,7 @@ upload_dragger_component.options.__file = "packages/upload/src/upload-dragger.vu
30115
30829
  onError: Function,
30116
30830
  beforeUpload: Function,
30117
30831
  drag: Boolean,
30832
+ size: String,
30118
30833
  onPreview: {
30119
30834
  type: Function,
30120
30835
  default: function _default() {}
@@ -30143,6 +30858,12 @@ upload_dragger_component.options.__file = "packages/upload/src/upload-dragger.vu
30143
30858
  },
30144
30859
 
30145
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
+
30146
30867
  methods: {
30147
30868
  isImage: function isImage(str) {
30148
30869
  return str.indexOf('image') !== -1;
@@ -30151,6 +30872,10 @@ upload_dragger_component.options.__file = "packages/upload/src/upload-dragger.vu
30151
30872
  var files = ev.target.files;
30152
30873
 
30153
30874
  if (!files) return;
30875
+
30876
+ if (this.drag && this.limit === 1 || this.hideUploadInput) {
30877
+ this.fileList.length = [];
30878
+ }
30154
30879
  this.uploadFiles(files);
30155
30880
  },
30156
30881
  uploadFiles: function uploadFiles(files) {
@@ -30274,6 +30999,8 @@ upload_dragger_component.options.__file = "packages/upload/src/upload-dragger.vu
30274
30999
  },
30275
31000
 
30276
31001
  render: function render(h) {
31002
+ var _class;
31003
+
30277
31004
  var handleClick = this.handleClick,
30278
31005
  drag = this.drag,
30279
31006
  name = this.name,
@@ -30283,12 +31010,14 @@ upload_dragger_component.options.__file = "packages/upload/src/upload-dragger.vu
30283
31010
  listType = this.listType,
30284
31011
  uploadFiles = this.uploadFiles,
30285
31012
  disabled = this.disabled,
30286
- handleKeydown = this.handleKeydown;
31013
+ handleKeydown = this.handleKeydown,
31014
+ size = this.size;
30287
31015
 
30288
31016
  var data = {
30289
- class: {
30290
- 'el-upload': true
30291
- },
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),
30292
31021
  on: {
30293
31022
  click: handleClick,
30294
31023
  keydown: handleKeydown
@@ -30308,7 +31037,7 @@ upload_dragger_component.options.__file = "packages/upload/src/upload-dragger.vu
30308
31037
  'file': uploadFiles
30309
31038
  }
30310
31039
  },
30311
- [this.$slots.default]
31040
+ [this.$slots.default, this.$slots.tip]
30312
31041
  ) : this.$slots.default, h('input', { 'class': 'el-upload__input', attrs: { type: 'file', name: name, multiple: multiple, accept: accept },
30313
31042
  ref: 'input', on: {
30314
31043
  'change': handleChange
@@ -30349,6 +31078,8 @@ upload_component.options.__file = "packages/upload/src/upload.vue"
30349
31078
 
30350
31079
 
30351
31080
 
31081
+
31082
+
30352
31083
  function srcvue_type_script_lang_js_noop() {}
30353
31084
 
30354
31085
  /* harmony default export */ var srcvue_type_script_lang_js_ = ({
@@ -30359,6 +31090,8 @@ function srcvue_type_script_lang_js_noop() {}
30359
31090
  components: {
30360
31091
  ElProgress: progress_default.a,
30361
31092
  UploadList: upload_list,
31093
+ UploadFile: upload_file,
31094
+ UploadPicture: upload_picture,
30362
31095
  Upload: src_upload
30363
31096
  },
30364
31097
 
@@ -30449,6 +31182,11 @@ function srcvue_type_script_lang_js_noop() {}
30449
31182
  onExceed: {
30450
31183
  type: Function,
30451
31184
  default: srcvue_type_script_lang_js_noop
31185
+ },
31186
+ background: Boolean,
31187
+ size: {
31188
+ type: String,
31189
+ default: 'medium'
30452
31190
  }
30453
31191
  },
30454
31192
 
@@ -30622,7 +31360,52 @@ function srcvue_type_script_lang_js_noop() {}
30622
31360
  var _this4 = this;
30623
31361
 
30624
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,
30625
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
+ );
30626
31409
  if (this.showFileList) {
30627
31410
  uploadList = h(
30628
31411
  upload_list,
@@ -30631,6 +31414,7 @@ function srcvue_type_script_lang_js_noop() {}
30631
31414
  disabled: this.uploadDisabled,
30632
31415
  listType: this.listType,
30633
31416
  files: this.uploadFiles,
31417
+ size: this.size,
30634
31418
 
30635
31419
  handlePreview: this.onPreview },
30636
31420
  on: {
@@ -30651,6 +31435,7 @@ function srcvue_type_script_lang_js_noop() {}
30651
31435
  props: {
30652
31436
  type: this.type,
30653
31437
  drag: this.drag,
31438
+ size: this.size,
30654
31439
  action: this.action,
30655
31440
  multiple: this.multiple,
30656
31441
  'before-upload': this.beforeUpload,
@@ -30660,6 +31445,7 @@ function srcvue_type_script_lang_js_noop() {}
30660
31445
  data: this.data,
30661
31446
  accept: this.accept,
30662
31447
  fileList: this.uploadFiles,
31448
+ showFileList: this.showFileList,
30663
31449
  autoUpload: this.autoUpload,
30664
31450
  listType: this.listType,
30665
31451
  disabled: this.uploadDisabled,
@@ -30676,14 +31462,33 @@ function srcvue_type_script_lang_js_noop() {}
30676
31462
  ref: 'upload-inner'
30677
31463
  };
30678
31464
 
30679
- 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;
30680
31482
  var uploadComponent = h(
30681
31483
  'upload',
30682
31484
  uploadData,
30683
31485
  [trigger]
30684
31486
  );
30685
-
30686
- 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
+ );
30687
31492
  }
30688
31493
  });
30689
31494
  // CONCATENATED MODULE: ./packages/upload/src/index.vue?vue&type=script&lang=js&
@@ -32751,7 +33556,7 @@ mainvue_type_template_id_5d5d1482_render._withStripped = true
32751
33556
  // CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=template&id=5d5d1482&
32752
33557
 
32753
33558
  // EXTERNAL MODULE: external "throttle-debounce/throttle"
32754
- var throttle_ = __webpack_require__(25);
33559
+ var throttle_ = __webpack_require__(26);
32755
33560
  var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
32756
33561
 
32757
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&
@@ -34293,7 +35098,7 @@ cascadervue_type_template_id_032537a6_render._withStripped = true
34293
35098
  // CONCATENATED MODULE: ./packages/cascader/src/cascader.vue?vue&type=template&id=032537a6&
34294
35099
 
34295
35100
  // EXTERNAL MODULE: external "iov-design/lib/cascader-panel"
34296
- var cascader_panel_ = __webpack_require__(44);
35101
+ var cascader_panel_ = __webpack_require__(45);
34297
35102
  var cascader_panel_default = /*#__PURE__*/__webpack_require__.n(cascader_panel_);
34298
35103
 
34299
35104
  // EXTERNAL MODULE: external "iov-design/lib/utils/aria-utils"
@@ -40444,7 +41249,7 @@ cascader_panelvue_type_template_id_34932346_render._withStripped = true
40444
41249
  // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-panel.vue?vue&type=template&id=34932346&
40445
41250
 
40446
41251
  // EXTERNAL MODULE: external "iov-design/lib/radio"
40447
- var radio_ = __webpack_require__(45);
41252
+ var radio_ = __webpack_require__(46);
40448
41253
  var radio_default = /*#__PURE__*/__webpack_require__.n(radio_);
40449
41254
 
40450
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&
@@ -42254,7 +43059,7 @@ mainvue_type_template_id_76339aa7_render._withStripped = true
42254
43059
  // CONCATENATED MODULE: ./packages/statistic/src/main.vue?vue&type=template&id=76339aa7&
42255
43060
 
42256
43061
  // EXTERNAL MODULE: external "iov-design/lib/utils/lodash"
42257
- var lodash_ = __webpack_require__(28);
43062
+ var lodash_ = __webpack_require__(29);
42258
43063
 
42259
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&
42260
43065
  //
@@ -42596,7 +43401,7 @@ mainvue_type_template_id_048de730_render._withStripped = true
42596
43401
  // CONCATENATED MODULE: ./packages/popconfirm/src/main.vue?vue&type=template&id=048de730&
42597
43402
 
42598
43403
  // EXTERNAL MODULE: external "iov-design/lib/popover"
42599
- var popover_ = __webpack_require__(46);
43404
+ var popover_ = __webpack_require__(47);
42600
43405
  var popover_default = /*#__PURE__*/__webpack_require__.n(popover_);
42601
43406
 
42602
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&
@@ -44099,7 +44904,7 @@ if (typeof window !== 'undefined' && window.Vue) {
44099
44904
  }
44100
44905
 
44101
44906
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
44102
- version: '2.15.46',
44907
+ version: '2.15.48',
44103
44908
  locale: lib_locale_default.a.use,
44104
44909
  i18n: lib_locale_default.a.i18n,
44105
44910
  install: src_install,