vue-element-ui-x 1.1.0 → 1.2.0-beta.0

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.
@@ -2,25 +2,6 @@
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
- /***/ 4444:
6
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
7
-
8
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9
- /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
10
- /* harmony export */ });
11
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6314);
12
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
13
- // Imports
14
-
15
- var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
16
- // Module
17
- ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-eaf958fa]:root{--color-primary: #409eff;--color-success: #67c23a;--color-warning: #e6a23c;--color-danger: #f56c6c;--color-info: #909399}.el-x-filescard[data-v-eaf958fa]{width:fit-content;padding:12px;display:flex;flex-wrap:nowrap;gap:8px;align-items:center;border-radius:8px;position:relative;background:rgba(0,0,0,.06);max-width:var(--elx-files-card-max-width)}.el-x-filescard .el-x-filescard-progress[data-v-eaf958fa]{position:absolute;top:0;left:0;bottom:0;background:rgba(0,0,0,.08);border-radius:8px;transition:width .2s ease}.el-x-filescard .el-x-filescard-delete-icon[data-v-eaf958fa]{position:absolute;top:-8px;right:-6px;cursor:pointer;color:rgba(0,0,0,.4);display:none}.el-x-filescard .el-x-filescard-delete-icon[data-v-eaf958fa]:hover{color:#ff4d4f}.el-x-filescard:hover .el-x-filescard-delete-icon[data-v-eaf958fa]{display:block}.el-x-filescard-square[data-v-eaf958fa]{padding:0;margin:0}.el-x-filescard-icon[data-v-eaf958fa]{flex:none;font-size:var(--elx-files-card-icon-size)}.el-x-filescard-img[data-v-eaf958fa]{flex:none;width:var(--elx-files-card-icon-size);height:var(--elx-files-card-icon-size);border-radius:8px;object-fit:cover}.el-x-filescard-content[data-v-eaf958fa]{flex:auto;min-width:0;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;height:100%}.el-x-filescard-content .el-x-filescard-name[data-v-eaf958fa]{display:flex;flex-wrap:nowrap;max-width:100%;font-size:14px}.el-x-filescard-content .el-x-filescard-name .el-x-filescard-name-prefix[data-v-eaf958fa]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-x-filescard-content .el-x-filescard-name .el-x-filescard-name-suffix[data-v-eaf958fa]{flex:none}.el-x-filescard-content .el-x-filescard-description[data-v-eaf958fa]{flex:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(0,0,0,.4);font-size:12px}.el-x-filescard-content .el-x-filescard-description-error[data-v-eaf958fa]{color:#ff4d4f}.image-preview-container[data-v-eaf958fa]{position:relative;padding:0px;width:var(--elx-files-card-icon-size);height:var(--elx-files-card-icon-size);display:inline-block;border-radius:8px;transition:all .3s}.image-preview-container .preview-mask[data-v-eaf958fa]{position:absolute;inset:0;width:100%;display:flex;justify-content:center;align-items:center;opacity:0;background:rgba(0,0,0,.65);color:#fff;font-size:10px;transition:opacity .3s}.image-preview-container .preview-mask .el-icon-view[data-v-eaf958fa]{font-size:10px;margin-right:2px;display:flex;align-items:center;height:100%;margin-top:2px}.image-preview-container .preview-mask[data-v-eaf958fa]:hover{opacity:1;transition:opacity .3s;cursor:pointer}.image-preview-container-square .preview-mask[data-v-eaf958fa]{font-size:14px}.image-preview-container-square .preview-mask .el-icon-view[data-v-eaf958fa]{font-size:12px}.preview-mask-loading[data-v-eaf958fa]{position:absolute;inset:0;width:100%;display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.65);color:#fff;transition:all .3s}.preview-mask-loading .circle-progress[data-v-eaf958fa]{width:100% !important;height:100% !important;display:flex;justify-content:center;align-items:center}.preview-mask-loading .circle-progress .el-progress-circle[data-v-eaf958fa]{width:calc(100% - 12px) !important;height:calc(100% - 12px) !important}.preview-mask-loading .circle-progress .el-progress-circle svg>path[data-v-eaf958fa]:nth-child(1){stroke:hsla(0,0%,100%,.2);stroke-width:8px}.preview-mask-loading .circle-progress .el-progress__text[data-v-eaf958fa]{color:#fff;font-size:14px}.preview-mask-error[data-v-eaf958fa]{position:absolute;inset:0;width:100%;display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.5);font-size:12px;transition:all .3s;color:#ff4d4f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-image-viewer__progress[data-v-eaf958fa]{display:none}.fade-enter-active[data-v-eaf958fa],.fade-leave-active[data-v-eaf958fa]{transition:opacity .3s}.fade-enter[data-v-eaf958fa],.fade-leave-to[data-v-eaf958fa]{opacity:0}", ""]);
18
- // Exports
19
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
20
-
21
-
22
- /***/ }),
23
-
24
5
  /***/ 4486:
25
6
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
26
7
 
@@ -400,25 +381,6 @@ module.exports = function (list, options) {
400
381
  };
401
382
  };
402
383
 
