vue-element-ui-x 1.0.2 → 1.0.31-beta

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 (77) hide show
  1. package/README.md +20 -9
  2. package/components.json +13 -0
  3. package/lib/components/Attachments/index.js +987 -995
  4. package/lib/components/Bubble/index.js +10656 -10705
  5. package/lib/components/BubbleList/index.js +10951 -11038
  6. package/lib/components/Conversations/index.js +14026 -14063
  7. package/lib/components/FilesCard/index.js +606 -614
  8. package/lib/components/Prompts/index.js +457 -470
  9. package/lib/components/Sender/index.js +1701 -1678
  10. package/lib/components/Thinking/index.js +695 -703
  11. package/lib/components/ThoughtChain/index.js +25117 -25173
  12. package/lib/components/Typewriter/index.js +10247 -10302
  13. package/lib/components/Welcome/index.js +357 -370
  14. package/lib/index.common.js +1 -1
  15. package/lib/index.esm.js +1 -1
  16. package/lib/index.js +32068 -32093
  17. package/lib/index.umd.js +1 -1
  18. package/lib/mixins/index.js +61 -116
  19. package/package.json +24 -6
  20. package/src/components/Attachments/index.js +8 -8
  21. package/src/components/Bubble/index.js +6 -6
  22. package/src/components/BubbleList/index.js +8 -8
  23. package/src/components/BubbleList/src/loading.vue +75 -75
  24. package/src/components/Conversations/index.js +8 -8
  25. package/src/components/FilesCard/index.js +8 -8
  26. package/src/components/FilesCard/src/fileSvg/audio.vue +38 -38
  27. package/src/components/FilesCard/src/fileSvg/code.vue +35 -35
  28. package/src/components/FilesCard/src/fileSvg/database.vue +94 -94
  29. package/src/components/FilesCard/src/fileSvg/excel.vue +38 -38
  30. package/src/components/FilesCard/src/fileSvg/file.vue +40 -40
  31. package/src/components/FilesCard/src/fileSvg/image.vue +40 -40
  32. package/src/components/FilesCard/src/fileSvg/index.js +46 -46
  33. package/src/components/FilesCard/src/fileSvg/link.vue +54 -54
  34. package/src/components/FilesCard/src/fileSvg/mark.vue +38 -38
  35. package/src/components/FilesCard/src/fileSvg/pdf.vue +38 -38
  36. package/src/components/FilesCard/src/fileSvg/ppt.vue +38 -38
  37. package/src/components/FilesCard/src/fileSvg/three.vue +38 -38
  38. package/src/components/FilesCard/src/fileSvg/txt.vue +38 -38
  39. package/src/components/FilesCard/src/fileSvg/unknown.vue +54 -54
  40. package/src/components/FilesCard/src/fileSvg/video.vue +38 -38
  41. package/src/components/FilesCard/src/fileSvg/word.vue +38 -38
  42. package/src/components/FilesCard/src/fileSvg/zip.vue +38 -38
  43. package/src/components/FilesCard/src/main.vue +14 -12
  44. package/src/components/FilesCard/src/options.js +18 -18
  45. package/src/components/Prompts/index.js +8 -8
  46. package/src/components/Sender/index.js +8 -8
  47. package/src/components/Sender/src/components/ClearButton.vue +28 -28
  48. package/src/components/Sender/src/components/Loading.vue +53 -53
  49. package/src/components/Sender/src/components/SendButton.vue +26 -26
  50. package/src/components/Sender/src/components/SpeechButton.vue +24 -24
  51. package/src/components/Sender/src/components/SpeechLoading.vue +87 -87
  52. package/src/components/Sender/src/main.vue +47 -13
  53. package/src/components/Thinking/index.js +8 -8
  54. package/src/components/ThoughtChain/index.js +8 -8
  55. package/src/components/Typewriter/index.js +8 -8
  56. package/src/components/Welcome/index.js +8 -8
  57. package/src/index.js +7 -9
  58. package/src/styles/Conversations.scss +175 -152
  59. package/src/styles/Sender.scss +1 -1
  60. package/lib/locale/lang/ar-SA.js +0 -18
  61. package/lib/locale/lang/ar-SA.umd.js +0 -26
  62. package/lib/locale/lang/de-DE.js +0 -18
  63. package/lib/locale/lang/de-DE.umd.js +0 -26
  64. package/lib/locale/lang/es-ES.js +0 -18
  65. package/lib/locale/lang/es-ES.umd.js +0 -26
  66. package/lib/locale/lang/fr-FR.js +0 -18
  67. package/lib/locale/lang/fr-FR.umd.js +0 -26
  68. package/lib/locale/lang/it-IT.js +0 -18
  69. package/lib/locale/lang/it-IT.umd.js +0 -26
  70. package/lib/locale/lang/ja-JP.js +0 -18
  71. package/lib/locale/lang/ja-JP.umd.js +0 -26
  72. package/lib/locale/lang/ko-KR.js +0 -18
  73. package/lib/locale/lang/ko-KR.umd.js +0 -26
  74. package/src/styles/button.scss +0 -302
  75. package/src/styles/var.scss +0 -1051
  76. /package/lib/locale/lang/{pt-BR.js → pt-br.js} +0 -0
  77. /package/lib/locale/lang/{pt-BR.umd.js → pt-br.umd.js} +0 -0
@@ -1,97 +1,32 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
18
- /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
- /******/ }
42
- /******/ };
43
- /******/
44
- /******/ // define __esModule on exports
45
- /******/ __webpack_require__.r = function(exports) {
46
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
- /******/ }
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // create a fake namespace object
53
- /******/ // mode & 1: value is a module id, require it
54
- /******/ // mode & 2: merge all properties of value into the ns
55
- /******/ // mode & 4: return value when already ns object
56
- /******/ // mode & 8|1: behave like require
57
- /******/ __webpack_require__.t = function(value, mode) {
58
- /******/ if(mode & 1) value = __webpack_require__(value);
59
- /******/ if(mode & 8) return value;
60
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
- /******/ var ns = Object.create(null);
62
- /******/ __webpack_require__.r(ns);
63
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
- /******/ return ns;
66
- /******/ };
67
- /******/
68
- /******/ // getDefaultExport function for compatibility with non-harmony modules
69
- /******/ __webpack_require__.n = function(module) {
70
- /******/ var getter = module && module.__esModule ?
71
- /******/ function getDefault() { return module['default']; } :
72
- /******/ function getModuleExports() { return module; };
73
- /******/ __webpack_require__.d(getter, 'a', getter);
74
- /******/ return getter;
75
- /******/ };
76
- /******/
77
- /******/ // Object.prototype.hasOwnProperty.call
78
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
- /******/
80
- /******/ // __webpack_public_path__
81
- /******/ __webpack_require__.p = "";
82
- /******/
83
- /******/
84
- /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 103);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ var __webpack_modules__ = ({
4
+
5
+ /***/ 4444:
6
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
89
7
 
90
- /***/ 0:
91
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
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
+ /***/ 4486:
25
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
92
26
 
93
- "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
27
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
28
+ /* harmony export */ A: () => (/* binding */ normalizeComponent)
29
+ /* harmony export */ });
95
30
  /* globals __VUE_SSR_CONTEXT__ */
96
31
 
97
32
  // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
@@ -192,578 +127,303 @@ function normalizeComponent(
192
127
 
193
128
  /***/ }),
194
129
 
195
- /***/ 103:
196
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
130
+ /***/ 5072:
131
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
197
132
 
198
- "use strict";
199
- // ESM COMPAT FLAG
200
- __webpack_require__.r(__webpack_exports__);
201
133
 