403
- /***/ }),
404
-
405
- /***/ 5594:
406
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
407
-
408
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
409
- /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
410
- /* harmony export */ });
411
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6314);
412
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
413
- // Imports
414
-
415
- var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
416
- // Module
417
- ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-6eb5751e]:root{--color-primary: #409eff;--color-success: #67c23a;--color-warning: #e6a23c;--color-danger: #f56c6c;--color-info: #909399}.card-motion-enter-active[data-v-6eb5751e],.card-motion-move[data-v-6eb5751e],.card-motion-leave-active[data-v-6eb5751e]{transition:all .3s ease;opacity:1;transform:translateX(0)}.card-motion-enter[data-v-6eb5751e],.card-motion-leave-to[data-v-6eb5751e]{opacity:0;transform:translateX(-100%)}.card-motion-leave-active[data-v-6eb5751e]{transform:translateX(100%);opacity:0}.el-x-attachments-file-card-wrap[data-v-6eb5751e]{display:flex;height:100%;align-items:center}.el-x-attachments-upload-placeholder[data-v-6eb5751e]{display:inline-block;width:fit-content;align-self:center;margin:6px}.el-x-attachments-card[data-v-6eb5751e]{display:inline-block;vertical-align:top}.el-x-attachments-card-item[data-v-6eb5751e]{margin:6px}.el-x-attachments-prev-btn[data-v-6eb5751e],.el-x-attachments-next-btn[data-v-6eb5751e]{position:absolute;top:50%;transform:translateY(-50%);z-index:10;background-color:rgba(0,0,0,.3);color:#fff;border:none;padding:4px 0px;border-radius:3px;transition:background-color .3s ease}.el-x-attachments-prev-btn[data-v-6eb5751e]:hover,.el-x-attachments-next-btn[data-v-6eb5751e]:hover{background-color:rgba(0,0,0,.5)}.el-x-attachments-prev-btn[data-v-6eb5751e]:active,.el-x-attachments-next-btn[data-v-6eb5751e]:active{background-color:rgba(0,0,0,.7)}.el-x-attachments-prev-btn[data-v-6eb5751e]{left:8px;border-top-left-radius:0px;border-bottom-left-radius:0px}.el-x-attachments-next-btn[data-v-6eb5751e]{right:8px;border-top-right-radius:0px;border-bottom-right-radius:0px}.el-x-attachments-background[data-v-6eb5751e]{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;pointer-events:none}.el-x-attachments-background-start[data-v-6eb5751e]{position:absolute;top:0;left:0;bottom:0;width:50px;background:linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));z-index:5}.el-x-attachments-background-end[data-v-6eb5751e]{position:absolute;top:0;right:0;bottom:0;width:50px;background:linear-gradient(to left, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));z-index:5}.el-x-attachments-overflow-scrollX[data-v-6eb5751e]{height:100%;scrollbar-width:none}.el-x-attachments-overflow-scrollX[data-v-6eb5751e]::-webkit-scrollbar{display:none}.el-x-attachments-overflow-scrollY[data-v-6eb5751e]{width:100%;height:100%}.el-x-attachments-wrapper[data-v-6eb5751e]{position:relative;display:block}.el-x-attachments-upload-btn[data-v-6eb5751e]{display:flex}.el-x-attachments-upload-btn[data-v-6eb5751e] .el-upload{border:1px dashed #dcdfe6;border-radius:6px;cursor:pointer;position:relative;overflow:hidden;transition:all .3s cubic-bezier(0.645, 0.045, 0.355, 1);box-sizing:border-box;text-align:center}.el-x-attachments-upload-btn[data-v-6eb5751e] .el-upload:hover{border-color:#409eff}.el-x-attachments-upload-btn[data-v-6eb5751e] .el-upload:hover .uploader-icon{color:#409eff}.el-x-attachments-upload-btn .uploader-icon[data-v-6eb5751e]{font-size:28px;color:#8c939d;text-align:center;width:var(--el-x-attachments-upload-icon-size);height:var(--el-x-attachments-upload-icon-size);line-height:var(--el-x-attachments-upload-icon-size)}.el-x-attachments-upload-btn[data-v-6eb5751e] .el-upload-dragger{padding:0;width:auto !important;height:auto !important;background-color:rgba(0,0,0,0)}.el-x-attachments-upload-btn[data-v-6eb5751e] .el-upload-dragger:hover .el-icon{color:#409eff}.el-x-attachments-drop-area[data-v-6eb5751e]{position:absolute !important;top:0 !important;left:0 !important;width:calc(100% - 4px) !important;height:calc(100% - 4px) !important;border-radius:15px !important;border:2px dashed #409eff !important;z-index:9999 !important;display:flex !important;align-items:center !important;justify-content:center !important;flex-direction:column !important;background:rgba(225,225,225,.8) !important;backdrop-filter:blur(4px) !important;animation:dragAreaShow-6eb5751e .3s ease-in-out !important;pointer-events:none !important}.el-x-attachments-drop-area-icon[data-v-6eb5751e]{font-size:50px !important;color:#409eff !important;animation:bounce-6eb5751e 1s infinite alternate !important}.el-x-attachments-drop-area-text[data-v-6eb5751e]{font-size:16px !important;color:#409eff !important;margin-top:10px !important;text-align:center !important;width:100% !important;max-width:300px !important;font-weight:bold !important}@keyframes dragAreaShow-6eb5751e{from{opacity:0;transform:scale(0.9)}to{opacity:1;transform:scale(1)}}@keyframes bounce-6eb5751e{from{transform:translateY(0)}to{transform:translateY(-10px)}}", ""]);
418
- // Exports
419
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
420
-
421
-
422
384
  /***/ }),
423
385
 
424
386
  /***/ 6314:
@@ -493,7 +455,45 @@ module.exports = function (cssWithMappingToString) {
493
455
 
494
456
  /***/ }),
495
457
 
496
- /***/ 9442:
458
+ /***/ 7177:
459
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
460
+
461
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
462
+ /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
463
+ /* harmony export */ });
464
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6314);
465
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
466
+ // Imports
467
+
468
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
469
+ // Module
470
+ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-2a17281a]:root{--color-primary: #409eff;--color-success: #67c23a;--color-warning: #e6a23c;--color-danger: #f56c6c;--color-info: #909399}.card-motion-enter-active[data-v-2a17281a],.card-motion-move[data-v-2a17281a],.card-motion-leave-active[data-v-2a17281a]{transition:all .3s ease;opacity:1;transform:translateX(0)}.card-motion-enter[data-v-2a17281a],.card-motion-leave-to[data-v-2a17281a]{opacity:0;transform:translateX(-100%)}.card-motion-leave-active[data-v-2a17281a]{transform:translateX(100%);opacity:0}.el-x-attachments-file-card-wrap[data-v-2a17281a]{display:flex;height:100%;align-items:center}.el-x-attachments-upload-placeholder[data-v-2a17281a]{display:inline-block;width:fit-content;align-self:center;margin:6px}.el-x-attachments-card[data-v-2a17281a]{display:inline-block;vertical-align:top}.el-x-attachments-card-item[data-v-2a17281a]{margin:6px}.el-x-attachments-prev-btn[data-v-2a17281a],.el-x-attachments-next-btn[data-v-2a17281a]{position:absolute;top:50%;transform:translateY(-50%);z-index:10;background-color:rgba(0,0,0,.3);color:#fff;border:none;padding:4px 0px;border-radius:3px;transition:background-color .3s ease}.el-x-attachments-prev-btn[data-v-2a17281a]:hover,.el-x-attachments-next-btn[data-v-2a17281a]:hover{background-color:rgba(0,0,0,.5)}.el-x-attachments-prev-btn[data-v-2a17281a]:active,.el-x-attachments-next-btn[data-v-2a17281a]:active{background-color:rgba(0,0,0,.7)}.el-x-attachments-prev-btn[data-v-2a17281a]{left:8px;border-top-left-radius:0px;border-bottom-left-radius:0px}.el-x-attachments-next-btn[data-v-2a17281a]{right:8px;border-top-right-radius:0px;border-bottom-right-radius:0px}.el-x-attachments-background[data-v-2a17281a]{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;pointer-events:none}.el-x-attachments-background-start[data-v-2a17281a]{position:absolute;top:0;left:0;bottom:0;width:50px;background:linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));z-index:5}.el-x-attachments-background-end[data-v-2a17281a]{position:absolute;top:0;right:0;bottom:0;width:50px;background:linear-gradient(to left, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));z-index:5}.el-x-attachments-overflow-scrollX[data-v-2a17281a]{height:100%;scrollbar-width:none}.el-x-attachments-overflow-scrollX[data-v-2a17281a]::-webkit-scrollbar{display:none}.el-x-attachments-overflow-scrollY[data-v-2a17281a]{width:100%;height:100%}.el-x-attachments-wrapper[data-v-2a17281a]{position:relative;display:block}.el-x-attachments-upload-btn[data-v-2a17281a]{display:flex}.el-x-attachments-upload-btn[data-v-2a17281a] .el-upload{border:1px dashed #dcdfe6;border-radius:6px;cursor:pointer;position:relative;overflow:hidden;transition:all .3s cubic-bezier(0.645, 0.045, 0.355, 1);box-sizing:border-box;text-align:center}.el-x-attachments-upload-btn[data-v-2a17281a] .el-upload:hover{border-color:#409eff}.el-x-attachments-upload-btn[data-v-2a17281a] .el-upload:hover .uploader-icon{color:#409eff}.el-x-attachments-upload-btn .uploader-icon[data-v-2a17281a]{font-size:28px;color:#8c939d;text-align:center;width:var(--el-x-attachments-upload-icon-size);height:var(--el-x-attachments-upload-icon-size);line-height:var(--el-x-attachments-upload-icon-size)}.el-x-attachments-upload-btn[data-v-2a17281a] .el-upload-dragger{padding:0;width:auto !important;height:auto !important;background-color:rgba(0,0,0,0)}.el-x-attachments-upload-btn[data-v-2a17281a] .el-upload-dragger:hover .el-icon{color:#409eff}.el-x-attachments-drop-area[data-v-2a17281a]{position:absolute !important;top:0 !important;left:0 !important;width:calc(100% - 4px) !important;height:calc(100% - 4px) !important;border-radius:15px !important;border:2px dashed #409eff !important;z-index:9999 !important;display:flex !important;align-items:center !important;justify-content:center !important;flex-direction:column !important;background:rgba(225,225,225,.8) !important;backdrop-filter:blur(4px) !important;animation:dragAreaShow-2a17281a .3s ease-in-out !important;pointer-events:none !important}.el-x-attachments-drop-area-icon[data-v-2a17281a]{font-size:50px !important;color:#409eff !important;animation:bounce-2a17281a 1s infinite alternate !important}.el-x-attachments-drop-area-text[data-v-2a17281a]{font-size:16px !important;color:#409eff !important;margin-top:10px !important;text-align:center !important;width:100% !important;max-width:300px !important;font-weight:bold !important}@keyframes dragAreaShow-2a17281a{from{opacity:0;transform:scale(0.9)}to{opacity:1;transform:scale(1)}}@keyframes bounce-2a17281a{from{transform:translateY(0)}to{transform:translateY(-10px)}}", ""]);
471
+ // Exports
472
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
473
+
474
+
475
+ /***/ }),
476
+
477
+ /***/ 7492:
478
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
479
+
480
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
481
+ /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
482
+ /* harmony export */ });
483
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6314);
484
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
485
+ // Imports
486
+
487
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
488
+ // Module
489
+ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-6808a5a6]:root{--color-primary: #409eff;--color-success: #67c23a;--color-warning: #e6a23c;--color-danger: #f56c6c;--color-info: #909399}.el-x-filescard[data-v-6808a5a6]{width:fit-content;padding:12px;display:flex;flex-wrap:nowrap;gap:8px;align-items:center;border-radius:8px;position:relative;background:rgba(0,0,0,.06);max-width:var(--elx-files-card-max-width)}.el-x-filescard .el-x-filescard-progress[data-v-6808a5a6]{position:absolute;top:0;left:0;bottom:0;background:rgba(0,0,0,.08);border-radius:8px;transition:width .2s ease}.el-x-filescard .el-x-filescard-delete-icon[data-v-6808a5a6]{position:absolute;top:-8px;right:-6px;cursor:pointer;color:rgba(0,0,0,.4);display:none}.el-x-filescard .el-x-filescard-delete-icon[data-v-6808a5a6]:hover{color:#ff4d4f}.el-x-filescard:hover .el-x-filescard-delete-icon[data-v-6808a5a6]{display:block}.el-x-filescard-square[data-v-6808a5a6]{padding:0;margin:0}.el-x-filescard-icon[data-v-6808a5a6]{flex:none;font-size:var(--elx-files-card-icon-size)}.el-x-filescard-img[data-v-6808a5a6]{flex:none;width:var(--elx-files-card-icon-size);height:var(--elx-files-card-icon-size);border-radius:8px;object-fit:cover}.el-x-filescard-content[data-v-6808a5a6]{flex:auto;min-width:0;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;height:100%}.el-x-filescard-content .el-x-filescard-name[data-v-6808a5a6]{display:flex;flex-wrap:nowrap;max-width:100%;font-size:14px}.el-x-filescard-content .el-x-filescard-name .el-x-filescard-name-prefix[data-v-6808a5a6]{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-x-filescard-content .el-x-filescard-name .el-x-filescard-name-suffix[data-v-6808a5a6]{flex:none}.el-x-filescard-content .el-x-filescard-description[data-v-6808a5a6]{flex:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(0,0,0,.4);font-size:12px}.el-x-filescard-content .el-x-filescard-description-error[data-v-6808a5a6]{color:#ff4d4f}.image-preview-container[data-v-6808a5a6]{position:relative;padding:0px;width:var(--elx-files-card-icon-size);height:var(--elx-files-card-icon-size);display:inline-block;border-radius:8px;transition:all .3s}.image-preview-container .preview-mask[data-v-6808a5a6]{position:absolute;inset:0;width:100%;display:flex;justify-content:center;align-items:center;opacity:0;background:rgba(0,0,0,.65);color:#fff;font-size:10px;transition:opacity .3s}.image-preview-container .preview-mask .el-icon-view[data-v-6808a5a6]{font-size:10px;margin-right:2px;display:flex;align-items:center;height:100%;margin-top:2px}.image-preview-container .preview-mask[data-v-6808a5a6]:hover{opacity:1;transition:opacity .3s;cursor:pointer}.image-preview-container-square .preview-mask[data-v-6808a5a6]{font-size:14px}.image-preview-container-square .preview-mask .el-icon-view[data-v-6808a5a6]{font-size:12px}.preview-mask-loading[data-v-6808a5a6]{position:absolute;inset:0;width:100%;display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.65);color:#fff;transition:all .3s}.preview-mask-loading .circle-progress[data-v-6808a5a6]{width:100% !important;height:100% !important;display:flex;justify-content:center;align-items:center}.preview-mask-loading .circle-progress .el-progress-circle[data-v-6808a5a6]{width:calc(100% - 12px) !important;height:calc(100% - 12px) !important}.preview-mask-loading .circle-progress .el-progress-circle svg>path[data-v-6808a5a6]:nth-child(1){stroke:hsla(0,0%,100%,.2);stroke-width:8px}.preview-mask-loading .circle-progress .el-progress__text[data-v-6808a5a6]{color:#fff;font-size:14px}.preview-mask-error[data-v-6808a5a6]{position:absolute;inset:0;width:100%;display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.5);font-size:12px;transition:all .3s;color:#ff4d4f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-image-viewer__progress[data-v-6808a5a6]{display:none}.fade-enter-active[data-v-6808a5a6],.fade-leave-active[data-v-6808a5a6]{transition:opacity .3s}.fade-enter[data-v-6808a5a6],.fade-leave-to[data-v-6808a5a6]{opacity:0}", ""]);
490
+ // Exports
491
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
492
+
493
+
494
+ /***/ }),
495
+
496
+ /***/ 9398:
497
497
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
498
498
 