202
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Attachments/src/main.vue?vue&type=template&id=6eb5751e&scoped=true
203
- var render = function render() {
204
- var _vm = this,
205
- _c = _vm._self._c;
206
- return _c("div", {
207
- ref: "wrapperRef",
208
- staticClass: "el-x-attachments-wrapper",
209
- class: {
210
- "el-x-attachments-overflow-ping-start": _vm.overflow === "scrollX" && _vm.pingStart,
211
- "el-x-attachments-overflow-ping-end": _vm.overflow === "scrollX" && _vm.pingEnd
212
- },
213
- style: {
214
- ..._vm.listStyle,
215
- "--el-x-attachments-upload-icon-size": _vm.uploadIconSize
216
- }
217
- }, [!_vm.items.length && !_vm.hideUpload ? _c("div", [_vm._t("empty-upload", function () {
218
- return [_c("el-upload", _vm._b({
219
- staticClass: "el-x-attachments-upload-btn",
220
- attrs: {
221
- action: _vm.uploadAction,
222
- "http-request": _vm.customUpload,
223
- "show-file-list": false,
224
- "on-change": _vm.handleUploadChange,
225
- "on-success": _vm.handleUploadSuccess,
226
- "on-error": _vm.handleUploadError
227
- }
228
- }, "el-upload", _vm.$attrs, false), [_c("i", {
229
- staticClass: "el-icon-plus uploader-icon"
230
- })])];
231
- })], 2) : _vm._e(), _vm._v(" "), _c("div", {
232
- staticClass: "el-x-attachments-background"
233
- }, [_vm.overflow === "scrollX" && _vm.pingStart ? _c("div", {
234
- staticClass: "el-x-attachments-background-start"
235
- }) : _vm._e(), _vm._v(" "), _vm.overflow === "scrollX" && _vm.pingEnd ? _c("div", {
236
- staticClass: "el-x-attachments-background-end"
237
- }) : _vm._e()]), _vm._v(" "), _c("div", {
238
- ref: "containerRef",
239
- staticClass: "el-x-attachments",
240
- class: {
241
- [`el-x-attachments-overflow-${_vm.overflow}`]: _vm.overflow
242
- },
243
- style: {
244
- ...(_vm.overflow === "scrollX" ? {
245
- whiteSpace: "nowrap",
246
- overflowX: "auto",
247
- overflowY: "hidden"
248
- } : {}),
249
- ...(_vm.overflow === "scrollY" ? {
250
- overflowX: "hidden",
251
- overflowY: "auto"
252
- } : {}),
253
- ...(_vm.overflow === "wrap" ? {
254
- display: "flex",
255
- flexWrap: "wrap"
256
- } : {})
257
- },
258
- on: {
259
- scroll: _vm.debouncedCheckPing
260
- }
261
- }, [_vm.items.length ? _c("div", {
262
- class: {
263
- "el-x-attachments-file-card-wrap": _vm.overflow === "scrollX"
134
+
135
+ var isOldIE = function isOldIE() {
136
+ var memo;
137
+ return function memorize() {
138
+ if (typeof memo === 'undefined') {
139
+ // Test for IE <= 9 as proposed by Browserhacks
140
+ // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
141
+ // Tests for existence of standard globals is to allow style-loader
142
+ // to operate correctly into non-standard environments
143
+ // @see https://github.com/webpack-contrib/style-loader/issues/177
144
+ memo = Boolean(window && document && document.all && !window.atob);
264
145
  }
265
- }, [_vm._t("file-list", function () {
266
- return _vm._l(_vm.items, function (item, index) {
267
- return _c("div", {
268
- key: item.uid,
269
- staticClass: "el-x-attachments-card"
270
- }, [_c("transition", {
271
- attrs: {
272
- name: "card-motion"
273
- }
274
- }, [item.uid ? _c("el-x-files-card", _vm._b({
275
- staticClass: "el-x-attachments-card-item",
276
- on: {
277
- delete: function ($event) {
278
- return _vm.handleDelete(item, index);
279
- }
146
+
147
+ return memo;
148
+ };
149
+ }();
150
+
151
+ var getTarget = function getTarget() {
152
+ var memo = {};
153
+ return function memorize(target) {
154
+ if (typeof memo[target] === 'undefined') {
155
+ var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
156
+
157
+ if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
158
+ try {
159
+ // This will throw an exception if access to iframe is blocked
160
+ // due to cross-origin restrictions
161
+ styleTarget = styleTarget.contentDocument.head;
162
+ } catch (e) {
163
+ // istanbul ignore next
164
+ styleTarget = null;
280
165
  }
281
- }, "el-x-files-card", item, false)) : _vm._e()], 1)], 1);
282
- });
283
- }, {
284
- items: _vm.items
285
- }), _vm._v(" "), _vm.items.length && !_vm.isOverLimit && !_vm.hideUpload ? _c("div", {
286
- staticClass: "el-x-attachments-upload-placeholder"
287
- }, [_vm._t("no-empty-upload", function () {
288
- return [_c("el-upload", _vm._b({
289
- staticClass: "el-x-attachments-upload-btn",
290
- style: {
291
- height: _vm.overflow === "scrollY" && ""
292
- },
293
- attrs: {
294
- action: _vm.uploadAction,
295
- "http-request": _vm.customUpload,
296
- "show-file-list": false,
297
- "on-change": _vm.handleUploadChange,
298
- "on-success": _vm.handleUploadSuccess,
299
- "on-error": _vm.handleUploadError
300
- }
301
- }, "el-upload", _vm.$attrs, false), [_c("i", {
302
- staticClass: "el-icon-plus uploader-icon"
303
- })])];
304
- })], 2) : _vm._e()], 2) : _vm._e()]), _vm._v(" "), _vm._t("prev-button", function () {
305
- return [_vm.overflow === "scrollX" && _vm.pingStart ? _c("el-button", {
306
- staticClass: "el-x-attachments-prev-btn",
307
- attrs: {
308
- size: "small"
309
- },
310
- on: {
311
- click: _vm.onScrollLeft
312
- }
313
- }, [_c("i", {
314
- staticClass: "el-icon-arrow-left"
315
- })]) : _vm._e()];
316
- }, {
317
- show: _vm.overflow === "scrollX" && _vm.pingStart,
318
- onScrollLeft: _vm.onScrollLeft
319
- }), _vm._v(" "), _vm._t("next-button", function () {
320
- return [_vm.overflow === "scrollX" && _vm.pingEnd ? _c("el-button", {
321
- staticClass: "el-x-attachments-next-btn",
322
- attrs: {
323
- size: "small"
324
- },
325
- on: {
326
- click: _vm.onScrollRight
327
166
  }
328
- }, [_c("i", {
329
- staticClass: "el-icon-arrow-right"
330
- })]) : _vm._e()];
331
- }, {
332
- show: _vm.overflow === "scrollX" && _vm.pingEnd,
333
- onScrollRight: _vm.onScrollRight
334
- }), _vm._v(" "), _vm.isTargetDrag ? _c("div", {
335
- ref: "dropAreaContainer",
336
- staticStyle: {
337
- display: "none"
167
+
168
+ memo[target] = styleTarget;
338
169
  }
339
- }, [_vm._t("drop-area", function () {
340
- return [_c("div", {
341
- ref: "dropAreaRef",
342
- staticClass: "el-x-attachments-drop-area"
343
- }, [_c("i", {
344
- staticClass: "el-icon-upload el-x-attachments-drop-area-icon"
345
- }), _vm._v(" "), _c("div", {
346
- staticClass: "el-x-attachments-drop-area-text"
347
- }, [_vm._v("在此处拖放文件上传")])])];
348
- })], 2) : _vm._e()], 2);
349
- };
350
- var staticRenderFns = [];
351
- render._withStripped = true;
352
170
 
353
- // CONCATENATED MODULE: ./src/components/Attachments/src/main.vue?vue&type=template&id=6eb5751e&scoped=true
171
+ return memo[target];
172
+ };
173
+ }();
354
174
 
355
- // EXTERNAL MODULE: ./src/components/FilesCard/index.js + 58 modules
356
- var FilesCard = __webpack_require__(29);
175
+ var stylesInDom = [];
357
176
 
358
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Attachments/src/main.vue?vue&type=script&lang=js
177
+ function getIndexByIdentifier(identifier) {
178
+ var result = -1;
359
179
 
360
- /* harmony default export */ var mainvue_type_script_lang_js = ({
361
- name: 'ElXAttachments',
362
- components: {
363
- ElXFilesCard: FilesCard["default"]
364
- },
365
- props: {
366
- items: {
367
- type: Array,
368
- default: () => []
369
- },
370
- overflow: {
371
- type: String,
372
- default: 'scrollX'
373
- },
374
- listStyle: {
375
- type: Object,
376
- default: () => ({})
377
- },
378
- uploadIconSize: {
379
- type: String,
380
- default: '64px'
381
- },
382
- dragTarget: {
383
- type: [String, Object, HTMLElement],
384
- default: undefined
385
- },
386
- hideUpload: {
387
- type: Boolean,
388
- default: false
389
- },
390
- limit: {
391
- type: Number,
392
- default: undefined
393
- },
394
- uploadAction: {
395
- type: String,
396
- default: '#'
180
+ for (var i = 0; i < stylesInDom.length; i++) {
181
+ if (stylesInDom[i].identifier === identifier) {
182
+ result = i;
183
+ break;
397
184
  }
398
- },
399
- data() {
400
- return {
401
- containerRef: null,
402
- wrapperRef: null,
403
- firstMount: false,
404
- pingStart: false,
405
- pingEnd: false,
406
- TOLERANCE: 1,
407
- // 上传相关
408
- targetElement: null,
409
- isTargetDrag: false,
410
- dropAreaRef: null,
411
- dropAreaContainer: null
412
- };
413
- },
414
- computed: {
415
- isOverLimit() {
416
- if (this.limit && this.items.length >= this.limit) {
417
- return true;
418
- }
419
- return false;
420
- }
421
- },
422
- mounted() {
423
- this.firstMount = true;
424
- this.$nextTick(() => this.debouncedCheckPing());
425
- window.addEventListener('resize', this.debouncedCheckPing);
185
+ }
426
186
 
427
- // 如果有拖拽目标元素,则监听拖拽事件
428
- if (this.$refs.wrapperRef) {
429
- this.targetElement = this.getTargetElement() || this.$refs.wrapperRef;
187
+ return result;
188
+ }
430
189
 
431
- // 监听拖拽事件
432
- this.targetElement.addEventListener('dragenter', this.targetDragEnter, false);
433
- this.targetElement.addEventListener('dragleave', this.targetDropLeave, false);
434
- this.targetElement.addEventListener('drop', this.targetDrop, false);
435
- this.targetElement.addEventListener('dragover', this.targetDragOver, false);
436
- }
437
- },
438
- beforeDestroy() {
439
- window.removeEventListener('resize', this.debouncedCheckPing);
440
- if (this.targetElement) {
441
- this.targetElement.removeEventListener('dragenter', this.targetDragEnter, false);
442
- this.targetElement.removeEventListener('dragleave', this.targetDropLeave, false);
443
- this.targetElement.removeEventListener('drop', this.targetDrop, false);
444
- this.targetElement.removeEventListener('dragover', this.targetDragOver, false);
445
- }
190
+ function modulesToDom(list, options) {
191
+ var idCountMap = {};
192
+ var identifiers = [];
446
193
 
447
- // 清理可能存在的 dropArea 元素
448
- this.removeDragArea();
449
- },
450
- watch: {
451
- 'items.length': function () {
452
- this.$nextTick(() => this.debouncedCheckPing());
453
- },
454
- overflow: function () {
455
- this.$nextTick(() => this.debouncedCheckPing());
456
- },
457
- dragTarget: function () {
458
- this.$nextTick(() => {
459
- // 如果有拖拽目标元素,则监听拖拽事件
460
- if (this.$refs.wrapperRef) {
461
- if (this.targetElement) {
462
- this.targetElement.removeEventListener('dragenter', this.targetDragEnter, false);
463
- this.targetElement.removeEventListener('dragleave', this.targetDropLeave, false);
464
- this.targetElement.removeEventListener('drop', this.targetDrop, false);
465
- this.targetElement.removeEventListener('dragover', this.targetDragOver, false);
466
- }
467
- this.targetElement = this.getTargetElement() || this.$refs.wrapperRef;
194
+ for (var i = 0; i < list.length; i++) {
195
+ var item = list[i];
196
+ var id = options.base ? item[0] + options.base : item[0];
197
+ var count = idCountMap[id] || 0;
198
+ var identifier = "".concat(id, " ").concat(count);
199
+ idCountMap[id] = count + 1;
200
+ var index = getIndexByIdentifier(identifier);
201
+ var obj = {
202
+ css: item[1],
203
+ media: item[2],
204
+ sourceMap: item[3]
205
+ };
468
206
 
469
- // 监听拖拽事件
470
- this.targetElement.addEventListener('dragenter', this.targetDragEnter, false);
471
- this.targetElement.addEventListener('dragleave', this.targetDropLeave, false);
472
- this.targetElement.addEventListener('drop', this.targetDrop, false);
473
- this.targetElement.addEventListener('dragover', this.targetDragOver, false);
474
- }
207
+ if (index !== -1) {
208
+ stylesInDom[index].references++;
209
+ stylesInDom[index].updater(obj);
210
+ } else {
211
+ stylesInDom.push({
212
+ identifier: identifier,
213
+ updater: addStyle(obj, options),
214
+ references: 1
475
215
  });
476
- },
477
- isTargetDrag: function (newVal) {
478
- if (newVal) {
479
- this.appendDragArea();
480
- } else {
481
- this.removeDragArea();
482
- }
483
216
  }
484
- },
485
- methods: {
486
- // 列表相关方法
487
- checkPing() {
488
- const containerEle = this.$refs.containerRef;
489
- if (!containerEle) return;
490
- if (this.overflow === 'scrollX') {
491
- this.pingStart = Math.abs(containerEle.scrollLeft) >= this.TOLERANCE;
492
- this.pingEnd = containerEle.scrollWidth - containerEle.clientWidth - Math.abs(containerEle.scrollLeft) >= this.TOLERANCE;
493
- } else if (this.overflow === 'scrollY') {
494
- this.pingStart = containerEle.scrollTop !== 0;
495
- this.pingEnd = containerEle.scrollHeight - containerEle.clientHeight !== containerEle.scrollTop;
496
- } else {
497
- this.pingStart = false;
498
- this.pingEnd = false;
499
- }
500
- },
501
- onScrollOffset(offset) {
502
- const containerEle = this.$refs.containerRef;
503
- if (containerEle) {
504
- containerEle.scrollTo({
505
- left: this.overflow === 'scrollX' ? containerEle.scrollLeft + offset * containerEle.clientWidth : containerEle.scrollLeft,
506
- top: this.overflow === 'scrollY' ? containerEle.scrollTop + offset * containerEle.clientHeight : containerEle.scrollTop,
507
- behavior: 'smooth'
508
- });
509
- }
510
- },
511
- onScrollLeft() {
512
- this.onScrollOffset(-1);
513
- },
514
- onScrollRight() {
515
- this.onScrollOffset(1);
516
- },
517
- // 防抖函数
518
- debounce(func, wait) {
519
- let timeout;
520
- return function () {
521
- const context = this;
522
- const args = arguments;
523
- clearTimeout(timeout);
524
- timeout = setTimeout(() => {
525
- func.apply(context, args);
526
- }, wait);
527
- };
528
- },
529
- customUpload(options) {
530
- // 自定义上传方法,如果父组件提供了http-request,则使用父组件的
531
- if (this.$attrs['http-request']) {
532
- return this.$attrs['http-request'](options);
533
- }
534
217
 
535
- // 默认实现:发出事件,让父组件处理
536
- const {
537
- file
538
- } = options;
539
- this.$emit('upload-change', {
540
- file
541
- }, [file]);
218
+ identifiers.push(identifier);
219
+ }
542
220
 
543
- // 如果需要模拟上传进度和成功/失败状态,可以在此实现
544
- // 例如:options.onProgress({ percent: 50 })
545
- // options.onSuccess({ url: 'https://example.com/file.jpg' })
546
- // 或者 options.onError(new Error('Upload failed'))
221
+ return identifiers;
222
+ }
547
223
 
548
- // 由于我们只是返回事件,不实际上传,所以直接返回一个空Promise
549
- return Promise.resolve();
550
- },
551
- handleUploadChange(file, fileList) {
552
- this.$emit('upload-change', file, fileList);
553
- },
554
- handleUploadSuccess(response, file, fileList) {
555
- this.$emit('upload-success', response, file, fileList);
556
- },
557
- handleUploadError(error, file, fileList) {
558
- this.$emit('upload-error', error, file, fileList);
559
- },
560
- getTargetElement() {
561
- if (!this.dragTarget) return this.$refs.wrapperRef;
224
+ function insertStyleElement(options) {
225
+ var style = document.createElement('style');
226
+ var attributes = options.attributes || {};
562
227
 
563
- // 处理原生 DOM 元素(如 document.body)
564
- if (this.dragTarget instanceof HTMLElement) {
565
- return this.dragTarget;
566
- }
567
- if (typeof this.dragTarget === 'string') {
568
- return document.getElementById(this.dragTarget);
569
- }
228
+ if (typeof attributes.nonce === 'undefined') {
229
+ var nonce = true ? __webpack_require__.nc : 0;
570
230
 
571
- // Vue2 中获取引用
572
- if (this.dragTarget && this.dragTarget.$el) {
573
- return this.dragTarget.$el;
574
- }
231
+ if (nonce) {
232
+ attributes.nonce = nonce;
233
+ }
234
+ }
575
235
 
576
- // 兜底返回 wrapperRef
577
- return this.$refs.wrapperRef;
578
- },
579
- // 修改拖拽样式切换方法
580
- toggleDragStyle(isDrag) {
581
- console.log('toggleDragStyle called:', isDrag); // 调试用,可以删除
236
+ Object.keys(attributes).forEach(function (key) {
237
+ style.setAttribute(key, attributes[key]);
238
+ });
582
239
 
583
- this.isTargetDrag = isDrag;
584
- if (this.targetElement) {
585
- const isBodyTarget = this.targetElement === document.body;
586
- if (isDrag) {
587
- // 立即显示拖拽区域
588
- this.$nextTick(() => {
589
- this.appendDragArea();
590
- });
591
- if (isBodyTarget && this.$refs.dropAreaRef) {
592
- this.$refs.dropAreaRef.style.position = 'fixed';
593
- this.$refs.dropAreaRef.style.width = '100vw';
594
- this.$refs.dropAreaRef.style.height = '100vh';
595
- this.$refs.dropAreaRef.style.left = '0';
596
- this.$refs.dropAreaRef.style.top = '0';
597
- this.$refs.dropAreaRef.style.zIndex = '9999';
598
- } else {
599
- this.targetElement.style.position = 'relative';
600
- }
601
- } else {
602
- // 延迟移除拖拽区域,避免闪烁
603
- setTimeout(() => {
604
- this.removeDragArea();
605
- }, 100);
606
- if (!isBodyTarget) {
607
- this.targetElement.style.position = '';
608
- }
609
- }
610
- }
611
- },
612
- // 修改事件处理方法
613
- targetDragEnter(event) {
614
- event.preventDefault();
615
- event.stopPropagation();
240
+ if (typeof options.insert === 'function') {
241
+ options.insert(style);
242
+ } else {
243
+ var target = getTarget(options.insert || 'head');
616
244
 
617
- // 移除防抖,直接执行
618
- this.toggleDragStyle(true);
619
- },
620
- targetDropLeave(event) {
621
- event.preventDefault();
622
- event.stopPropagation();
623
- const relatedTarget = event.relatedTarget;
245
+ if (!target) {
246
+ throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
247
+ }
624
248
 
625
- // 如果离开后进入的元素仍在目标元素内部,或者进入了拖拽区域本身,不执行样式移除
626
- if (this.targetElement && (this.targetElement.contains(relatedTarget) || this.$refs.dropAreaRef && this.$refs.dropAreaRef.contains(relatedTarget))) {
627
- return;
628
- }
249
+ target.appendChild(style);
250
+ }
629
251
 
630
- // 移除防抖,直接执行
631
- this.toggleDragStyle(false);
632
- },
633
- targetDrop(event) {
634
- event.preventDefault();
635
- event.stopPropagation();
252
+ return style;
253
+ }
636
254
 
637
- // 立即移除拖拽样式
638
- this.toggleDragStyle(false);
639
- if (event.dataTransfer) {
640
- const files = event.dataTransfer.files;
641
- if (files.length) {
642
- const filesArray = [];
643
- for (let i = 0; i < files.length; i++) {
644
- filesArray.push(files[i]);
645
- }
646
- this.$emit('upload-drop', filesArray, Object.assign({}, this.$props));
647
- }
648
- }
649
- },
650
- targetDragOver(event) {
651
- event.preventDefault();
652
- event.stopPropagation();
653
- },
654
- // 卡片相关方法
655
- handleDelete(item, index) {
656
- this.$emit('delete-card', item, index);
657
- this.$nextTick(() => this.debouncedCheckPing());
658
- },
659
- // 修改 DOM 操作方法
660
- appendDragArea() {
661
- if (!this.$refs.dropAreaRef || !this.targetElement) {
662
- return;
663
- }
255
+ function removeStyleElement(style) {
256
+ // istanbul ignore if
257
+ if (style.parentNode === null) {
258
+ return false;
259
+ }
664
260
 
665
- // 确保元素已经渲染
666
- this.$nextTick(() => {
667
- const dragAreaNode = this.$refs.dropAreaRef;
261
+ style.parentNode.removeChild(style);
262
+ }
263
+ /* istanbul ignore next */
668
264
 
669
- // 检查是否已经添加过了
670
- if (dragAreaNode.parentNode !== this.targetElement) {
671
- // 显示容器
672
- if (this.$refs.dropAreaContainer) {
673
- this.$refs.dropAreaContainer.style.display = 'block';
674
- }
675
265
 
676
- // 添加到目标元素
677
- this.targetElement.appendChild(dragAreaNode);
266
+ var replaceText = function replaceText() {
267
+ var textStore = [];
268
+ return function replace(index, replacement) {
269
+ textStore[index] = replacement;
270
+ return textStore.filter(Boolean).join('\n');
271
+ };
272
+ }();
678
273
 
679
- // 强制重绘
680
- dragAreaNode.offsetHeight;
681
- }
682
- });
683
- },
684
- removeDragArea() {
685
- if (!this.$refs.dropAreaRef || !this.targetElement) {
686
- return;
687
- }
688
- const dragAreaNode = this.$refs.dropAreaRef;
689
- if (dragAreaNode.parentNode === this.targetElement) {
690
- this.targetElement.removeChild(dragAreaNode);
691
- }
274
+ function applyToSingletonTag(style, index, remove, obj) {
275
+ var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
692
276
 
693
- // 隐藏容器
694
- if (this.$refs.dropAreaContainer) {
695
- this.$refs.dropAreaContainer.style.display = 'none';
696
- }
277
+ /* istanbul ignore if */
278
+
279
+ if (style.styleSheet) {
280
+ style.styleSheet.cssText = replaceText(index, css);
281
+ } else {
282
+ var cssNode = document.createTextNode(css);
283
+ var childNodes = style.childNodes;
284
+
285
+ if (childNodes[index]) {
286
+ style.removeChild(childNodes[index]);
287
+ }
288
+
289
+ if (childNodes.length) {
290
+ style.insertBefore(cssNode, childNodes[index]);
291
+ } else {
292
+ style.appendChild(cssNode);
697
293
  }
698
- },
699
- created() {
700
- this.debouncedCheckPing = this.debounce(this.checkPing, 100);
701
294
  }
702
- });
703
- // CONCATENATED MODULE: ./src/components/Attachments/src/main.vue?vue&type=script&lang=js
704
- /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
705
- // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
706
- var injectStylesIntoStyleTag = __webpack_require__(3);
707
- var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
295
+ }
296
+
297
+ function applyToTag(style, options, obj) {
298
+ var css = obj.css;
299
+ var media = obj.media;
300
+ var sourceMap = obj.sourceMap;
708
301
 
709
- // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Attachments/src/main.vue?vue&type=style&index=0&id=6eb5751e&prod&lang=scss&scoped=true
710
- var mainvue_type_style_index_0_id_6eb5751e_prod_lang_scss_scoped_true = __webpack_require__(88);
302
+ if (media) {
303
+ style.setAttribute('media', media);
304
+ } else {
305
+ style.removeAttribute('media');
306
+ }
711
307
 
712
- // CONCATENATED MODULE: ./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!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Attachments/src/main.vue?vue&type=style&index=0&id=6eb5751e&prod&lang=scss&scoped=true
308
+ if (sourceMap && typeof btoa !== 'undefined') {
309
+ css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
310
+ } // For old IE
713
311
 
714
-
312
+ /* istanbul ignore if */
715
313
 
716
- var options = {};
717
314
 
718
- options.insert = "head";
719
- options.singleton = false;
315
+ if (style.styleSheet) {
316
+ style.styleSheet.cssText = css;
317
+ } else {
318
+ while (style.firstChild) {
319
+ style.removeChild(style.firstChild);
320
+ }
720
321
 
721
- var update = injectStylesIntoStyleTag_default()(mainvue_type_style_index_0_id_6eb5751e_prod_lang_scss_scoped_true["a" /* default */], options);
322
+ style.appendChild(document.createTextNode(css));
323
+ }
324
+ }
722
325
 
326
+ var singleton = null;
327
+ var singletonCounter = 0;
723
328
 
329
+ function addStyle(obj, options) {
330
+ var style;
331
+ var update;
332
+ var remove;
724
333
 
725
- /* harmony default export */ var 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["a" /* default */].locals || {});
726
- // CONCATENATED MODULE: ./src/components/Attachments/src/main.vue?vue&type=style&index=0&id=6eb5751e&prod&lang=scss&scoped=true
334
+ if (options.singleton) {
335
+ var styleIndex = singletonCounter++;
336
+ style = singleton || (singleton = insertStyleElement(options));
337
+ update = applyToSingletonTag.bind(null, style, styleIndex, false);
338
+ remove = applyToSingletonTag.bind(null, style, styleIndex, true);
339
+ } else {
340
+ style = insertStyleElement(options);
341
+ update = applyToTag.bind(null, style, options);
727
342
 
728
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
729
- var componentNormalizer = __webpack_require__(0);
343
+ remove = function remove() {
344
+ removeStyleElement(style);
345
+ };
346
+ }
730
347
 
731
- // CONCATENATED MODULE: ./src/components/Attachments/src/main.vue
348
+ update(obj);
349
+ return function updateStyle(newObj) {
350
+ if (newObj) {
351
+ if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
352
+ return;
353
+ }
732
354
 
355
+ update(obj = newObj);
356
+ } else {
357
+ remove();
358
+ }
359
+ };
360
+ }
733
361
 
362
+ module.exports = function (list, options) {
363
+ options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
364
+ // tags it will allow on a page
734
365
 
366
+ if (!options.singleton && typeof options.singleton !== 'boolean') {
367
+ options.singleton = isOldIE();
368
+ }
735
369
 
370
+ list = list || [];
371
+ var lastIdentifiers = modulesToDom(list, options);
372
+ return function update(newList) {
373
+ newList = newList || [];
736
374
 
375
+ if (Object.prototype.toString.call(newList) !== '[object Array]') {
376
+ return;
377
+ }
737
378
 
738
- /* normalize component */
379
+ for (var i = 0; i < lastIdentifiers.length; i++) {
380
+ var identifier = lastIdentifiers[i];
381
+ var index = getIndexByIdentifier(identifier);
382
+ stylesInDom[index].references--;
383
+ }
739
384
 
740
- var component = Object(componentNormalizer["a" /* default */])(
741
- src_mainvue_type_script_lang_js,
742
- render,
743
- staticRenderFns,
744
- false,
745
- null,
746
- "6eb5751e",
747
- null
748
-
749
- )
385
+ var newLastIdentifiers = modulesToDom(newList, options);
750
386
 
751
- /* harmony default export */ var main = (component.exports);
752
- // CONCATENATED MODULE: ./src/components/Attachments/index.js
387
+ for (var _i = 0; _i < lastIdentifiers.length; _i++) {
388
+ var _identifier = lastIdentifiers[_i];
753
389
 
390
+ var _index = getIndexByIdentifier(_identifier);
754
391
 
755
- /* istanbul ignore next */
756
- main.install = function (Vue) {
757
- Vue.component(main.name, main);
392
+ if (stylesInDom[_index].references === 0) {
393
+ stylesInDom[_index].updater();
394
+
395
+ stylesInDom.splice(_index, 1);
396
+ }
397
+ }
398
+
399
+ lastIdentifiers = newLastIdentifiers;
400
+ };
758
401
  };
759
- /* harmony default export */ var Attachments = __webpack_exports__["default"] = (main);
760
402
 
761
403
  /***/ }),
762
404
 
763
- /***/ 2:
764
- /***/ (function(module, exports, __webpack_require__) {
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
+ /***/ }),
423
+
424
+ /***/ 6314:
425
+ /***/ ((module) => {
765
426
 
766
- "use strict";
767
427
 
768
428
 
769
429
  /*
@@ -833,31 +493,16 @@ module.exports = function (cssWithMappingToString) {
833
493
 
834
494
  /***/ }),
835
495
 
836
- /***/ 27:
837
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
838
-
839
- "use strict";
840
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
841
- /* 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__);
842
- // Imports
843
-
844
- var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
845
- // Module
846
- ___CSS_LOADER_EXPORT___.push([module.i, "[data-v-28b3b638]:root{--color-primary: #409eff;--color-success: #67c23a;--color-warning: #e6a23c;--color-danger: #f56c6c;--color-info: #909399}.el-x-filescard[data-v-28b3b638]{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-28b3b638]{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-28b3b638]{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-28b3b638]:hover{color:#ff4d4f}.el-x-filescard:hover .el-x-filescard-delete-icon[data-v-28b3b638]{display:block}.el-x-filescard-square[data-v-28b3b638]{padding:0;margin:0}.el-x-filescard-icon[data-v-28b3b638]{flex:none;font-size:var(--elx-files-card-icon-size)}.el-x-filescard-img[data-v-28b3b638]{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-28b3b638]{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-28b3b638]{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-28b3b638]{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-28b3b638]{flex:none}.el-x-filescard-content .el-x-filescard-description[data-v-28b3b638]{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-28b3b638]{color:#ff4d4f}.image-preview-container[data-v-28b3b638]{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-28b3b638]{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-28b3b638]{font-size:10px;margin-right:2px;display:flex;align-items:center;height:100%;margin-top:2px}.image-preview-container .preview-mask[data-v-28b3b638]:hover{opacity:1;transition:opacity .3s;cursor:pointer}.image-preview-container-square .preview-mask[data-v-28b3b638]{font-size:14px}.image-preview-container-square .preview-mask .el-icon-view[data-v-28b3b638]{font-size:12px}.preview-mask-loading[data-v-28b3b638]{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-28b3b638]{width:100% !important;height:100% !important;display:flex;justify-content:center;align-items:center}.preview-mask-loading .circle-progress .el-progress-circle[data-v-28b3b638]{width:calc(100% - 12px) !important;height:calc(100% - 12px) !important}.preview-mask-loading .circle-progress .el-progress-circle svg>path[data-v-28b3b638]:nth-child(1){stroke:rgba(255,255,255,.2);stroke-width:8px}.preview-mask-loading .circle-progress .el-progress__text[data-v-28b3b638]{color:#fff;font-size:14px}.preview-mask-error[data-v-28b3b638]{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-28b3b638]{display:none}.fade-enter-active[data-v-28b3b638],.fade-leave-active[data-v-28b3b638]{transition:opacity .3s}.fade-enter[data-v-28b3b638],.fade-leave-to[data-v-28b3b638]{opacity:0}", ""]);
847
- // Exports
848
- /* harmony default export */ __webpack_exports__["a"] = (___CSS_LOADER_EXPORT___);
849
-
850
-
851
- /***/ }),
496
+ /***/ 9442:
497
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
852
498
 
853
- /***/ 29:
854
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
855
499
 
856
- "use strict";
857
- // ESM COMPAT FLAG
858
- __webpack_require__.r(__webpack_exports__);
500
+ // EXPORTS
501
+ __webpack_require__.d(__webpack_exports__, {
502
+ "default": () => (/* binding */ FilesCard)
503
+ });
859
504
 
860
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/main.vue?vue&type=template&id=28b3b638&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=eaf958fa&scoped=true
861
506
  var render = function render() {
862
507
  var _vm = this,
863
508
  _c = _vm._self._c;
@@ -914,12 +559,12 @@ var render = function render() {
914
559
  staticClass: "el-x-filescard-img",
915
560
  attrs: {
916
561
  src: _vm._previewImgUrl,
917
- "preview-src-list": _vm._previewImgUrl ? [_vm._previewImgUrl] : [],
562
+ "preview-src-list": _vm.imgPreview && _vm._previewImgUrl ? [_vm._previewImgUrl] : [],
918
563
  fit: "cover"
919
564
  },
920
565
  on: {
921
566
  click: function ($event) {
922
- return _vm.handlePreviewAction("self");
567
+ _vm.imgPreview ? _vm.handlePreviewAction("self") : null;
923
568
  }
924
569
  }
925
570
  }) : _c(_vm.svgIconMap[_vm._fileType], {
@@ -1024,9 +669,9 @@ var render = function render() {
1024
669
  var staticRenderFns = [];
1025
670
  render._withStripped = true;
1026
671
 
1027
- // CONCATENATED MODULE: ./src/components/FilesCard/src/main.vue?vue&type=template&id=28b3b638&scoped=true
672
+ ;// ./src/components/FilesCard/src/main.vue?vue&type=template&id=eaf958fa&scoped=true
1028
673
 
1029
- // CONCATENATED MODULE: ./src/utils/index.js
674
+ ;// ./src/utils/index.js
1030
675
  /**
1031
676
  * 判断文件类型是否为图片
1032
677
  * @param {string} type 文件类型
@@ -1219,7 +864,7 @@ function getSize(size) {
1219
864
  }
1220
865
  return `${retSize.toFixed(0)} ${units[unitIndex]}`;
1221
866
  }
1222
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/audio.vue?vue&type=template&id=70981d96
867
+ ;// ./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/fileSvg/audio.vue?vue&type=template&id=70981d96
1223
868
  var audiovue_type_template_id_70981d96_render = function render() {
1224
869
  var _vm = this,
1225
870
  _c = _vm._self._c;
@@ -1265,19 +910,18 @@ var audiovue_type_template_id_70981d96_render = function render() {
1265
910
  var audiovue_type_template_id_70981d96_staticRenderFns = [];
1266
911
  audiovue_type_template_id_70981d96_render._withStripped = true;
1267
912
 
1268
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/audio.vue?vue&type=template&id=70981d96
913
+ ;// ./src/components/FilesCard/src/fileSvg/audio.vue?vue&type=template&id=70981d96
1269
914
 
1270
915
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1271
- var componentNormalizer = __webpack_require__(0);
1272
-
1273
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/audio.vue
916
+ var componentNormalizer = __webpack_require__(4486);
917
+ ;// ./src/components/FilesCard/src/fileSvg/audio.vue
1274
918
 
1275
919
  var script = {}
1276
920
 
1277
921
 
1278
922
  /* normalize component */
1279
-
1280
- var component = Object(componentNormalizer["a" /* default */])(
923
+ ;
924
+ var component = (0,componentNormalizer/* default */.A)(
1281
925
  script,
1282
926
  audiovue_type_template_id_70981d96_render,
1283
927
  audiovue_type_template_id_70981d96_staticRenderFns,
@@ -1288,8 +932,8 @@ var component = Object(componentNormalizer["a" /* default */])(
1288
932
 
1289
933
  )
1290
934
 
1291
- /* harmony default export */ var audio = (component.exports);
1292
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/code.vue?vue&type=template&id=900b2442
935
+ /* harmony default export */ const audio = (component.exports);
936
+ ;// ./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/fileSvg/code.vue?vue&type=template&id=900b2442
1293
937
  var codevue_type_template_id_900b2442_render = function render() {
1294
938
  var _vm = this,
1295
939
  _c = _vm._self._c;
@@ -1326,16 +970,16 @@ var codevue_type_template_id_900b2442_render = function render() {
1326
970
  var codevue_type_template_id_900b2442_staticRenderFns = [];
1327
971
  codevue_type_template_id_900b2442_render._withStripped = true;
1328
972
 
1329
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/code.vue?vue&type=template&id=900b2442
973
+ ;// ./src/components/FilesCard/src/fileSvg/code.vue?vue&type=template&id=900b2442
1330
974
 
1331
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/code.vue
975
+ ;// ./src/components/FilesCard/src/fileSvg/code.vue
1332
976
 
1333
977
  var code_script = {}
1334
978
 
1335
979
 
1336
980
  /* normalize component */
1337
-
1338
- var code_component = Object(componentNormalizer["a" /* default */])(
981
+ ;
982
+ var code_component = (0,componentNormalizer/* default */.A)(
1339
983
  code_script,
1340
984
  codevue_type_template_id_900b2442_render,
1341
985
  codevue_type_template_id_900b2442_staticRenderFns,
@@ -1346,8 +990,8 @@ var code_component = Object(componentNormalizer["a" /* default */])(
1346
990
 
1347
991
  )
1348
992
 
1349
- /* harmony default export */ var code = (code_component.exports);
1350
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/database.vue?vue&type=template&id=99dc0ab4
993
+ /* harmony default export */ const code = (code_component.exports);
994
+ ;// ./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/fileSvg/database.vue?vue&type=template&id=99dc0ab4
1351
995
  var databasevue_type_template_id_99dc0ab4_render = function render() {
1352
996
  var _vm = this,
1353
997
  _c = _vm._self._c;
@@ -1456,16 +1100,16 @@ var databasevue_type_template_id_99dc0ab4_render = function render() {
1456
1100
  var databasevue_type_template_id_99dc0ab4_staticRenderFns = [];
1457
1101
  databasevue_type_template_id_99dc0ab4_render._withStripped = true;
1458
1102
 
1459
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/database.vue?vue&type=template&id=99dc0ab4
1103
+ ;// ./src/components/FilesCard/src/fileSvg/database.vue?vue&type=template&id=99dc0ab4
1460
1104
 
1461
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/database.vue
1105
+ ;// ./src/components/FilesCard/src/fileSvg/database.vue
1462
1106
 
1463
1107
  var database_script = {}
1464
1108
 
1465
1109
 
1466
1110
  /* normalize component */
1467
-
1468
- var database_component = Object(componentNormalizer["a" /* default */])(
1111
+ ;
1112
+ var database_component = (0,componentNormalizer/* default */.A)(
1469
1113
  database_script,
1470
1114
  databasevue_type_template_id_99dc0ab4_render,
1471
1115
  databasevue_type_template_id_99dc0ab4_staticRenderFns,
@@ -1476,8 +1120,8 @@ var database_component = Object(componentNormalizer["a" /* default */])(
1476
1120
 
1477
1121
  )
1478
1122
 
1479
- /* harmony default export */ var database = (database_component.exports);
1480
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/excel.vue?vue&type=template&id=fc2a1874
1123
+ /* harmony default export */ const database = (database_component.exports);
1124
+ ;// ./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/fileSvg/excel.vue?vue&type=template&id=fc2a1874
1481
1125
  var excelvue_type_template_id_fc2a1874_render = function render() {
1482
1126
  var _vm = this,
1483
1127
  _c = _vm._self._c;
@@ -1523,16 +1167,16 @@ var excelvue_type_template_id_fc2a1874_render = function render() {
1523
1167
  var excelvue_type_template_id_fc2a1874_staticRenderFns = [];
1524
1168
  excelvue_type_template_id_fc2a1874_render._withStripped = true;
1525
1169
 
1526
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/excel.vue?vue&type=template&id=fc2a1874
1170
+ ;// ./src/components/FilesCard/src/fileSvg/excel.vue?vue&type=template&id=fc2a1874
1527
1171
 
1528
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/excel.vue
1172
+ ;// ./src/components/FilesCard/src/fileSvg/excel.vue
1529
1173
 
1530
1174
  var excel_script = {}
1531
1175
 
1532
1176
 
1533
1177
  /* normalize component */
1534
-
1535
- var excel_component = Object(componentNormalizer["a" /* default */])(
1178
+ ;
1179
+ var excel_component = (0,componentNormalizer/* default */.A)(
1536
1180
  excel_script,
1537
1181
  excelvue_type_template_id_fc2a1874_render,
1538
1182
  excelvue_type_template_id_fc2a1874_staticRenderFns,
@@ -1543,8 +1187,8 @@ var excel_component = Object(componentNormalizer["a" /* default */])(
1543
1187
 
1544
1188
  )
1545
1189
 
1546
- /* harmony default export */ var excel = (excel_component.exports);
1547
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/file.vue?vue&type=template&id=18809ace
1190
+ /* harmony default export */ const excel = (excel_component.exports);
1191
+ ;// ./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/fileSvg/file.vue?vue&type=template&id=18809ace
1548
1192
  var filevue_type_template_id_18809ace_render = function render() {
1549
1193
  var _vm = this,
1550
1194
  _c = _vm._self._c;
@@ -1592,16 +1236,16 @@ var filevue_type_template_id_18809ace_render = function render() {
1592
1236
  var filevue_type_template_id_18809ace_staticRenderFns = [];
1593
1237
  filevue_type_template_id_18809ace_render._withStripped = true;
1594
1238
 
1595
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/file.vue?vue&type=template&id=18809ace
1239
+ ;// ./src/components/FilesCard/src/fileSvg/file.vue?vue&type=template&id=18809ace
1596
1240
 
1597
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/file.vue
1241
+ ;// ./src/components/FilesCard/src/fileSvg/file.vue
1598
1242
 
1599
1243
  var file_script = {}
1600
1244
 
1601
1245
 
1602
1246
  /* normalize component */
1603
-
1604
- var file_component = Object(componentNormalizer["a" /* default */])(
1247
+ ;
1248
+ var file_component = (0,componentNormalizer/* default */.A)(
1605
1249
  file_script,
1606
1250
  filevue_type_template_id_18809ace_render,
1607
1251
  filevue_type_template_id_18809ace_staticRenderFns,
@@ -1612,8 +1256,8 @@ var file_component = Object(componentNormalizer["a" /* default */])(
1612
1256
 
1613
1257
  )
1614
1258
 
1615
- /* harmony default export */ var file = (file_component.exports);
1616
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/image.vue?vue&type=template&id=4ecdf3a4
1259
+ /* harmony default export */ const file = (file_component.exports);
1260
+ ;// ./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/fileSvg/image.vue?vue&type=template&id=4ecdf3a4
1617
1261
  var imagevue_type_template_id_4ecdf3a4_render = function render() {
1618
1262
  var _vm = this,
1619
1263
  _c = _vm._self._c;
@@ -1661,16 +1305,16 @@ var imagevue_type_template_id_4ecdf3a4_render = function render() {
1661
1305
  var imagevue_type_template_id_4ecdf3a4_staticRenderFns = [];
1662
1306
  imagevue_type_template_id_4ecdf3a4_render._withStripped = true;
1663
1307
 
1664
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/image.vue?vue&type=template&id=4ecdf3a4
1308
+ ;// ./src/components/FilesCard/src/fileSvg/image.vue?vue&type=template&id=4ecdf3a4
1665
1309
 
1666
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/image.vue
1310
+ ;// ./src/components/FilesCard/src/fileSvg/image.vue
1667
1311
 
1668
1312
  var image_script = {}
1669
1313
 
1670
1314
 
1671
1315
  /* normalize component */
1672
-
1673
- var image_component = Object(componentNormalizer["a" /* default */])(
1316
+ ;
1317
+ var image_component = (0,componentNormalizer/* default */.A)(
1674
1318
  image_script,
1675
1319
  imagevue_type_template_id_4ecdf3a4_render,
1676
1320
  imagevue_type_template_id_4ecdf3a4_staticRenderFns,
@@ -1681,8 +1325,8 @@ var image_component = Object(componentNormalizer["a" /* default */])(
1681
1325
 
1682
1326
  )
1683
1327
 
1684
- /* harmony default export */ var fileSvg_image = (image_component.exports);
1685
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/link.vue?vue&type=template&id=e4113ea4
1328
+ /* harmony default export */ const fileSvg_image = (image_component.exports);
1329
+ ;// ./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/fileSvg/link.vue?vue&type=template&id=e4113ea4
1686
1330
  var linkvue_type_template_id_e4113ea4_render = function render() {
1687
1331
  var _vm = this,
1688
1332
  _c = _vm._self._c;
@@ -1746,16 +1390,16 @@ var linkvue_type_template_id_e4113ea4_render = function render() {
1746
1390
  var linkvue_type_template_id_e4113ea4_staticRenderFns = [];
1747
1391
  linkvue_type_template_id_e4113ea4_render._withStripped = true;
1748
1392
 
1749
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/link.vue?vue&type=template&id=e4113ea4
1393
+ ;// ./src/components/FilesCard/src/fileSvg/link.vue?vue&type=template&id=e4113ea4
1750
1394
 
1751
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/link.vue
1395
+ ;// ./src/components/FilesCard/src/fileSvg/link.vue
1752
1396
 
1753
1397
  var link_script = {}
1754
1398
 
1755
1399
 
1756
1400
  /* normalize component */
1757
-
1758
- var link_component = Object(componentNormalizer["a" /* default */])(
1401
+ ;
1402
+ var link_component = (0,componentNormalizer/* default */.A)(
1759
1403
  link_script,
1760
1404
  linkvue_type_template_id_e4113ea4_render,
1761
1405
  linkvue_type_template_id_e4113ea4_staticRenderFns,
@@ -1766,8 +1410,8 @@ var link_component = Object(componentNormalizer["a" /* default */])(
1766
1410
 
1767
1411
  )
1768
1412
 
1769
- /* harmony default export */ var fileSvg_link = (link_component.exports);
1770
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/mark.vue?vue&type=template&id=46e2c9a8
1413
+ /* harmony default export */ const fileSvg_link = (link_component.exports);
1414
+ ;// ./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/fileSvg/mark.vue?vue&type=template&id=46e2c9a8
1771
1415
  var markvue_type_template_id_46e2c9a8_render = function render() {
1772
1416
  var _vm = this,
1773
1417
  _c = _vm._self._c;
@@ -1817,16 +1461,16 @@ var markvue_type_template_id_46e2c9a8_render = function render() {
1817
1461
  var markvue_type_template_id_46e2c9a8_staticRenderFns = [];
1818
1462
  markvue_type_template_id_46e2c9a8_render._withStripped = true;
1819
1463
 
1820
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/mark.vue?vue&type=template&id=46e2c9a8
1464
+ ;// ./src/components/FilesCard/src/fileSvg/mark.vue?vue&type=template&id=46e2c9a8
1821
1465
 
1822
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/mark.vue
1466
+ ;// ./src/components/FilesCard/src/fileSvg/mark.vue
1823
1467
 
1824
1468
  var mark_script = {}
1825
1469
 
1826
1470
 
1827
1471
  /* normalize component */
1828
-
1829
- var mark_component = Object(componentNormalizer["a" /* default */])(
1472
+ ;
1473
+ var mark_component = (0,componentNormalizer/* default */.A)(
1830
1474
  mark_script,
1831
1475
  markvue_type_template_id_46e2c9a8_render,
1832
1476
  markvue_type_template_id_46e2c9a8_staticRenderFns,
@@ -1837,8 +1481,8 @@ var mark_component = Object(componentNormalizer["a" /* default */])(
1837
1481
 
1838
1482
  )
1839
1483
 
1840
- /* harmony default export */ var mark = (mark_component.exports);
1841
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/pdf.vue?vue&type=template&id=2a5785e0
1484
+ /* harmony default export */ const mark = (mark_component.exports);
1485
+ ;// ./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/fileSvg/pdf.vue?vue&type=template&id=2a5785e0
1842
1486
  var pdfvue_type_template_id_2a5785e0_render = function render() {
1843
1487
  var _vm = this,
1844
1488
  _c = _vm._self._c;
@@ -1884,16 +1528,16 @@ var pdfvue_type_template_id_2a5785e0_render = function render() {
1884
1528
  var pdfvue_type_template_id_2a5785e0_staticRenderFns = [];
1885
1529
  pdfvue_type_template_id_2a5785e0_render._withStripped = true;
1886
1530
 
1887
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/pdf.vue?vue&type=template&id=2a5785e0
1531
+ ;// ./src/components/FilesCard/src/fileSvg/pdf.vue?vue&type=template&id=2a5785e0
1888
1532
 
1889
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/pdf.vue
1533
+ ;// ./src/components/FilesCard/src/fileSvg/pdf.vue
1890
1534
 
1891
1535
  var pdf_script = {}
1892
1536
 
1893
1537
 
1894
1538
  /* normalize component */
1895
-
1896
- var pdf_component = Object(componentNormalizer["a" /* default */])(
1539
+ ;
1540
+ var pdf_component = (0,componentNormalizer/* default */.A)(
1897
1541
  pdf_script,
1898
1542
  pdfvue_type_template_id_2a5785e0_render,
1899
1543
  pdfvue_type_template_id_2a5785e0_staticRenderFns,
@@ -1904,8 +1548,8 @@ var pdf_component = Object(componentNormalizer["a" /* default */])(
1904
1548
 
1905
1549
  )
1906
1550
 
1907
- /* harmony default export */ var pdf = (pdf_component.exports);
1908
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/ppt.vue?vue&type=template&id=3e8773e9
1551
+ /* harmony default export */ const pdf = (pdf_component.exports);
1552
+ ;// ./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/fileSvg/ppt.vue?vue&type=template&id=3e8773e9
1909
1553
  var pptvue_type_template_id_3e8773e9_render = function render() {
1910
1554
  var _vm = this,
1911
1555
  _c = _vm._self._c;
@@ -1951,16 +1595,16 @@ var pptvue_type_template_id_3e8773e9_render = function render() {
1951
1595
  var pptvue_type_template_id_3e8773e9_staticRenderFns = [];
1952
1596
  pptvue_type_template_id_3e8773e9_render._withStripped = true;
1953
1597
 
1954
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/ppt.vue?vue&type=template&id=3e8773e9
1598
+ ;// ./src/components/FilesCard/src/fileSvg/ppt.vue?vue&type=template&id=3e8773e9
1955
1599
 
1956
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/ppt.vue
1600
+ ;// ./src/components/FilesCard/src/fileSvg/ppt.vue
1957
1601
 
1958
1602
  var ppt_script = {}
1959
1603
 
1960
1604
 
1961
1605
  /* normalize component */
1962
-
1963
- var ppt_component = Object(componentNormalizer["a" /* default */])(
1606
+ ;
1607
+ var ppt_component = (0,componentNormalizer/* default */.A)(
1964
1608
  ppt_script,
1965
1609
  pptvue_type_template_id_3e8773e9_render,
1966
1610
  pptvue_type_template_id_3e8773e9_staticRenderFns,
@@ -1971,8 +1615,8 @@ var ppt_component = Object(componentNormalizer["a" /* default */])(
1971
1615
 
1972
1616
  )
1973
1617
 
1974
- /* harmony default export */ var ppt = (ppt_component.exports);
1975
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/three.vue?vue&type=template&id=318c7d20
1618
+ /* harmony default export */ const ppt = (ppt_component.exports);
1619
+ ;// ./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/fileSvg/three.vue?vue&type=template&id=318c7d20
1976
1620
  var threevue_type_template_id_318c7d20_render = function render() {
1977
1621
  var _vm = this,
1978
1622
  _c = _vm._self._c;
@@ -2018,16 +1662,16 @@ var threevue_type_template_id_318c7d20_render = function render() {
2018
1662
  var threevue_type_template_id_318c7d20_staticRenderFns = [];
2019
1663
  threevue_type_template_id_318c7d20_render._withStripped = true;
2020
1664
 
2021
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/three.vue?vue&type=template&id=318c7d20
1665
+ ;// ./src/components/FilesCard/src/fileSvg/three.vue?vue&type=template&id=318c7d20
2022
1666
 
2023
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/three.vue
1667
+ ;// ./src/components/FilesCard/src/fileSvg/three.vue
2024
1668
 
2025
1669
  var three_script = {}
2026
1670
 
2027
1671
 
2028
1672
  /* normalize component */
2029
-
2030
- var three_component = Object(componentNormalizer["a" /* default */])(
1673
+ ;
1674
+ var three_component = (0,componentNormalizer/* default */.A)(
2031
1675
  three_script,
2032
1676
  threevue_type_template_id_318c7d20_render,
2033
1677
  threevue_type_template_id_318c7d20_staticRenderFns,
@@ -2038,8 +1682,8 @@ var three_component = Object(componentNormalizer["a" /* default */])(
2038
1682
 
2039
1683
  )
2040
1684
 
2041
- /* harmony default export */ var three = (three_component.exports);
2042
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/txt.vue?vue&type=template&id=100a4af8
1685
+ /* harmony default export */ const three = (three_component.exports);
1686
+ ;// ./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/fileSvg/txt.vue?vue&type=template&id=100a4af8
2043
1687
  var txtvue_type_template_id_100a4af8_render = function render() {
2044
1688
  var _vm = this,
2045
1689
  _c = _vm._self._c;
@@ -2085,16 +1729,16 @@ var txtvue_type_template_id_100a4af8_render = function render() {
2085
1729
  var txtvue_type_template_id_100a4af8_staticRenderFns = [];
2086
1730
  txtvue_type_template_id_100a4af8_render._withStripped = true;
2087
1731
 
2088
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/txt.vue?vue&type=template&id=100a4af8
1732
+ ;// ./src/components/FilesCard/src/fileSvg/txt.vue?vue&type=template&id=100a4af8
2089
1733
 
2090
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/txt.vue
1734
+ ;// ./src/components/FilesCard/src/fileSvg/txt.vue
2091
1735
 
2092
1736
  var txt_script = {}
2093
1737
 
2094
1738
 
2095
1739
  /* normalize component */
2096
-
2097
- var txt_component = Object(componentNormalizer["a" /* default */])(
1740
+ ;
1741
+ var txt_component = (0,componentNormalizer/* default */.A)(
2098
1742
  txt_script,
2099
1743
  txtvue_type_template_id_100a4af8_render,
2100
1744
  txtvue_type_template_id_100a4af8_staticRenderFns,
@@ -2105,8 +1749,8 @@ var txt_component = Object(componentNormalizer["a" /* default */])(
2105
1749
 
2106
1750
  )
2107
1751
 
2108
- /* harmony default export */ var txt = (txt_component.exports);
2109
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/unknown.vue?vue&type=template&id=54eeafc0
1752
+ /* harmony default export */ const txt = (txt_component.exports);
1753
+ ;// ./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/fileSvg/unknown.vue?vue&type=template&id=54eeafc0
2110
1754
  var unknownvue_type_template_id_54eeafc0_render = function render() {
2111
1755
  var _vm = this,
2112
1756
  _c = _vm._self._c;
@@ -2170,16 +1814,16 @@ var unknownvue_type_template_id_54eeafc0_render = function render() {
2170
1814
  var unknownvue_type_template_id_54eeafc0_staticRenderFns = [];
2171
1815
  unknownvue_type_template_id_54eeafc0_render._withStripped = true;
2172
1816
 
2173
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/unknown.vue?vue&type=template&id=54eeafc0
1817
+ ;// ./src/components/FilesCard/src/fileSvg/unknown.vue?vue&type=template&id=54eeafc0
2174
1818
 
2175
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/unknown.vue
1819
+ ;// ./src/components/FilesCard/src/fileSvg/unknown.vue
2176
1820
 
2177
1821
  var unknown_script = {}
2178
1822
 
2179
1823
 
2180
1824
  /* normalize component */
2181
-
2182
- var unknown_component = Object(componentNormalizer["a" /* default */])(
1825
+ ;
1826
+ var unknown_component = (0,componentNormalizer/* default */.A)(
2183
1827
  unknown_script,
2184
1828
  unknownvue_type_template_id_54eeafc0_render,
2185
1829
  unknownvue_type_template_id_54eeafc0_staticRenderFns,
@@ -2190,8 +1834,8 @@ var unknown_component = Object(componentNormalizer["a" /* default */])(
2190
1834
 
2191
1835
  )
2192
1836
 
2193
- /* harmony default export */ var unknown = (unknown_component.exports);
2194
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/video.vue?vue&type=template&id=ab745446
1837
+ /* harmony default export */ const unknown = (unknown_component.exports);
1838
+ ;// ./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/fileSvg/video.vue?vue&type=template&id=ab745446
2195
1839
  var videovue_type_template_id_ab745446_render = function render() {
2196
1840
  var _vm = this,
2197
1841
  _c = _vm._self._c;
@@ -2237,16 +1881,16 @@ var videovue_type_template_id_ab745446_render = function render() {
2237
1881
  var videovue_type_template_id_ab745446_staticRenderFns = [];
2238
1882
  videovue_type_template_id_ab745446_render._withStripped = true;
2239
1883
 
2240
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/video.vue?vue&type=template&id=ab745446
1884
+ ;// ./src/components/FilesCard/src/fileSvg/video.vue?vue&type=template&id=ab745446
2241
1885
 
2242
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/video.vue
1886
+ ;// ./src/components/FilesCard/src/fileSvg/video.vue
2243
1887
 
2244
1888
  var video_script = {}
2245
1889
 
2246
1890
 
2247
1891
  /* normalize component */
2248
-
2249
- var video_component = Object(componentNormalizer["a" /* default */])(
1892
+ ;
1893
+ var video_component = (0,componentNormalizer/* default */.A)(
2250
1894
  video_script,
2251
1895
  videovue_type_template_id_ab745446_render,
2252
1896
  videovue_type_template_id_ab745446_staticRenderFns,
@@ -2257,8 +1901,8 @@ var video_component = Object(componentNormalizer["a" /* default */])(
2257
1901
 
2258
1902
  )
2259
1903
 
2260
- /* harmony default export */ var video = (video_component.exports);
2261
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/word.vue?vue&type=template&id=13329af3
1904
+ /* harmony default export */ const video = (video_component.exports);
1905
+ ;// ./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/fileSvg/word.vue?vue&type=template&id=13329af3
2262
1906
  var wordvue_type_template_id_13329af3_render = function render() {
2263
1907
  var _vm = this,
2264
1908
  _c = _vm._self._c;
@@ -2304,16 +1948,16 @@ var wordvue_type_template_id_13329af3_render = function render() {
2304
1948
  var wordvue_type_template_id_13329af3_staticRenderFns = [];
2305
1949
  wordvue_type_template_id_13329af3_render._withStripped = true;
2306
1950
 
2307
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/word.vue?vue&type=template&id=13329af3
1951
+ ;// ./src/components/FilesCard/src/fileSvg/word.vue?vue&type=template&id=13329af3
2308
1952
 
2309
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/word.vue
1953
+ ;// ./src/components/FilesCard/src/fileSvg/word.vue
2310
1954
 
2311
1955
  var word_script = {}
2312
1956
 
2313
1957
 
2314
1958
  /* normalize component */
2315
-
2316
- var word_component = Object(componentNormalizer["a" /* default */])(
1959
+ ;
1960
+ var word_component = (0,componentNormalizer/* default */.A)(
2317
1961
  word_script,
2318
1962
  wordvue_type_template_id_13329af3_render,
2319
1963
  wordvue_type_template_id_13329af3_staticRenderFns,
@@ -2324,8 +1968,8 @@ var word_component = Object(componentNormalizer["a" /* default */])(
2324
1968
 
2325
1969
  )
2326
1970
 
2327
- /* harmony default export */ var word = (word_component.exports);
2328
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/fileSvg/zip.vue?vue&type=template&id=65118298
1971
+ /* harmony default export */ const word = (word_component.exports);
1972
+ ;// ./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/fileSvg/zip.vue?vue&type=template&id=65118298
2329
1973
  var zipvue_type_template_id_65118298_render = function render() {
2330
1974
  var _vm = this,
2331
1975
  _c = _vm._self._c;
@@ -2371,16 +2015,16 @@ var zipvue_type_template_id_65118298_render = function render() {
2371
2015
  var zipvue_type_template_id_65118298_staticRenderFns = [];
2372
2016
  zipvue_type_template_id_65118298_render._withStripped = true;
2373
2017
 
2374
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/zip.vue?vue&type=template&id=65118298
2018
+ ;// ./src/components/FilesCard/src/fileSvg/zip.vue?vue&type=template&id=65118298
2375
2019
 
2376
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/zip.vue
2020
+ ;// ./src/components/FilesCard/src/fileSvg/zip.vue
2377
2021
 
2378
2022
  var zip_script = {}
2379
2023
 
2380
2024
 
2381
2025
  /* normalize component */
2382
-
2383
- var zip_component = Object(componentNormalizer["a" /* default */])(
2026
+ ;
2027
+ var zip_component = (0,componentNormalizer/* default */.A)(
2384
2028
  zip_script,
2385
2029
  zipvue_type_template_id_65118298_render,
2386
2030
  zipvue_type_template_id_65118298_staticRenderFns,
@@ -2391,8 +2035,8 @@ var zip_component = Object(componentNormalizer["a" /* default */])(
2391
2035
 
2392
2036
  )
2393
2037
 
2394
- /* harmony default export */ var zip = (zip_component.exports);
2395
- // CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/index.js
2038
+ /* harmony default export */ const zip = (zip_component.exports);
2039
+ ;// ./src/components/FilesCard/src/fileSvg/index.js
2396
2040
 
2397
2041
 
2398
2042
 
@@ -2409,7 +2053,7 @@ var zip_component = Object(componentNormalizer["a" /* default */])(
2409
2053
 
2410
2054
 
2411
2055
 
2412
- /* harmony default export */ var fileSvg = ({
2056
+ /* harmony default export */ const fileSvg = ({
2413
2057
  // 文档类
2414
2058
  word: word,
2415
2059
  excel: excel,
@@ -2438,7 +2082,7 @@ var zip_component = Object(componentNormalizer["a" /* default */])(
2438
2082
  // 未知文件类
2439
2083
  unknown: unknown
2440
2084
  });
2441
- // CONCATENATED MODULE: ./src/components/FilesCard/src/options.js
2085
+ ;// ./src/components/FilesCard/src/options.js
2442
2086
  const colorMap = {
2443
2087
  word: '#0078D4',
2444
2088
  excel: '#00C851',
@@ -2457,11 +2101,11 @@ const colorMap = {
2457
2101
  file: '#FFC757',
2458
2102
  unknown: '#6E9DA4'
2459
2103
  };
2460
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/main.vue?vue&type=script&lang=js
2104
+ ;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/FilesCard/src/main.vue?vue&type=script&lang=js
2461
2105
 
2462
2106
 
2463
2107
 
2464
- /* harmony default export */ var mainvue_type_script_lang_js = ({
2108
+ /* harmony default export */ const mainvue_type_script_lang_js = ({
2465
2109
  name: 'ElXFilesCard',
2466
2110
  props: {
2467
2111
  uid: {
@@ -2629,6 +2273,12 @@ const colorMap = {
2629
2273
  }
2630
2274
  },
2631
2275
  watch: {
2276
+ name: {
2277
+ handler() {
2278
+ this.parseFileName();
2279
+ },
2280
+ immediate: true
2281
+ },
2632
2282
  imgFile: {
2633
2283
  handler: async function (newFile) {
2634
2284
  if (newFile) {
@@ -2649,9 +2299,7 @@ const colorMap = {
2649
2299
  immediate: true
2650
2300
  }
2651
2301
  },
2652
- mounted() {
2653
- this.parseFileName();
2654
- },
2302
+ mounted() {},
2655
2303
  methods: {
2656
2304
  handleDelete() {
2657
2305
  this.$emit('delete', {
@@ -2659,7 +2307,8 @@ const colorMap = {
2659
2307
  });
2660
2308
  },
2661
2309
  handlePreviewAction(type) {
2662
- if (this.imgPreview && this.$refs.imgRef && this._previewImgUrl && type === 'mask') {
2310
+ if (!this.imgPreview) return;
2311
+ if (this.$refs.imgRef && this._previewImgUrl && type === 'mask') {
2663
2312
  this.$refs.imgRef.clickHandler();
2664
2313
  }
2665
2314
  if (type === 'self') {
@@ -2685,16 +2334,14 @@ const colorMap = {
2685
2334
  }
2686
2335
  }
2687
2336
  });
2688
- // CONCATENATED MODULE: ./src/components/FilesCard/src/main.vue?vue&type=script&lang=js
2689
- /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
2337
+ ;// ./src/components/FilesCard/src/main.vue?vue&type=script&lang=js
2338
+ /* harmony default export */ const src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
2690
2339
  // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
2691
- var injectStylesIntoStyleTag = __webpack_require__(3);
2340
+ var injectStylesIntoStyleTag = __webpack_require__(5072);
2692
2341
  var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
2693
-
2694
- // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/main.vue?vue&type=style&index=0&id=28b3b638&prod&lang=scss&scoped=true
2695
- var mainvue_type_style_index_0_id_28b3b638_prod_lang_scss_scoped_true = __webpack_require__(27);
2696
-
2697
- // CONCATENATED MODULE: ./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!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FilesCard/src/main.vue?vue&type=style&index=0&id=28b3b638&prod&lang=scss&scoped=true
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
2698
2345
 
2699
2346
 
2700
2347
 
@@ -2703,336 +2350,681 @@ var options = {};
2703
2350
  options.insert = "head";
2704
2351
  options.singleton = false;
2705
2352
 
2706
- var update = injectStylesIntoStyleTag_default()(mainvue_type_style_index_0_id_28b3b638_prod_lang_scss_scoped_true["a" /* default */], options);
2353
+ var update = injectStylesIntoStyleTag_default()(mainvue_type_style_index_0_id_eaf958fa_prod_lang_scss_scoped_true/* default */.A, options);
2707
2354
 
2708
2355
 
2709
2356
 
2710
- /* harmony default export */ var src_mainvue_type_style_index_0_id_28b3b638_prod_lang_scss_scoped_true = (mainvue_type_style_index_0_id_28b3b638_prod_lang_scss_scoped_true["a" /* default */].locals || {});
2711
- // CONCATENATED MODULE: ./src/components/FilesCard/src/main.vue?vue&type=style&index=0&id=28b3b638&prod&lang=scss&scoped=true
2712
-
2713
- // CONCATENATED MODULE: ./src/components/FilesCard/src/main.vue
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
2714
2359
 
2360
+ ;// ./src/components/FilesCard/src/main.vue
2715
2361
 
2716
2362
 
2717
2363
 
2364
+ ;
2718
2365
 
2719
2366
 
2720
2367
  /* normalize component */
2721
2368
 
2722
- var main_component = Object(componentNormalizer["a" /* default */])(
2369
+ var main_component = (0,componentNormalizer/* default */.A)(
2723
2370
  src_mainvue_type_script_lang_js,
2724
2371
  render,
2725
2372
  staticRenderFns,
2726
2373
  false,
2727
2374
  null,
2728
- "28b3b638",
2375
+ "eaf958fa",
2729
2376
  null
2730
2377
 
2731
2378
  )
2732
2379
 
2733
- /* harmony default export */ var main = (main_component.exports);
2734
- // CONCATENATED MODULE: ./src/components/FilesCard/index.js
2380
+ /* harmony default export */ const main = (main_component.exports);
2381
+ ;// ./src/components/FilesCard/index.js
2735
2382
 
2736
2383
 
2737
2384
  /* istanbul ignore next */
2738
2385
  main.install = function (Vue) {
2739
2386
  Vue.component(main.name, main);
2740
2387
  };
2741
- /* harmony default export */ var FilesCard = __webpack_exports__["default"] = (main);
2742
-
2743
- /***/ }),
2388
+ /* harmony default export */ const FilesCard = (main);
2744
2389
 
2745
- /***/ 3:
2746
- /***/ (function(module, exports, __webpack_require__) {
2390
+ /***/ })
2747
2391
 
2748
- "use strict";
2392
+ /******/ });
2393
+ /************************************************************************/
2394
+ /******/ // The module cache
2395
+ /******/ var __webpack_module_cache__ = {};
2396
+ /******/
2397
+ /******/ // The require function
2398
+ /******/ function __webpack_require__(moduleId) {
2399
+ /******/ // Check if module is in cache
2400
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
2401
+ /******/ if (cachedModule !== undefined) {
2402
+ /******/ return cachedModule.exports;
2403
+ /******/ }
2404
+ /******/ // Create a new module (and put it into the cache)
2405
+ /******/ var module = __webpack_module_cache__[moduleId] = {
2406
+ /******/ id: moduleId,
2407
+ /******/ // no module.loaded needed
2408
+ /******/ exports: {}
2409
+ /******/ };
2410
+ /******/
2411
+ /******/ // Execute the module function
2412
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
2413
+ /******/
2414
+ /******/ // Return the exports of the module
2415
+ /******/ return module.exports;
2416
+ /******/ }
2417
+ /******/
2418
+ /************************************************************************/
2419
+ /******/ /* webpack/runtime/compat get default export */
2420
+ /******/ (() => {
2421
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
2422
+ /******/ __webpack_require__.n = (module) => {
2423
+ /******/ var getter = module && module.__esModule ?
2424
+ /******/ () => (module['default']) :
2425
+ /******/ () => (module);
2426
+ /******/ __webpack_require__.d(getter, { a: getter });
2427
+ /******/ return getter;
2428
+ /******/ };
2429
+ /******/ })();
2430
+ /******/
2431
+ /******/ /* webpack/runtime/define property getters */
2432
+ /******/ (() => {
2433
+ /******/ // define getter functions for harmony exports
2434
+ /******/ __webpack_require__.d = (exports, definition) => {
2435
+ /******/ for(var key in definition) {
2436
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
2437
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
2438
+ /******/ }
2439
+ /******/ }
2440
+ /******/ };
2441
+ /******/ })();
2442
+ /******/
2443
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
2444
+ /******/ (() => {
2445
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
2446
+ /******/ })();
2447
+ /******/
2448
+ /******/ /* webpack/runtime/make namespace object */
2449
+ /******/ (() => {
2450
+ /******/ // define __esModule on exports
2451
+ /******/ __webpack_require__.r = (exports) => {
2452
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
2453
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2454
+ /******/ }
2455
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
2456
+ /******/ };
2457
+ /******/ })();
2458
+ /******/
2459
+ /******/ /* webpack/runtime/nonce */
2460
+ /******/ (() => {
2461
+ /******/ __webpack_require__.nc = undefined;
2462
+ /******/ })();
2463
+ /******/
2464
+ /************************************************************************/
2465
+ var __webpack_exports__ = {};
2466
+ // ESM COMPAT FLAG
2467
+ __webpack_require__.r(__webpack_exports__);
2749
2468
 
2469
+ // EXPORTS
2470
+ __webpack_require__.d(__webpack_exports__, {
2471
+ "default": () => (/* binding */ Attachments)
2472
+ });
2750
2473
 
2751
- var isOldIE = function isOldIE() {
2752
- var memo;
2753
- return function memorize() {
2754
- if (typeof memo === 'undefined') {
2755
- // Test for IE <= 9 as proposed by Browserhacks
2756
- // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
2757
- // Tests for existence of standard globals is to allow style-loader
2758
- // to operate correctly into non-standard environments
2759
- // @see https://github.com/webpack-contrib/style-loader/issues/177
2760
- memo = Boolean(window && document && document.all && !window.atob);
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
2475
+ var render = function render() {
2476
+ var _vm = this,
2477
+ _c = _vm._self._c;
2478
+ return _c("div", {
2479
+ ref: "wrapperRef",
2480
+ staticClass: "el-x-attachments-wrapper",
2481
+ class: {
2482
+ "el-x-attachments-overflow-ping-start": _vm.overflow === "scrollX" && _vm.pingStart,
2483
+ "el-x-attachments-overflow-ping-end": _vm.overflow === "scrollX" && _vm.pingEnd
2484
+ },
2485
+ style: {
2486
+ ..._vm.listStyle,
2487
+ "--el-x-attachments-upload-icon-size": _vm.uploadIconSize
2761
2488
  }
2762
-
2763
- return memo;
2764
- };
2765
- }();
2766
-
2767
- var getTarget = function getTarget() {
2768
- var memo = {};
2769
- return function memorize(target) {
2770
- if (typeof memo[target] === 'undefined') {
2771
- var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
2772
-
2773
- if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
2774
- try {
2775
- // This will throw an exception if access to iframe is blocked
2776
- // due to cross-origin restrictions
2777
- styleTarget = styleTarget.contentDocument.head;
2778
- } catch (e) {
2779
- // istanbul ignore next
2780
- styleTarget = null;
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", {
2504
+ staticClass: "el-x-attachments-background"
2505
+ }, [_vm.overflow === "scrollX" && _vm.pingStart ? _c("div", {
2506
+ staticClass: "el-x-attachments-background-start"
2507
+ }) : _vm._e(), _vm._v(" "), _vm.overflow === "scrollX" && _vm.pingEnd ? _c("div", {
2508
+ staticClass: "el-x-attachments-background-end"
2509
+ }) : _vm._e()]), _vm._v(" "), _c("div", {
2510
+ ref: "containerRef",
2511
+ staticClass: "el-x-attachments",
2512
+ class: {
2513
+ [`el-x-attachments-overflow-${_vm.overflow}`]: _vm.overflow
2514
+ },
2515
+ style: {
2516
+ ...(_vm.overflow === "scrollX" ? {
2517
+ whiteSpace: "nowrap",
2518
+ overflowX: "auto",
2519
+ overflowY: "hidden"
2520
+ } : {}),
2521
+ ...(_vm.overflow === "scrollY" ? {
2522
+ overflowX: "hidden",
2523
+ overflowY: "auto"
2524
+ } : {}),
2525
+ ...(_vm.overflow === "wrap" ? {
2526
+ display: "flex",
2527
+ flexWrap: "wrap"
2528
+ } : {})
2529
+ },
2530
+ on: {
2531
+ scroll: _vm.debouncedCheckPing
2532
+ }
2533
+ }, [_vm.items.length ? _c("div", {
2534
+ class: {
2535
+ "el-x-attachments-file-card-wrap": _vm.overflow === "scrollX"
2536
+ }
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"
2781
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
+ }, {
2556
+ 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
+ },
2565
+ 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
2782
2572
  }
2783
-
2784
- memo[target] = styleTarget;
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
+ },
2582
+ on: {
2583
+ click: _vm.onScrollLeft
2584
+ }
2585
+ }, [_c("i", {
2586
+ staticClass: "el-icon-arrow-left"
2587
+ })]) : _vm._e()];
2588
+ }, {
2589
+ show: _vm.overflow === "scrollX" && _vm.pingStart,
2590
+ 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
+ }, {
2604
+ show: _vm.overflow === "scrollX" && _vm.pingEnd,
2605
+ onScrollRight: _vm.onScrollRight
2606
+ }), _vm._v(" "), _vm.isTargetDrag ? _c("div", {
2607
+ ref: "dropAreaContainer",
2608
+ staticStyle: {
2609
+ display: "none"
2785
2610
  }
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);
2621
+ };
2622
+ var staticRenderFns = [];
2623
+ render._withStripped = true;
2786
2624
 
2787
- return memo[target];
2788
- };
2789
- }();
2790
-
2791
- var stylesInDom = [];
2625
+ ;// ./src/components/Attachments/src/main.vue?vue&type=template&id=6eb5751e&scoped=true
2792
2626
 
2793
- function getIndexByIdentifier(identifier) {
2794
- var result = -1;
2627
+ // EXTERNAL MODULE: ./src/components/FilesCard/index.js + 58 modules
2628
+ var FilesCard = __webpack_require__(9442);
2629
+ ;// ./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
2795
2630
 
2796
- for (var i = 0; i < stylesInDom.length; i++) {
2797
- if (stylesInDom[i].identifier === identifier) {
2798
- result = i;
2799
- break;
2631
+ /* harmony default export */ const mainvue_type_script_lang_js = ({
2632
+ name: 'ElXAttachments',
2633
+ components: {
2634
+ ElXFilesCard: FilesCard["default"]
2635
+ },
2636
+ props: {
2637
+ items: {
2638
+ type: Array,
2639
+ default: () => []
2640
+ },
2641
+ overflow: {
2642
+ type: String,
2643
+ default: 'scrollX'
2644
+ },
2645
+ listStyle: {
2646
+ type: Object,
2647
+ default: () => ({})
2648
+ },
2649
+ uploadIconSize: {
2650
+ type: String,
2651
+ default: '64px'
2652
+ },
2653
+ dragTarget: {
2654
+ type: [String, Object, HTMLElement],
2655
+ default: undefined
2656
+ },
2657
+ hideUpload: {
2658
+ type: Boolean,
2659
+ default: false
2660
+ },
2661
+ limit: {
2662
+ type: Number,
2663
+ default: undefined
2664
+ },
2665
+ uploadAction: {
2666
+ type: String,
2667
+ default: '#'
2800
2668
  }
2801
- }
2802
-
2803
- return result;
2804
- }
2805
-
2806
- function modulesToDom(list, options) {
2807
- var idCountMap = {};
2808
- var identifiers = [];
2809
-
2810
- for (var i = 0; i < list.length; i++) {
2811
- var item = list[i];
2812
- var id = options.base ? item[0] + options.base : item[0];
2813
- var count = idCountMap[id] || 0;
2814
- var identifier = "".concat(id, " ").concat(count);
2815
- idCountMap[id] = count + 1;
2816
- var index = getIndexByIdentifier(identifier);
2817
- var obj = {
2818
- css: item[1],
2819
- media: item[2],
2820
- sourceMap: item[3]
2669
+ },
2670
+ data() {
2671
+ return {
2672
+ containerRef: null,
2673
+ wrapperRef: null,
2674
+ firstMount: false,
2675
+ pingStart: false,
2676
+ pingEnd: false,
2677
+ TOLERANCE: 1,
2678
+ // 上传相关
2679
+ targetElement: null,
2680
+ isTargetDrag: false,
2681
+ dropAreaRef: null,
2682
+ dropAreaContainer: null
2821
2683
  };
2822
-
2823
- if (index !== -1) {
2824
- stylesInDom[index].references++;
2825
- stylesInDom[index].updater(obj);
2826
- } else {
2827
- stylesInDom.push({
2828
- identifier: identifier,
2829
- updater: addStyle(obj, options),
2830
- references: 1
2831
- });
2684
+ },
2685
+ computed: {
2686
+ isOverLimit() {
2687
+ if (this.limit && this.items.length >= this.limit) {
2688
+ return true;
2689
+ }
2690
+ return false;
2832
2691
  }
2692
+ },
2693
+ mounted() {
2694
+ this.firstMount = true;
2695
+ this.$nextTick(() => this.debouncedCheckPing());
2696
+ window.addEventListener('resize', this.debouncedCheckPing);
2833
2697
 
2834
- identifiers.push(identifier);
2835
- }
2836
-
2837
- return identifiers;
2838
- }
2839
-
2840
- function insertStyleElement(options) {
2841
- var style = document.createElement('style');
2842
- var attributes = options.attributes || {};
2843
-
2844
- if (typeof attributes.nonce === 'undefined') {
2845
- var nonce = true ? __webpack_require__.nc : undefined;
2698
+ // 如果有拖拽目标元素,则监听拖拽事件
2699
+ if (this.$refs.wrapperRef) {
2700
+ this.targetElement = this.getTargetElement() || this.$refs.wrapperRef;
2846
2701
 
2847
- if (nonce) {
2848
- attributes.nonce = nonce;
2702
+ // 监听拖拽事件
2703
+ this.targetElement.addEventListener('dragenter', this.targetDragEnter, false);
2704
+ this.targetElement.addEventListener('dragleave', this.targetDropLeave, false);
2705
+ this.targetElement.addEventListener('drop', this.targetDrop, false);
2706
+ this.targetElement.addEventListener('dragover', this.targetDragOver, false);
2849
2707
  }
2850
- }
2851
-
2852
- Object.keys(attributes).forEach(function (key) {
2853
- style.setAttribute(key, attributes[key]);
2854
- });
2855
-
2856
- if (typeof options.insert === 'function') {
2857
- options.insert(style);
2858
- } else {
2859
- var target = getTarget(options.insert || 'head');
2860
-
2861
- if (!target) {
2862
- throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
2708
+ },
2709
+ beforeDestroy() {
2710
+ window.removeEventListener('resize', this.debouncedCheckPing);
2711
+ if (this.targetElement) {
2712
+ this.targetElement.removeEventListener('dragenter', this.targetDragEnter, false);
2713
+ this.targetElement.removeEventListener('dragleave', this.targetDropLeave, false);
2714
+ this.targetElement.removeEventListener('drop', this.targetDrop, false);
2715
+ this.targetElement.removeEventListener('dragover', this.targetDragOver, false);
2863
2716
  }
2864
2717
 
2865
- target.appendChild(style);
2866
- }
2867
-
2868
- return style;
2869
- }
2870
-
2871
- function removeStyleElement(style) {
2872
- // istanbul ignore if
2873
- if (style.parentNode === null) {
2874
- return false;
2875
- }
2876
-
2877
- style.parentNode.removeChild(style);
2878
- }
2879
- /* istanbul ignore next */
2880
-
2881
-
2882
- var replaceText = function replaceText() {
2883
- var textStore = [];
2884
- return function replace(index, replacement) {
2885
- textStore[index] = replacement;
2886
- return textStore.filter(Boolean).join('\n');
2887
- };
2888
- }();
2889
-
2890
- function applyToSingletonTag(style, index, remove, obj) {
2891
- var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
2718
+ // 清理可能存在的 dropArea 元素
2719
+ this.removeDragArea();
2720
+ },
2721
+ watch: {
2722
+ 'items.length': function () {
2723
+ this.$nextTick(() => this.debouncedCheckPing());
2724
+ },
2725
+ overflow: function () {
2726
+ this.$nextTick(() => this.debouncedCheckPing());
2727
+ },
2728
+ dragTarget: function () {
2729
+ this.$nextTick(() => {
2730
+ // 如果有拖拽目标元素,则监听拖拽事件
2731
+ if (this.$refs.wrapperRef) {
2732
+ if (this.targetElement) {
2733
+ this.targetElement.removeEventListener('dragenter', this.targetDragEnter, false);
2734
+ this.targetElement.removeEventListener('dragleave', this.targetDropLeave, false);
2735
+ this.targetElement.removeEventListener('drop', this.targetDrop, false);
2736
+ this.targetElement.removeEventListener('dragover', this.targetDragOver, false);
2737
+ }
2738
+ this.targetElement = this.getTargetElement() || this.$refs.wrapperRef;
2892
2739
 
2893
- /* istanbul ignore if */
2740
+ // 监听拖拽事件
2741
+ this.targetElement.addEventListener('dragenter', this.targetDragEnter, false);
2742
+ this.targetElement.addEventListener('dragleave', this.targetDropLeave, false);
2743
+ this.targetElement.addEventListener('drop', this.targetDrop, false);
2744
+ this.targetElement.addEventListener('dragover', this.targetDragOver, false);
2745
+ }
2746
+ });
2747
+ },
2748
+ isTargetDrag: function (newVal) {
2749
+ if (newVal) {
2750
+ this.appendDragArea();
2751
+ } else {
2752
+ this.removeDragArea();
2753
+ }
2754
+ }
2755
+ },
2756
+ methods: {
2757
+ // 列表相关方法
2758
+ checkPing() {
2759
+ const containerEle = this.$refs.containerRef;
2760
+ if (!containerEle) return;
2761
+ if (this.overflow === 'scrollX') {
2762
+ this.pingStart = Math.abs(containerEle.scrollLeft) >= this.TOLERANCE;
2763
+ this.pingEnd = containerEle.scrollWidth - containerEle.clientWidth - Math.abs(containerEle.scrollLeft) >= this.TOLERANCE;
2764
+ } else if (this.overflow === 'scrollY') {
2765
+ this.pingStart = containerEle.scrollTop !== 0;
2766
+ this.pingEnd = containerEle.scrollHeight - containerEle.clientHeight !== containerEle.scrollTop;
2767
+ } else {
2768
+ this.pingStart = false;
2769
+ this.pingEnd = false;
2770
+ }
2771
+ },
2772
+ onScrollOffset(offset) {
2773
+ const containerEle = this.$refs.containerRef;
2774
+ if (containerEle) {
2775
+ containerEle.scrollTo({
2776
+ left: this.overflow === 'scrollX' ? containerEle.scrollLeft + offset * containerEle.clientWidth : containerEle.scrollLeft,
2777
+ top: this.overflow === 'scrollY' ? containerEle.scrollTop + offset * containerEle.clientHeight : containerEle.scrollTop,
2778
+ behavior: 'smooth'
2779
+ });
2780
+ }
2781
+ },
2782
+ onScrollLeft() {
2783
+ this.onScrollOffset(-1);
2784
+ },
2785
+ onScrollRight() {
2786
+ this.onScrollOffset(1);
2787
+ },
2788
+ // 防抖函数
2789
+ debounce(func, wait) {
2790
+ let timeout;
2791
+ return function () {
2792
+ const context = this;
2793
+ const args = arguments;
2794
+ clearTimeout(timeout);
2795
+ timeout = setTimeout(() => {
2796
+ func.apply(context, args);
2797
+ }, wait);
2798
+ };
2799
+ },
2800
+ customUpload(options) {
2801
+ // 自定义上传方法,如果父组件提供了http-request,则使用父组件的
2802
+ if (this.$attrs['http-request']) {
2803
+ return this.$attrs['http-request'](options);
2804
+ }
2894
2805
 
2895
- if (style.styleSheet) {
2896
- style.styleSheet.cssText = replaceText(index, css);
2897
- } else {
2898
- var cssNode = document.createTextNode(css);
2899
- var childNodes = style.childNodes;
2806
+ // 默认实现:发出事件,让父组件处理
2807
+ const {
2808
+ file
2809
+ } = options;
2810
+ this.$emit('upload-change', {
2811
+ file
2812
+ }, [file]);
2900
2813
 
2901
- if (childNodes[index]) {
2902
- style.removeChild(childNodes[index]);
2903
- }
2814
+ // 如果需要模拟上传进度和成功/失败状态,可以在此实现
2815
+ // 例如:options.onProgress({ percent: 50 })
2816
+ // options.onSuccess({ url: 'https://example.com/file.jpg' })
2817
+ // 或者 options.onError(new Error('Upload failed'))
2904
2818
 
2905
- if (childNodes.length) {
2906
- style.insertBefore(cssNode, childNodes[index]);
2907
- } else {
2908
- style.appendChild(cssNode);
2909
- }
2910
- }
2911
- }
2819
+ // 由于我们只是返回事件,不实际上传,所以直接返回一个空Promise
2820
+ return Promise.resolve();
2821
+ },
2822
+ handleUploadChange(file, fileList) {
2823
+ this.$emit('upload-change', file, fileList);
2824
+ },
2825
+ handleUploadSuccess(response, file, fileList) {
2826
+ this.$emit('upload-success', response, file, fileList);
2827
+ },
2828
+ handleUploadError(error, file, fileList) {
2829
+ this.$emit('upload-error', error, file, fileList);
2830
+ },
2831
+ getTargetElement() {
2832
+ if (!this.dragTarget) return this.$refs.wrapperRef;
2912
2833
 
2913
- function applyToTag(style, options, obj) {
2914
- var css = obj.css;
2915
- var media = obj.media;
2916
- var sourceMap = obj.sourceMap;
2834
+ // 处理原生 DOM 元素(如 document.body)
2835
+ if (this.dragTarget instanceof HTMLElement) {
2836
+ return this.dragTarget;
2837
+ }
2838
+ if (typeof this.dragTarget === 'string') {
2839
+ return document.getElementById(this.dragTarget);
2840
+ }
2917
2841
 
2918
- if (media) {
2919
- style.setAttribute('media', media);
2920
- } else {
2921
- style.removeAttribute('media');
2922
- }
2842
+ // Vue2 中获取引用
2843
+ if (this.dragTarget && this.dragTarget.$el) {
2844
+ return this.dragTarget.$el;
2845
+ }
2923
2846
 
2924
- if (sourceMap && typeof btoa !== 'undefined') {
2925
- css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
2926
- } // For old IE
2847
+ // 兜底返回 wrapperRef
2848
+ return this.$refs.wrapperRef;
2849
+ },
2850
+ // 修改拖拽样式切换方法
2851
+ toggleDragStyle(isDrag) {
2852
+ console.log('toggleDragStyle called:', isDrag); // 调试用,可以删除
2927
2853
 
2928
- /* istanbul ignore if */
2854
+ this.isTargetDrag = isDrag;
2855
+ if (this.targetElement) {
2856
+ const isBodyTarget = this.targetElement === document.body;
2857
+ if (isDrag) {
2858
+ // 立即显示拖拽区域
2859
+ this.$nextTick(() => {
2860
+ this.appendDragArea();
2861
+ });
2862
+ if (isBodyTarget && this.$refs.dropAreaRef) {
2863
+ this.$refs.dropAreaRef.style.position = 'fixed';
2864
+ this.$refs.dropAreaRef.style.width = '100vw';
2865
+ this.$refs.dropAreaRef.style.height = '100vh';
2866
+ this.$refs.dropAreaRef.style.left = '0';
2867
+ this.$refs.dropAreaRef.style.top = '0';
2868
+ this.$refs.dropAreaRef.style.zIndex = '9999';
2869
+ } else {
2870
+ this.targetElement.style.position = 'relative';
2871
+ }
2872
+ } else {
2873
+ // 延迟移除拖拽区域,避免闪烁
2874
+ setTimeout(() => {
2875
+ this.removeDragArea();
2876
+ }, 100);
2877
+ if (!isBodyTarget) {
2878
+ this.targetElement.style.position = '';
2879
+ }
2880
+ }
2881
+ }
2882
+ },
2883
+ // 修改事件处理方法
2884
+ targetDragEnter(event) {
2885
+ event.preventDefault();
2886
+ event.stopPropagation();
2929
2887
 
2888
+ // 移除防抖,直接执行
2889
+ this.toggleDragStyle(true);
2890
+ },
2891
+ targetDropLeave(event) {
2892
+ event.preventDefault();
2893
+ event.stopPropagation();
2894
+ const relatedTarget = event.relatedTarget;
2930
2895
 
2931
- if (style.styleSheet) {
2932
- style.styleSheet.cssText = css;
2933
- } else {
2934
- while (style.firstChild) {
2935
- style.removeChild(style.firstChild);
2936
- }
2896
+ // 如果离开后进入的元素仍在目标元素内部,或者进入了拖拽区域本身,不执行样式移除
2897
+ if (this.targetElement && (this.targetElement.contains(relatedTarget) || this.$refs.dropAreaRef && this.$refs.dropAreaRef.contains(relatedTarget))) {
2898
+ return;
2899
+ }
2937
2900
 
2938
- style.appendChild(document.createTextNode(css));
2939
- }
2940
- }
2901
+ // 移除防抖,直接执行
2902
+ this.toggleDragStyle(false);
2903
+ },
2904
+ targetDrop(event) {
2905
+ event.preventDefault();
2906
+ event.stopPropagation();
2941
2907
 
2942
- var singleton = null;
2943
- var singletonCounter = 0;
2908
+ // 立即移除拖拽样式
2909
+ this.toggleDragStyle(false);
2910
+ if (event.dataTransfer) {
2911
+ const files = event.dataTransfer.files;
2912
+ if (files.length) {
2913
+ const filesArray = [];
2914
+ for (let i = 0; i < files.length; i++) {
2915
+ filesArray.push(files[i]);
2916
+ }
2917
+ this.$emit('upload-drop', filesArray, Object.assign({}, this.$props));
2918
+ }
2919
+ }
2920
+ },
2921
+ targetDragOver(event) {
2922
+ event.preventDefault();
2923
+ event.stopPropagation();
2924
+ },
2925
+ // 卡片相关方法
2926
+ handleDelete(item, index) {
2927
+ this.$emit('delete-card', item, index);
2928
+ this.$nextTick(() => this.debouncedCheckPing());
2929
+ },
2930
+ // 修改 DOM 操作方法
2931
+ appendDragArea() {
2932
+ if (!this.$refs.dropAreaRef || !this.targetElement) {
2933
+ return;
2934
+ }
2944
2935
 
2945
- function addStyle(obj, options) {
2946
- var style;
2947
- var update;
2948
- var remove;
2936
+ // 确保元素已经渲染
2937
+ this.$nextTick(() => {
2938
+ const dragAreaNode = this.$refs.dropAreaRef;
2949
2939
 
2950
- if (options.singleton) {
2951
- var styleIndex = singletonCounter++;
2952
- style = singleton || (singleton = insertStyleElement(options));
2953
- update = applyToSingletonTag.bind(null, style, styleIndex, false);
2954
- remove = applyToSingletonTag.bind(null, style, styleIndex, true);
2955
- } else {
2956
- style = insertStyleElement(options);
2957
- update = applyToTag.bind(null, style, options);
2940
+ // 检查是否已经添加过了
2941
+ if (dragAreaNode.parentNode !== this.targetElement) {
2942
+ // 显示容器
2943
+ if (this.$refs.dropAreaContainer) {
2944
+ this.$refs.dropAreaContainer.style.display = 'block';
2945
+ }
2958
2946
 
2959
- remove = function remove() {
2960
- removeStyleElement(style);
2961
- };
2962
- }
2947
+ // 添加到目标元素
2948
+ this.targetElement.appendChild(dragAreaNode);
2963
2949
 
2964
- update(obj);
2965
- return function updateStyle(newObj) {
2966
- if (newObj) {
2967
- if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
2950
+ // 强制重绘
2951
+ dragAreaNode.offsetHeight;
2952
+ }
2953
+ });
2954
+ },
2955
+ removeDragArea() {
2956
+ if (!this.$refs.dropAreaRef || !this.targetElement) {
2968
2957
  return;
2969
2958
  }
2959
+ const dragAreaNode = this.$refs.dropAreaRef;
2960
+ if (dragAreaNode.parentNode === this.targetElement) {
2961
+ this.targetElement.removeChild(dragAreaNode);
2962
+ }
2970
2963
 
2971
- update(obj = newObj);
2972
- } else {
2973
- remove();
2964
+ // 隐藏容器
2965
+ if (this.$refs.dropAreaContainer) {
2966
+ this.$refs.dropAreaContainer.style.display = 'none';
2967
+ }
2974
2968
  }
2975
- };
2976
- }
2977
-
2978
- module.exports = function (list, options) {
2979
- options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
2980
- // tags it will allow on a page
2981
-
2982
- if (!options.singleton && typeof options.singleton !== 'boolean') {
2983
- options.singleton = isOldIE();
2969
+ },
2970
+ created() {
2971
+ this.debouncedCheckPing = this.debounce(this.checkPing, 100);
2984
2972
  }
2973
+ });
2974
+ ;// ./src/components/Attachments/src/main.vue?vue&type=script&lang=js
2975
+ /* harmony default export */ const src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
2976
+ // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
2977
+ var injectStylesIntoStyleTag = __webpack_require__(5072);
2978
+ 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
2985
2982
 
2986
- list = list || [];
2987
- var lastIdentifiers = modulesToDom(list, options);
2988
- return function update(newList) {
2989
- newList = newList || [];
2983
+
2990
2984
 
2991
- if (Object.prototype.toString.call(newList) !== '[object Array]') {
2992
- return;
2993
- }
2985
+ var options = {};
2994
2986
 
2995
- for (var i = 0; i < lastIdentifiers.length; i++) {
2996
- var identifier = lastIdentifiers[i];
2997
- var index = getIndexByIdentifier(identifier);
2998
- stylesInDom[index].references--;
2999
- }
2987
+ options.insert = "head";
2988
+ options.singleton = false;
3000
2989
 
3001
- var newLastIdentifiers = modulesToDom(newList, options);
2990
+ var update = injectStylesIntoStyleTag_default()(mainvue_type_style_index_0_id_6eb5751e_prod_lang_scss_scoped_true/* default */.A, options);
3002
2991
 
3003
- for (var _i = 0; _i < lastIdentifiers.length; _i++) {
3004
- var _identifier = lastIdentifiers[_i];
3005
2992
 
3006
- var _index = getIndexByIdentifier(_identifier);
3007
2993
 
3008
- if (stylesInDom[_index].references === 0) {
3009
- stylesInDom[_index].updater();
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
3010
2996
 
3011
- stylesInDom.splice(_index, 1);
3012
- }
3013
- }
2997
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2998
+ var componentNormalizer = __webpack_require__(4486);
2999
+ ;// ./src/components/Attachments/src/main.vue
3014
3000
 
3015
- lastIdentifiers = newLastIdentifiers;
3016
- };
3017
- };
3018
3001
 
3019
- /***/ }),
3020
3002
 
3021
- /***/ 88:
3022
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3003
+ ;
3023
3004
 
3024
- "use strict";
3025
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
3026
- /* 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__);
3027
- // Imports
3028
3005
 
3029
- var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
3030
- // Module
3031
- ___CSS_LOADER_EXPORT___.push([module.i, "[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:transparent}.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)}}", ""]);
3032
- // Exports
3033
- /* harmony default export */ __webpack_exports__["a"] = (___CSS_LOADER_EXPORT___);
3006
+ /* normalize component */
3007
+
3008
+ var component = (0,componentNormalizer/* default */.A)(
3009
+ src_mainvue_type_script_lang_js,
3010
+ render,
3011
+ staticRenderFns,
3012
+ false,
3013
+ null,
3014
+ "6eb5751e",
3015
+ null
3016
+
3017
+ )
3034
3018
 
3019
+ /* harmony default export */ const main = (component.exports);
3020
+ ;// ./src/components/Attachments/index.js
3035
3021
 
3036
- /***/ })
3037
3022
 
3038
- /******/ });
3023
+ /* istanbul ignore next */
3024
+ main.install = function (Vue) {
3025
+ Vue.component(main.name, main);
3026
+ };
3027
+ /* harmony default export */ const Attachments = (main);
3028
+ module.exports = __webpack_exports__;
3029
+ /******/ })()
3030
+ ;