499
499
 
@@ -502,7 +502,7 @@ __webpack_require__.d(__webpack_exports__, {
502
502
  "default": () => (/* binding */ FilesCard)
503
503
  });
504
504
 
505
- ;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/FilesCard/src/main.vue?vue&type=template&id=eaf958fa&scoped=true
505
+ ;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/FilesCard/src/main.vue?vue&type=template&id=6808a5a6&scoped=true
506
506
  var render = function render() {
507
507
  var _vm = this,
508
508
  _c = _vm._self._c;
@@ -534,142 +534,128 @@ var render = function render() {
534
534
  style: {
535
535
  width: `${_vm.percent || 0}%`
536
536
  }
537
- }) : _vm._e(), _vm._v(" "), _vm.$slots.icon || _vm._fileType ? _vm._t("icon", function () {
538
- return [!_vm.isImageFile ? _c(_vm.svgIconMap[_vm._fileType], {
539
- tag: "component",
540
- staticClass: "el-x-filescard-icon",
541
- attrs: {
542
- color: _vm.iconColor || _vm.colorMap[_vm._fileType]
543
- }
544
- }) : _vm._e(), _vm._v(" "), _vm.isImageFile ? [_c("div", {
545
- staticClass: "image-preview-container",
546
- class: {
547
- "image-preview-container-square": _vm.isSquareVariant && _vm.isImageFile
548
- },
549
- on: {
550
- mouseenter: function ($event) {
551
- _vm.imageHovered = true;
552
- },
553
- mouseleave: function ($event) {
554
- _vm.imageHovered = false;
555
- }
556
- }
557
- }, [_vm._previewImgUrl ? _c("el-image", {
558
- ref: "imgRef",
559
- staticClass: "el-x-filescard-img",
560
- attrs: {
561
- src: _vm._previewImgUrl,
562
- "preview-src-list": _vm.imgPreview && _vm._previewImgUrl ? [_vm._previewImgUrl] : [],
563
- fit: "cover"
564
- },
565
- on: {
566
- click: function ($event) {
567
- _vm.imgPreview ? _vm.handlePreviewAction("self") : null;
568
- }
569
- }
570
- }) : _c(_vm.svgIconMap[_vm._fileType], {
571
- tag: "component",
572
- staticClass: "el-x-filescard-img",
573
- attrs: {
574
- color: _vm.iconColor || _vm.colorMap[_vm._fileType]
575
- }
576
- }), _vm._v(" "), _c("transition", {
577
- attrs: {
578
- name: "fade"
579
- }
580
- }, [_vm.imageHovered && _vm._previewImgUrl && _vm.imgPreviewMask && _vm.imgPreview ? _vm._t("image-preview-actions", function () {
581
- return [_c("div", {
582
- staticClass: "preview-mask",
583
- on: {
584
- click: function ($event) {
585
- return _vm.handlePreviewAction("mask");
586
- }
587
- }
588
- }, [_c("i", {
589
- staticClass: "el-icon-view"
590
- }), _vm._v(" "), _c("span", [_vm._v("预览")])])];
591
- }, {
592
- item: {
593
- ..._vm.propsData,
594
- prefix: _vm.namePrefix,
595
- suffix: _vm.nameSuffix
596
- }
597
- }) : _vm._e()], 2), _vm._v(" "), _vm.status === "uploading" && _vm.isSquareVariant ? _c("div", {
598
- staticClass: "preview-mask-loading"
599
- }, [_c("el-progress", {
600
- staticClass: "circle-progress",
601
- attrs: {
602
- color: "#fff",
603
- type: "circle",
604
- percentage: _vm.percent
605
- }
606
- })], 1) : _vm.status === "error" && _vm.isSquareVariant ? _c("div", {
607
- staticClass: "preview-mask-error"
608
- }, [_c("span", {
609
- staticClass: "error-text"
610
- }, [_vm._v(_vm._s(_vm.errorTip || "上传失败"))])]) : _vm._e()], 1)] : _vm._e()];
611
- }, {
537
+ }) : _vm._e(), _vm._v(" "), _vm.$slots.icon || _vm._fileType ? [_vm.$scopedSlots.icon ? _vm._t("icon", null, {
612
538
  item: _vm.propsData
613
- }) : _vm._e(), _vm._v(" "), (_vm.$slots.content || _vm.name || _vm.description) && !(_vm.isSquareVariant && _vm.isImageFile) ? _vm._t("content", function () {
614
- return [_c("div", {
615
- staticClass: "el-x-filescard-content"
616
- }, [_vm.name ? _c("div", {
617
- staticClass: "el-x-filescard-name"
618
- }, [_vm._t("name-prefix", function () {
619
- return [_c("div", {
620
- staticClass: "el-x-filescard-name-prefix"
621
- }, [_vm._v(_vm._s(_vm.namePrefix))])];
622
- }, {
623
- item: {
624
- ..._vm.propsData,
625
- prefix: _vm.namePrefix,
626
- suffix: _vm.nameSuffix
539
+ }) : [!_vm.isImageFile ? _c(_vm.svgIconMap[_vm._fileType], {
540
+ tag: "component",
541
+ staticClass: "el-x-filescard-icon",
542
+ attrs: {
543
+ color: _vm.iconColor || _vm.colorMap[_vm._fileType]
544
+ }
545
+ }) : _vm._e(), _vm._v(" "), _vm.isImageFile ? [_c("div", {
546
+ staticClass: "image-preview-container",
547
+ class: {
548
+ "image-preview-container-square": _vm.isSquareVariant && _vm.isImageFile
549
+ },
550
+ on: {
551
+ mouseenter: function ($event) {
552
+ _vm.imageHovered = true;
553
+ },
554
+ mouseleave: function ($event) {
555
+ _vm.imageHovered = false;
627
556
  }
628
- }), _vm._v(" "), _vm._t("name-suffix", function () {
629
- return [_c("div", {
630
- staticClass: "el-x-filescard-name-suffix"
631
- }, [_vm._v(_vm._s(_vm.nameSuffix))])];
632
- }, {
633
- item: {
634
- ..._vm.propsData,
635
- prefix: _vm.namePrefix,
636
- suffix: _vm.nameSuffix
557
+ }
558
+ }, [_vm._previewImgUrl ? _c("el-image", {
559
+ ref: "imgRef",
560
+ staticClass: "el-x-filescard-img",
561
+ attrs: {
562
+ src: _vm._previewImgUrl,
563
+ "preview-src-list": _vm.imgPreview && _vm._previewImgUrl ? [_vm._previewImgUrl] : [],
564
+ fit: "cover"
565
+ },
566
+ on: {
567
+ click: function ($event) {
568
+ _vm.imgPreview ? _vm.handlePreviewAction("self") : null;
637
569
  }
638
- })], 2) : _vm._e(), _vm._v(" "), _vm._t("description", function () {
639
- return [_c("div", {
640
- staticClass: "el-x-filescard-description",
641
- class: {
642
- "el-x-filescard-description-error": _vm.status === "error",
643
- "el-x-filescard-description-done": _vm.status === "done",
644
- "el-x-filescard-description-uploading": _vm.status === "uploading"
645
- }
646
- }, [_vm._v("\n " + _vm._s(_vm._description) + "\n ")])];
647
- }, {
648
- item: {
649
- ..._vm.propsData,
650
- prefix: _vm.namePrefix,
651
- suffix: _vm.nameSuffix
570
+ }
571
+ }) : _c(_vm.svgIconMap[_vm._fileType], {
572
+ tag: "component",
573
+ staticClass: "el-x-filescard-img",
574
+ attrs: {
575
+ color: _vm.iconColor || _vm.colorMap[_vm._fileType]
576
+ }
577
+ }), _vm._v(" "), _c("transition", {
578
+ attrs: {
579
+ name: "fade"
580
+ }
581
+ }, [_vm.imageHovered && _vm._previewImgUrl && _vm.imgPreviewMask && _vm.imgPreview ? [_vm.$scopedSlots["image-preview-actions"] ? _vm._t("image-preview-actions", null, {
582
+ item: {
583
+ ..._vm.propsData,
584
+ prefix: _vm.namePrefix,
585
+ suffix: _vm.nameSuffix
586
+ }
587
+ }) : _c("div", {
588
+ staticClass: "preview-mask",
589
+ on: {
590
+ click: function ($event) {
591
+ return _vm.handlePreviewAction("mask");
652
592
  }
653
- })], 2)];
654
- }, {
593
+ }
594
+ }, [_c("i", {
595
+ staticClass: "el-icon-view"
596
+ }), _vm._v(" "), _c("span", [_vm._v("预览")])])] : _vm._e()], 2), _vm._v(" "), _vm.status === "uploading" && _vm.isSquareVariant ? _c("div", {
597
+ staticClass: "preview-mask-loading"
598
+ }, [_c("el-progress", {
599
+ staticClass: "circle-progress",
600
+ attrs: {
601
+ color: "#fff",
602
+ type: "circle",
603
+ percentage: _vm.percent
604
+ }
605
+ })], 1) : _vm.status === "error" && _vm.isSquareVariant ? _c("div", {
606
+ staticClass: "preview-mask-error"
607
+ }, [_c("span", {
608
+ staticClass: "error-text"
609
+ }, [_vm._v(_vm._s(_vm.errorTip || "上传失败"))])]) : _vm._e()], 1)] : _vm._e()]] : _vm._e(), _vm._v(" "), (_vm.$slots.content || _vm.name || _vm.description) && !(_vm.isSquareVariant && _vm.isImageFile) ? [_vm.$scopedSlots.content ? _vm._t("content", null, {
655
610
  item: _vm.propsData
656
- }) : _vm._e(), _vm._v(" "), _vm.showDelIcon && _vm.isHovered ? _c("div", {
611
+ }) : _c("div", {
612
+ staticClass: "el-x-filescard-content"
613
+ }, [_vm.name ? _c("div", {
614
+ staticClass: "el-x-filescard-name"
615
+ }, [_vm.$scopedSlots["name-prefix"] ? _vm._t("name-prefix", null, {
616
+ item: {
617
+ ..._vm.propsData,
618
+ prefix: _vm.namePrefix,
619
+ suffix: _vm.nameSuffix
620
+ }
621
+ }) : _c("div", {
622
+ staticClass: "el-x-filescard-name-prefix"
623
+ }, [_vm._v("\n " + _vm._s(_vm.namePrefix) + "\n ")]), _vm._v(" "), _vm.$scopedSlots["name-suffix"] ? _vm._t("name-suffix", null, {
624
+ item: {
625
+ ..._vm.propsData,
626
+ prefix: _vm.namePrefix,
627
+ suffix: _vm.nameSuffix
628
+ }
629
+ }) : _c("div", {
630
+ staticClass: "el-x-filescard-name-suffix"
631
+ }, [_vm._v("\n " + _vm._s(_vm.nameSuffix) + "\n ")])], 2) : _vm._e(), _vm._v(" "), _vm.$scopedSlots.description ? _vm._t("description", null, {
632
+ item: {
633
+ ..._vm.propsData,
634
+ prefix: _vm.namePrefix,
635
+ suffix: _vm.nameSuffix
636
+ }
637
+ }) : _c("div", {
638
+ staticClass: "el-x-filescard-description",
639
+ class: {
640
+ "el-x-filescard-description-error": _vm.status === "error",
641
+ "el-x-filescard-description-done": _vm.status === "done",
642
+ "el-x-filescard-description-uploading": _vm.status === "uploading"
643
+ }
644
+ }, [_vm._v("\n " + _vm._s(_vm._description) + "\n ")])], 2)] : _vm._e(), _vm._v(" "), _vm.showDelIcon && _vm.isHovered ? _c("div", {
657
645
  staticClass: "el-x-filescard-delete-icon",
658
646
  on: {
659
647
  click: _vm.handleDelete
660
648
  }
661
- }, [_vm._t("del-icon", function () {
662
- return [_c("i", {
663
- staticClass: "el-icon-error"
664
- })];
665
- }, {
649
+ }, [_vm.$scopedSlots["del-icon"] ? _vm._t("del-icon", null, {
666
650
  item: _vm.propsData
651
+ }) : _c("i", {
652
+ staticClass: "el-icon-error"
667
653
  })], 2) : _vm._e()], 2);
668
654
  };
669
655
  var staticRenderFns = [];
670
656
  render._withStripped = true;
671
657
 
672
- ;// ./src/components/FilesCard/src/main.vue?vue&type=template&id=eaf958fa&scoped=true
658
+ ;// ./src/components/FilesCard/src/main.vue?vue&type=template&id=6808a5a6&scoped=true
673
659
 
674
660
  ;// ./src/utils/index.js
675
661
  /**
@@ -2339,9 +2325,9 @@ const colorMap = {
2339
2325
  // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
2340
2326
  var injectStylesIntoStyleTag = __webpack_require__(5072);
2341
2327
  var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
2342
- // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/FilesCard/src/main.vue?vue&type=style&index=0&id=eaf958fa&prod&lang=scss&scoped=true
2343
- var mainvue_type_style_index_0_id_eaf958fa_prod_lang_scss_scoped_true = __webpack_require__(4444);
2344
- ;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/FilesCard/src/main.vue?vue&type=style&index=0&id=eaf958fa&prod&lang=scss&scoped=true
2328
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/FilesCard/src/main.vue?vue&type=style&index=0&id=6808a5a6&prod&lang=scss&scoped=true
2329
+ var mainvue_type_style_index_0_id_6808a5a6_prod_lang_scss_scoped_true = __webpack_require__(7492);
2330
+ ;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/FilesCard/src/main.vue?vue&type=style&index=0&id=6808a5a6&prod&lang=scss&scoped=true
2345
2331
 
2346
2332
 
2347
2333
 
@@ -2350,12 +2336,12 @@ var options = {};
2350
2336
  options.insert = "head";
2351
2337
  options.singleton = false;
2352
2338
 
2353
- var update = injectStylesIntoStyleTag_default()(mainvue_type_style_index_0_id_eaf958fa_prod_lang_scss_scoped_true/* default */.A, options);
2339
+ var update = injectStylesIntoStyleTag_default()(mainvue_type_style_index_0_id_6808a5a6_prod_lang_scss_scoped_true/* default */.A, options);
2354
2340
 
2355
2341
 
2356
2342
 
2357
- /* harmony default export */ const src_mainvue_type_style_index_0_id_eaf958fa_prod_lang_scss_scoped_true = (mainvue_type_style_index_0_id_eaf958fa_prod_lang_scss_scoped_true/* default */.A.locals || {});
2358
- ;// ./src/components/FilesCard/src/main.vue?vue&type=style&index=0&id=eaf958fa&prod&lang=scss&scoped=true
2343
+ /* harmony default export */ const src_mainvue_type_style_index_0_id_6808a5a6_prod_lang_scss_scoped_true = (mainvue_type_style_index_0_id_6808a5a6_prod_lang_scss_scoped_true/* default */.A.locals || {});
2344
+ ;// ./src/components/FilesCard/src/main.vue?vue&type=style&index=0&id=6808a5a6&prod&lang=scss&scoped=true
2359
2345
 
2360
2346
  ;// ./src/components/FilesCard/src/main.vue
2361
2347
 
@@ -2372,7 +2358,7 @@ var main_component = (0,componentNormalizer/* default */.A)(
2372
2358
  staticRenderFns,
2373
2359
  false,
2374
2360
  null,
2375
- "eaf958fa",
2361
+ "6808a5a6",
2376
2362
  null
2377
2363
 
2378
2364
  )
@@ -2471,7 +2457,7 @@ __webpack_require__.d(__webpack_exports__, {
2471
2457
  "default": () => (/* binding */ Attachments)
2472
2458
  });
2473
2459
 
2474
- ;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/Attachments/src/main.vue?vue&type=template&id=6eb5751e&scoped=true
2460
+ ;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/Attachments/src/main.vue?vue&type=template&id=2a17281a&scoped=true
2475
2461
  var render = function render() {
2476
2462
  var _vm = this,
2477
2463
  _c = _vm._self._c;
@@ -2486,21 +2472,19 @@ var render = function render() {
2486
2472
  ..._vm.listStyle,
2487
2473
  "--el-x-attachments-upload-icon-size": _vm.uploadIconSize
2488
2474
  }
2489
- }, [!_vm.items.length && !_vm.hideUpload ? _c("div", [_vm._t("empty-upload", function () {
2490
- return [_c("el-upload", _vm._b({
2491
- staticClass: "el-x-attachments-upload-btn",
2492
- attrs: {
2493
- action: _vm.uploadAction,
2494
- "http-request": _vm.customUpload,
2495
- "show-file-list": false,
2496
- "on-change": _vm.handleUploadChange,
2497
- "on-success": _vm.handleUploadSuccess,
2498
- "on-error": _vm.handleUploadError
2499
- }
2500
- }, "el-upload", _vm.$attrs, false), [_c("i", {
2501
- staticClass: "el-icon-plus uploader-icon"
2502
- })])];
2503
- })], 2) : _vm._e(), _vm._v(" "), _c("div", {
2475
+ }, [!_vm.items.length && !_vm.hideUpload ? _c("div", [_vm.$slots["empty-upload"] ? _vm._t("empty-upload") : _c("el-upload", _vm._b({
2476
+ staticClass: "el-x-attachments-upload-btn",
2477
+ attrs: {
2478
+ action: _vm.uploadAction,
2479
+ "http-request": _vm.customUpload,
2480
+ "show-file-list": false,
2481
+ "on-change": _vm.handleUploadChange,
2482
+ "on-success": _vm.handleUploadSuccess,
2483
+ "on-error": _vm.handleUploadError
2484
+ }
2485
+ }, "el-upload", _vm.$attrs, false), [_c("i", {
2486
+ staticClass: "el-icon-plus uploader-icon"
2487
+ })])], 2) : _vm._e(), _vm._v(" "), _c("div", {
2504
2488
  staticClass: "el-x-attachments-background"
2505
2489
  }, [_vm.overflow === "scrollX" && _vm.pingStart ? _c("div", {
2506
2490
  staticClass: "el-x-attachments-background-start"
@@ -2534,98 +2518,88 @@ var render = function render() {
2534
2518
  class: {
2535
2519
  "el-x-attachments-file-card-wrap": _vm.overflow === "scrollX"
2536
2520
  }
2537
- }, [_vm._t("file-list", function () {
2538
- return _vm._l(_vm.items, function (item, index) {
2539
- return _c("div", {
2540
- key: item.uid,
2541
- staticClass: "el-x-attachments-card"
2542
- }, [_c("transition", {
2543
- attrs: {
2544
- name: "card-motion"
2545
- }
2546
- }, [item.uid ? _c("el-x-files-card", _vm._b({
2547
- staticClass: "el-x-attachments-card-item",
2548
- on: {
2549
- delete: function ($event) {
2550
- return _vm.handleDelete(item, index);
2551
- }
2552
- }
2553
- }, "el-x-files-card", item, false)) : _vm._e()], 1)], 1);
2554
- });
2555
- }, {
2521
+ }, [_vm.$scopedSlots["file-list"] ? _vm._t("file-list", null, {
2556
2522
  items: _vm.items
2557
- }), _vm._v(" "), _vm.items.length && !_vm.isOverLimit && !_vm.hideUpload ? _c("div", {
2558
- staticClass: "el-x-attachments-upload-placeholder"
2559
- }, [_vm._t("no-empty-upload", function () {
2560
- return [_c("el-upload", _vm._b({
2561
- staticClass: "el-x-attachments-upload-btn",
2562
- style: {
2563
- height: _vm.overflow === "scrollY" && ""
2564
- },
2523
+ }) : _vm._l(_vm.items, function (item, index) {
2524
+ return _c("div", {
2525
+ key: item.uid,
2526
+ staticClass: "el-x-attachments-card"
2527
+ }, [_c("transition", {
2565
2528
  attrs: {
2566
- action: _vm.uploadAction,
2567
- "http-request": _vm.customUpload,
2568
- "show-file-list": false,
2569
- "on-change": _vm.handleUploadChange,
2570
- "on-success": _vm.handleUploadSuccess,
2571
- "on-error": _vm.handleUploadError
2529
+ name: "card-motion"
2572
2530
  }
2573
- }, "el-upload", _vm.$attrs, false), [_c("i", {
2574
- staticClass: "el-icon-plus uploader-icon"
2575
- })])];
2576
- })], 2) : _vm._e()], 2) : _vm._e()]), _vm._v(" "), _vm._t("prev-button", function () {
2577
- return [_vm.overflow === "scrollX" && _vm.pingStart ? _c("el-button", {
2578
- staticClass: "el-x-attachments-prev-btn",
2579
- attrs: {
2580
- size: "small"
2581
- },
2531
+ }, [item.uid ? _c("el-x-files-card", _vm._b({
2532
+ staticClass: "el-x-attachments-card-item",
2582
2533
  on: {
2583
- click: _vm.onScrollLeft
2534
+ delete: function ($event) {
2535
+ return _vm.handleDelete(item, index);
2536
+ }
2584
2537
  }
2585
- }, [_c("i", {
2586
- staticClass: "el-icon-arrow-left"
2587
- })]) : _vm._e()];
2588
- }, {
2538
+ }, "el-x-files-card", item, false)) : _vm._e()], 1)], 1);
2539
+ }), _vm._v(" "), _vm.items.length && !_vm.isOverLimit && !_vm.hideUpload ? _c("div", {
2540
+ staticClass: "el-x-attachments-upload-placeholder"
2541
+ }, [_vm.$slots["no-empty-upload"] ? _vm._t("no-empty-upload") : _c("el-upload", _vm._b({
2542
+ staticClass: "el-x-attachments-upload-btn",
2543
+ style: {
2544
+ height: _vm.overflow === "scrollY" && ""
2545
+ },
2546
+ attrs: {
2547
+ action: _vm.uploadAction,
2548
+ "http-request": _vm.customUpload,
2549
+ "show-file-list": false,
2550
+ "on-change": _vm.handleUploadChange,
2551
+ "on-success": _vm.handleUploadSuccess,
2552
+ "on-error": _vm.handleUploadError
2553
+ }
2554
+ }, "el-upload", _vm.$attrs, false), [_c("i", {
2555
+ staticClass: "el-icon-plus uploader-icon"
2556
+ })])], 2) : _vm._e()], 2) : _vm._e()]), _vm._v(" "), _vm.$scopedSlots["prev-button"] ? _vm._t("prev-button", null, {
2589
2557
  show: _vm.overflow === "scrollX" && _vm.pingStart,
2590
2558
  onScrollLeft: _vm.onScrollLeft
2591
- }), _vm._v(" "), _vm._t("next-button", function () {
2592
- return [_vm.overflow === "scrollX" && _vm.pingEnd ? _c("el-button", {
2593
- staticClass: "el-x-attachments-next-btn",
2594
- attrs: {
2595
- size: "small"
2596
- },
2597
- on: {
2598
- click: _vm.onScrollRight
2599
- }
2600
- }, [_c("i", {
2601
- staticClass: "el-icon-arrow-right"
2602
- })]) : _vm._e()];
2603
- }, {
2559
+ }) : _vm.overflow === "scrollX" && _vm.pingStart ? _c("el-button", {
2560
+ staticClass: "el-x-attachments-prev-btn",
2561
+ attrs: {
2562
+ size: "small"
2563
+ },
2564
+ on: {
2565
+ click: _vm.onScrollLeft
2566
+ }
2567
+ }, [_c("i", {
2568
+ staticClass: "el-icon-arrow-left"
2569
+ })]) : _vm._e(), _vm._v(" "), _vm.$scopedSlots["next-button"] ? _vm._t("next-button", null, {
2604
2570
  show: _vm.overflow === "scrollX" && _vm.pingEnd,
2605
2571
  onScrollRight: _vm.onScrollRight
2606
- }), _vm._v(" "), _vm.isTargetDrag ? _c("div", {
2572
+ }) : _vm.overflow === "scrollX" && _vm.pingEnd ? _c("el-button", {
2573
+ staticClass: "el-x-attachments-next-btn",
2574
+ attrs: {
2575
+ size: "small"
2576
+ },
2577
+ on: {
2578
+ click: _vm.onScrollRight
2579
+ }
2580
+ }, [_c("i", {
2581
+ staticClass: "el-icon-arrow-right"
2582
+ })]) : _vm._e(), _vm._v(" "), _vm.isTargetDrag ? _c("div", {
2607
2583
  ref: "dropAreaContainer",
2608
2584
  staticStyle: {
2609
2585
  display: "none"
2610
2586
  }
2611
- }, [_vm._t("drop-area", function () {
2612
- return [_c("div", {
2613
- ref: "dropAreaRef",
2614
- staticClass: "el-x-attachments-drop-area"
2615
- }, [_c("i", {
2616
- staticClass: "el-icon-upload el-x-attachments-drop-area-icon"
2617
- }), _vm._v(" "), _c("div", {
2618
- staticClass: "el-x-attachments-drop-area-text"
2619
- }, [_vm._v("在此处拖放文件上传")])])];
2620
- })], 2) : _vm._e()], 2);
2587
+ }, [_vm.$slots["drop-area"] ? _vm._t("drop-area") : _c("div", {
2588
+ ref: "dropAreaRef",
2589
+ staticClass: "el-x-attachments-drop-area"
2590
+ }, [_c("i", {
2591
+ staticClass: "el-icon-upload el-x-attachments-drop-area-icon"
2592
+ }), _vm._v(" "), _c("div", {
2593
+ staticClass: "el-x-attachments-drop-area-text"
2594
+ }, [_vm._v("在此处拖放文件上传")])])], 2) : _vm._e()], 2);
2621
2595
  };
2622
2596
  var staticRenderFns = [];
2623
2597
  render._withStripped = true;
2624
2598
 
2625
- ;// ./src/components/Attachments/src/main.vue?vue&type=template&id=6eb5751e&scoped=true
2599
+ ;// ./src/components/Attachments/src/main.vue?vue&type=template&id=2a17281a&scoped=true
2626
2600
 
2627
2601
  // EXTERNAL MODULE: ./src/components/FilesCard/index.js + 58 modules
2628
- var FilesCard = __webpack_require__(9442);
2602
+ var FilesCard = __webpack_require__(9398);
2629
2603
  ;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/Attachments/src/main.vue?vue&type=script&lang=js
2630
2604
 
2631
2605
  /* harmony default export */ const mainvue_type_script_lang_js = ({
@@ -2976,9 +2950,9 @@ var FilesCard = __webpack_require__(9442);
2976
2950
  // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
2977
2951
  var injectStylesIntoStyleTag = __webpack_require__(5072);
2978
2952
  var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
2979
- // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/Attachments/src/main.vue?vue&type=style&index=0&id=6eb5751e&prod&lang=scss&scoped=true
2980
- var mainvue_type_style_index_0_id_6eb5751e_prod_lang_scss_scoped_true = __webpack_require__(5594);
2981
- ;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/Attachments/src/main.vue?vue&type=style&index=0&id=6eb5751e&prod&lang=scss&scoped=true
2953
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/Attachments/src/main.vue?vue&type=style&index=0&id=2a17281a&prod&lang=scss&scoped=true
2954
+ var mainvue_type_style_index_0_id_2a17281a_prod_lang_scss_scoped_true = __webpack_require__(7177);
2955
+ ;// ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/Attachments/src/main.vue?vue&type=style&index=0&id=2a17281a&prod&lang=scss&scoped=true
2982
2956
 
2983
2957
 
2984
2958
 
@@ -2987,12 +2961,12 @@ var options = {};
2987
2961
  options.insert = "head";
2988
2962
  options.singleton = false;
2989
2963
 
2990
- var update = injectStylesIntoStyleTag_default()(mainvue_type_style_index_0_id_6eb5751e_prod_lang_scss_scoped_true/* default */.A, options);
2964
+ var update = injectStylesIntoStyleTag_default()(mainvue_type_style_index_0_id_2a17281a_prod_lang_scss_scoped_true/* default */.A, options);
2991
2965
 
2992
2966
 
2993
2967
 
2994
- /* harmony default export */ const src_mainvue_type_style_index_0_id_6eb5751e_prod_lang_scss_scoped_true = (mainvue_type_style_index_0_id_6eb5751e_prod_lang_scss_scoped_true/* default */.A.locals || {});
2995
- ;// ./src/components/Attachments/src/main.vue?vue&type=style&index=0&id=6eb5751e&prod&lang=scss&scoped=true
2968
+ /* harmony default export */ const src_mainvue_type_style_index_0_id_2a17281a_prod_lang_scss_scoped_true = (mainvue_type_style_index_0_id_2a17281a_prod_lang_scss_scoped_true/* default */.A.locals || {});
2969
+ ;// ./src/components/Attachments/src/main.vue?vue&type=style&index=0&id=2a17281a&prod&lang=scss&scoped=true
2996
2970
 
2997
2971
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2998
2972
  var componentNormalizer = __webpack_require__(4486);
@@ -3011,7 +2985,7 @@ var component = (0,componentNormalizer/* default */.A)(
3011
2985
  staticRenderFns,
3012
2986
  false,
3013
2987
  null,
3014
- "6eb5751e",
2988
+ "2a17281a",
3015
2989
  null
3016
2990
 
3017
2991
  )