vue-element-ui-x 1.0.3 → 1.0.4
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.
- package/README.md +20 -9
- package/components.json +13 -0
- package/lib/components/Attachments/index.js +987 -995
- package/lib/components/Bubble/index.js +10656 -10705
- package/lib/components/BubbleList/index.js +10951 -11038
- package/lib/components/Conversations/index.js +14026 -14063
- package/lib/components/FilesCard/index.js +606 -614
- package/lib/components/Prompts/index.js +457 -470
- package/lib/components/Sender/index.js +1701 -1678
- package/lib/components/Thinking/index.js +695 -703
- package/lib/components/ThoughtChain/index.js +25117 -25173
- package/lib/components/Typewriter/index.js +10247 -10302
- package/lib/components/Welcome/index.js +357 -370
- package/lib/index.common.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +32068 -32093
- package/lib/index.umd.js +1 -1
- package/lib/mixins/index.js +61 -116
- package/package.json +24 -6
- package/src/components/Attachments/index.js +8 -8
- package/src/components/Bubble/index.js +6 -6
- package/src/components/BubbleList/index.js +8 -8
- package/src/components/BubbleList/src/loading.vue +75 -75
- package/src/components/Conversations/index.js +8 -8
- package/src/components/FilesCard/index.js +8 -8
- package/src/components/FilesCard/src/fileSvg/audio.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/code.vue +35 -35
- package/src/components/FilesCard/src/fileSvg/database.vue +94 -94
- package/src/components/FilesCard/src/fileSvg/excel.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/file.vue +40 -40
- package/src/components/FilesCard/src/fileSvg/image.vue +40 -40
- package/src/components/FilesCard/src/fileSvg/index.js +46 -46
- package/src/components/FilesCard/src/fileSvg/link.vue +54 -54
- package/src/components/FilesCard/src/fileSvg/mark.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/pdf.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/ppt.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/three.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/txt.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/unknown.vue +54 -54
- package/src/components/FilesCard/src/fileSvg/video.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/word.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/zip.vue +38 -38
- package/src/components/FilesCard/src/main.vue +14 -12
- package/src/components/FilesCard/src/options.js +18 -18
- package/src/components/Prompts/index.js +8 -8
- package/src/components/Sender/index.js +8 -8
- package/src/components/Sender/src/components/ClearButton.vue +28 -28
- package/src/components/Sender/src/components/Loading.vue +53 -53
- package/src/components/Sender/src/components/SendButton.vue +26 -26
- package/src/components/Sender/src/components/SpeechButton.vue +24 -24
- package/src/components/Sender/src/components/SpeechLoading.vue +87 -87
- package/src/components/Sender/src/main.vue +47 -13
- package/src/components/Thinking/index.js +8 -8
- package/src/components/ThoughtChain/index.js +8 -8
- package/src/components/Typewriter/index.js +8 -8
- package/src/components/Welcome/index.js +8 -8
- package/src/index.js +7 -9
- package/src/styles/Sender.scss +1 -1
- package/lib/locale/lang/ar-SA.js +0 -18
- package/lib/locale/lang/ar-SA.umd.js +0 -26
- package/lib/locale/lang/de-DE.js +0 -18
- package/lib/locale/lang/de-DE.umd.js +0 -26
- package/lib/locale/lang/es-ES.js +0 -18
- package/lib/locale/lang/es-ES.umd.js +0 -26
- package/lib/locale/lang/fr-FR.js +0 -18
- package/lib/locale/lang/fr-FR.umd.js +0 -26
- package/lib/locale/lang/it-IT.js +0 -18
- package/lib/locale/lang/it-IT.umd.js +0 -26
- package/lib/locale/lang/ja-JP.js +0 -18
- package/lib/locale/lang/ja-JP.umd.js +0 -26
- package/lib/locale/lang/ko-KR.js +0 -18
- package/lib/locale/lang/ko-KR.umd.js +0 -26
- package/src/styles/button.scss +0 -302
- package/src/styles/var.scss +0 -1051
- /package/lib/locale/lang/{pt-BR.js → pt-br.js} +0 -0
- /package/lib/locale/lang/{pt-BR.umd.js → pt-br.umd.js} +0 -0
|
@@ -1,97 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
3
|
-
/******/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 = 29);
|
|
86
|
-
/******/ })
|
|
87
|
-
/************************************************************************/
|
|
88
|
-
/******/ ({
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
4
|
+
|
|
5
|
+
/***/ 4444:
|
|
6
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
89
7
|
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
94
|
-
/* harmony export
|
|
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,150 +127,482 @@ function normalizeComponent(
|
|
|
192
127
|
|
|
193
128
|
/***/ }),
|
|
194
129
|
|
|
195
|
-
/***/
|
|
196
|
-
/***/ (
|
|
130
|
+
/***/ 5072:
|
|
131
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
197
132
|
|
|
198
|
-
"use strict";
|
|
199
133
|
|
|
200
134
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
//
|
|
206
|
-
//
|
|
207
|
-
|
|
208
|
-
|
|
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);
|
|
145
|
+
}
|
|
209
146
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
147
|
+
return memo;
|
|
148
|
+
};
|
|
149
|
+
}();
|
|
213
150
|
|
|
214
|
-
|
|
215
|
-
|
|
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;
|
|
165
|
+
}
|
|
216
166
|
}
|
|
217
167
|
|
|
218
|
-
|
|
219
|
-
}
|
|
220
|
-
}; // import a list of modules into the list
|
|
221
|
-
// eslint-disable-next-line func-names
|
|
168
|
+
memo[target] = styleTarget;
|
|
169
|
+
}
|
|
222
170
|
|
|
171
|
+
return memo[target];
|
|
172
|
+
};
|
|
173
|
+
}();
|
|
223
174
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
175
|
+
var stylesInDom = [];
|
|
176
|
+
|
|
177
|
+
function getIndexByIdentifier(identifier) {
|
|
178
|
+
var result = -1;
|
|
179
|
+
|
|
180
|
+
for (var i = 0; i < stylesInDom.length; i++) {
|
|
181
|
+
if (stylesInDom[i].identifier === identifier) {
|
|
182
|
+
result = i;
|
|
183
|
+
break;
|
|
228
184
|
}
|
|
185
|
+
}
|
|
229
186
|
|
|
230
|
-
|
|
187
|
+
return result;
|
|
188
|
+
}
|
|
231
189
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
var id = this[i][0];
|
|
190
|
+
function modulesToDom(list, options) {
|
|
191
|
+
var idCountMap = {};
|
|
192
|
+
var identifiers = [];
|
|
236
193
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
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
|
+
};
|
|
206
|
+
|
|
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
|
|
215
|
+
});
|
|
241
216
|
}
|
|
242
217
|
|
|
243
|
-
|
|
244
|
-
|
|
218
|
+
identifiers.push(identifier);
|
|
219
|
+
}
|
|
245
220
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
continue;
|
|
249
|
-
}
|
|
221
|
+
return identifiers;
|
|
222
|
+
}
|
|
250
223
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
} else {
|
|
255
|
-
item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
224
|
+
function insertStyleElement(options) {
|
|
225
|
+
var style = document.createElement('style');
|
|
226
|
+
var attributes = options.attributes || {};
|
|
258
227
|
|
|
259
|
-
|
|
228
|
+
if (typeof attributes.nonce === 'undefined') {
|
|
229
|
+
var nonce = true ? __webpack_require__.nc : 0;
|
|
230
|
+
|
|
231
|
+
if (nonce) {
|
|
232
|
+
attributes.nonce = nonce;
|
|
260
233
|
}
|
|
261
|
-
}
|
|
234
|
+
}
|
|
262
235
|
|
|
263
|
-
|
|
264
|
-
|
|
236
|
+
Object.keys(attributes).forEach(function (key) {
|
|
237
|
+
style.setAttribute(key, attributes[key]);
|
|
238
|
+
});
|
|
265
239
|
|
|
266
|
-
|
|
240
|
+
if (typeof options.insert === 'function') {
|
|
241
|
+
options.insert(style);
|
|
242
|
+
} else {
|
|
243
|
+
var target = getTarget(options.insert || 'head');
|
|
267
244
|
|
|
268
|
-
|
|
269
|
-
|
|
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
|
+
}
|
|
270
248
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
/* 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__);
|
|
274
|
-
// Imports
|
|
249
|
+
target.appendChild(style);
|
|
250
|
+
}
|
|
275
251
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
___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}", ""]);
|
|
279
|
-
// Exports
|
|
280
|
-
/* harmony default export */ __webpack_exports__["a"] = (___CSS_LOADER_EXPORT___);
|
|
252
|
+
return style;
|
|
253
|
+
}
|
|
281
254
|
|
|
255
|
+
function removeStyleElement(style) {
|
|
256
|
+
// istanbul ignore if
|
|
257
|
+
if (style.parentNode === null) {
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
282
260
|
|
|
283
|
-
|
|
261
|
+
style.parentNode.removeChild(style);
|
|
262
|
+
}
|
|
263
|
+
/* istanbul ignore next */
|
|
284
264
|
|
|
285
|
-
/***/ 29:
|
|
286
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
287
265
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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
|
+
}();
|
|
291
273
|
|
|
292
|
-
|
|
293
|
-
var
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
style: {
|
|
306
|
-
"--elx-files-card-icon-size": `${_vm._iconSize}`,
|
|
307
|
-
"--elx-files-card-max-width": `${_vm.maxWidth}`,
|
|
308
|
-
..._vm.styleConfig,
|
|
309
|
-
...(_vm.isHovered && _vm.hoverStyle ? _vm.hoverStyle : {})
|
|
310
|
-
},
|
|
311
|
-
on: {
|
|
312
|
-
mouseenter: function ($event) {
|
|
313
|
-
_vm.isHovered = true;
|
|
314
|
-
},
|
|
315
|
-
mouseleave: function ($event) {
|
|
316
|
-
_vm.isHovered = false;
|
|
317
|
-
}
|
|
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
|
|
276
|
+
|
|
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]);
|
|
318
287
|
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
288
|
+
|
|
289
|
+
if (childNodes.length) {
|
|
290
|
+
style.insertBefore(cssNode, childNodes[index]);
|
|
291
|
+
} else {
|
|
292
|
+
style.appendChild(cssNode);
|
|
323
293
|
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
function applyToTag(style, options, obj) {
|
|
298
|
+
var css = obj.css;
|
|
299
|
+
var media = obj.media;
|
|
300
|
+
var sourceMap = obj.sourceMap;
|
|
301
|
+
|
|
302
|
+
if (media) {
|
|
303
|
+
style.setAttribute('media', media);
|
|
304
|
+
} else {
|
|
305
|
+
style.removeAttribute('media');
|
|
306
|
+
}
|
|
307
|
+
|
|
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
|
|
311
|
+
|
|
312
|
+
/* istanbul ignore if */
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
if (style.styleSheet) {
|
|
316
|
+
style.styleSheet.cssText = css;
|
|
317
|
+
} else {
|
|
318
|
+
while (style.firstChild) {
|
|
319
|
+
style.removeChild(style.firstChild);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
style.appendChild(document.createTextNode(css));
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
var singleton = null;
|
|
327
|
+
var singletonCounter = 0;
|
|
328
|
+
|
|
329
|
+
function addStyle(obj, options) {
|
|
330
|
+
var style;
|
|
331
|
+
var update;
|
|
332
|
+
var remove;
|
|
333
|
+
|
|
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);
|
|
342
|
+
|
|
343
|
+
remove = function remove() {
|
|
344
|
+
removeStyleElement(style);
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
|
|
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
|
+
}
|
|
354
|
+
|
|
355
|
+
update(obj = newObj);
|
|
356
|
+
} else {
|
|
357
|
+
remove();
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
}
|
|
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
|
|
365
|
+
|
|
366
|
+
if (!options.singleton && typeof options.singleton !== 'boolean') {
|
|
367
|
+
options.singleton = isOldIE();
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
list = list || [];
|
|
371
|
+
var lastIdentifiers = modulesToDom(list, options);
|
|
372
|
+
return function update(newList) {
|
|
373
|
+
newList = newList || [];
|
|
374
|
+
|
|
375
|
+
if (Object.prototype.toString.call(newList) !== '[object Array]') {
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
for (var i = 0; i < lastIdentifiers.length; i++) {
|
|
380
|
+
var identifier = lastIdentifiers[i];
|
|
381
|
+
var index = getIndexByIdentifier(identifier);
|
|
382
|
+
stylesInDom[index].references--;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
var newLastIdentifiers = modulesToDom(newList, options);
|
|
386
|
+
|
|
387
|
+
for (var _i = 0; _i < lastIdentifiers.length; _i++) {
|
|
388
|
+
var _identifier = lastIdentifiers[_i];
|
|
389
|
+
|
|
390
|
+
var _index = getIndexByIdentifier(_identifier);
|
|
391
|
+
|
|
392
|
+
if (stylesInDom[_index].references === 0) {
|
|
393
|
+
stylesInDom[_index].updater();
|
|
394
|
+
|
|
395
|
+
stylesInDom.splice(_index, 1);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
lastIdentifiers = newLastIdentifiers;
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
/***/ }),
|
|
404
|
+
|
|
405
|
+
/***/ 6314:
|
|
406
|
+
/***/ ((module) => {
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
/*
|
|
411
|
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
412
|
+
Author Tobias Koppers @sokra
|
|
413
|
+
*/
|
|
414
|
+
// css base code, injected by the css-loader
|
|
415
|
+
// eslint-disable-next-line func-names
|
|
416
|
+
module.exports = function (cssWithMappingToString) {
|
|
417
|
+
var list = []; // return the list of modules as css string
|
|
418
|
+
|
|
419
|
+
list.toString = function toString() {
|
|
420
|
+
return this.map(function (item) {
|
|
421
|
+
var content = cssWithMappingToString(item);
|
|
422
|
+
|
|
423
|
+
if (item[2]) {
|
|
424
|
+
return "@media ".concat(item[2], " {").concat(content, "}");
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
return content;
|
|
428
|
+
}).join("");
|
|
429
|
+
}; // import a list of modules into the list
|
|
430
|
+
// eslint-disable-next-line func-names
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
list.i = function (modules, mediaQuery, dedupe) {
|
|
434
|
+
if (typeof modules === "string") {
|
|
435
|
+
// eslint-disable-next-line no-param-reassign
|
|
436
|
+
modules = [[null, modules, ""]];
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
var alreadyImportedModules = {};
|
|
440
|
+
|
|
441
|
+
if (dedupe) {
|
|
442
|
+
for (var i = 0; i < this.length; i++) {
|
|
443
|
+
// eslint-disable-next-line prefer-destructuring
|
|
444
|
+
var id = this[i][0];
|
|
445
|
+
|
|
446
|
+
if (id != null) {
|
|
447
|
+
alreadyImportedModules[id] = true;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
for (var _i = 0; _i < modules.length; _i++) {
|
|
453
|
+
var item = [].concat(modules[_i]);
|
|
454
|
+
|
|
455
|
+
if (dedupe && alreadyImportedModules[item[0]]) {
|
|
456
|
+
// eslint-disable-next-line no-continue
|
|
457
|
+
continue;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
if (mediaQuery) {
|
|
461
|
+
if (!item[2]) {
|
|
462
|
+
item[2] = mediaQuery;
|
|
463
|
+
} else {
|
|
464
|
+
item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
list.push(item);
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
return list;
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
/***/ })
|
|
476
|
+
|
|
477
|
+
/******/ });
|
|
478
|
+
/************************************************************************/
|
|
479
|
+
/******/ // The module cache
|
|
480
|
+
/******/ var __webpack_module_cache__ = {};
|
|
481
|
+
/******/
|
|
482
|
+
/******/ // The require function
|
|
483
|
+
/******/ function __webpack_require__(moduleId) {
|
|
484
|
+
/******/ // Check if module is in cache
|
|
485
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
486
|
+
/******/ if (cachedModule !== undefined) {
|
|
487
|
+
/******/ return cachedModule.exports;
|
|
488
|
+
/******/ }
|
|
489
|
+
/******/ // Create a new module (and put it into the cache)
|
|
490
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
491
|
+
/******/ id: moduleId,
|
|
492
|
+
/******/ // no module.loaded needed
|
|
493
|
+
/******/ exports: {}
|
|
494
|
+
/******/ };
|
|
495
|
+
/******/
|
|
496
|
+
/******/ // Execute the module function
|
|
497
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
498
|
+
/******/
|
|
499
|
+
/******/ // Return the exports of the module
|
|
500
|
+
/******/ return module.exports;
|
|
501
|
+
/******/ }
|
|
502
|
+
/******/
|
|
503
|
+
/************************************************************************/
|
|
504
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
505
|
+
/******/ (() => {
|
|
506
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
507
|
+
/******/ __webpack_require__.n = (module) => {
|
|
508
|
+
/******/ var getter = module && module.__esModule ?
|
|
509
|
+
/******/ () => (module['default']) :
|
|
510
|
+
/******/ () => (module);
|
|
511
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
512
|
+
/******/ return getter;
|
|
513
|
+
/******/ };
|
|
514
|
+
/******/ })();
|
|
515
|
+
/******/
|
|
516
|
+
/******/ /* webpack/runtime/define property getters */
|
|
517
|
+
/******/ (() => {
|
|
518
|
+
/******/ // define getter functions for harmony exports
|
|
519
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
520
|
+
/******/ for(var key in definition) {
|
|
521
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
522
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
523
|
+
/******/ }
|
|
524
|
+
/******/ }
|
|
525
|
+
/******/ };
|
|
526
|
+
/******/ })();
|
|
527
|
+
/******/
|
|
528
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
529
|
+
/******/ (() => {
|
|
530
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
531
|
+
/******/ })();
|
|
532
|
+
/******/
|
|
533
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
534
|
+
/******/ (() => {
|
|
535
|
+
/******/ // define __esModule on exports
|
|
536
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
537
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
538
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
539
|
+
/******/ }
|
|
540
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
541
|
+
/******/ };
|
|
542
|
+
/******/ })();
|
|
543
|
+
/******/
|
|
544
|
+
/******/ /* webpack/runtime/nonce */
|
|
545
|
+
/******/ (() => {
|
|
546
|
+
/******/ __webpack_require__.nc = undefined;
|
|
547
|
+
/******/ })();
|
|
548
|
+
/******/
|
|
549
|
+
/************************************************************************/
|
|
550
|
+
var __webpack_exports__ = {};
|
|
551
|
+
// ESM COMPAT FLAG
|
|
552
|
+
__webpack_require__.r(__webpack_exports__);
|
|
553
|
+
|
|
554
|
+
// EXPORTS
|
|
555
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
556
|
+
"default": () => (/* binding */ FilesCard)
|
|
557
|
+
});
|
|
558
|
+
|
|
559
|
+
;// ./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
|
|
560
|
+
var render = function render() {
|
|
561
|
+
var _vm = this,
|
|
562
|
+
_c = _vm._self._c;
|
|
563
|
+
return _c("div", {
|
|
564
|
+
staticClass: "el-x-filescard",
|
|
565
|
+
class: {
|
|
566
|
+
"el-x-filescard-square": _vm.isSquareVariant && _vm.isImageFile,
|
|
567
|
+
"el-x-filescard-hovered": _vm.isHovered,
|
|
568
|
+
"el-x-filescard-error": _vm.status === "error",
|
|
569
|
+
"el-x-filescard-done": _vm.status === "done",
|
|
570
|
+
"el-x-filescard-uploading": _vm.status === "uploading"
|
|
571
|
+
},
|
|
572
|
+
style: {
|
|
573
|
+
"--elx-files-card-icon-size": `${_vm._iconSize}`,
|
|
574
|
+
"--elx-files-card-max-width": `${_vm.maxWidth}`,
|
|
575
|
+
..._vm.styleConfig,
|
|
576
|
+
...(_vm.isHovered && _vm.hoverStyle ? _vm.hoverStyle : {})
|
|
577
|
+
},
|
|
578
|
+
on: {
|
|
579
|
+
mouseenter: function ($event) {
|
|
580
|
+
_vm.isHovered = true;
|
|
581
|
+
},
|
|
582
|
+
mouseleave: function ($event) {
|
|
583
|
+
_vm.isHovered = false;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
}, [_vm.status === "uploading" && !(_vm.isSquareVariant && _vm.isImageFile) ? _c("div", {
|
|
587
|
+
staticClass: "el-x-filescard-progress",
|
|
588
|
+
style: {
|
|
589
|
+
width: `${_vm.percent || 0}%`
|
|
590
|
+
}
|
|
591
|
+
}) : _vm._e(), _vm._v(" "), _vm.$slots.icon || _vm._fileType ? _vm._t("icon", function () {
|
|
592
|
+
return [!_vm.isImageFile ? _c(_vm.svgIconMap[_vm._fileType], {
|
|
593
|
+
tag: "component",
|
|
594
|
+
staticClass: "el-x-filescard-icon",
|
|
595
|
+
attrs: {
|
|
596
|
+
color: _vm.iconColor || _vm.colorMap[_vm._fileType]
|
|
597
|
+
}
|
|
598
|
+
}) : _vm._e(), _vm._v(" "), _vm.isImageFile ? [_c("div", {
|
|
599
|
+
staticClass: "image-preview-container",
|
|
600
|
+
class: {
|
|
601
|
+
"image-preview-container-square": _vm.isSquareVariant && _vm.isImageFile
|
|
602
|
+
},
|
|
603
|
+
on: {
|
|
604
|
+
mouseenter: function ($event) {
|
|
605
|
+
_vm.imageHovered = true;
|
|
339
606
|
},
|
|
340
607
|
mouseleave: function ($event) {
|
|
341
608
|
_vm.imageHovered = false;
|
|
@@ -346,12 +613,12 @@ var render = function render() {
|
|
|
346
613
|
staticClass: "el-x-filescard-img",
|
|
347
614
|
attrs: {
|
|
348
615
|
src: _vm._previewImgUrl,
|
|
349
|
-
"preview-src-list": _vm._previewImgUrl ? [_vm._previewImgUrl] : [],
|
|
616
|
+
"preview-src-list": _vm.imgPreview && _vm._previewImgUrl ? [_vm._previewImgUrl] : [],
|
|
350
617
|
fit: "cover"
|
|
351
618
|
},
|
|
352
619
|
on: {
|
|
353
620
|
click: function ($event) {
|
|
354
|
-
|
|
621
|
+
_vm.imgPreview ? _vm.handlePreviewAction("self") : null;
|
|
355
622
|
}
|
|
356
623
|
}
|
|
357
624
|
}) : _c(_vm.svgIconMap[_vm._fileType], {
|
|
@@ -456,9 +723,9 @@ var render = function render() {
|
|
|
456
723
|
var staticRenderFns = [];
|
|
457
724
|
render._withStripped = true;
|
|
458
725
|
|
|
459
|
-
|
|
726
|
+
;// ./src/components/FilesCard/src/main.vue?vue&type=template&id=eaf958fa&scoped=true
|
|
460
727
|
|
|
461
|
-
|
|
728
|
+
;// ./src/utils/index.js
|
|
462
729
|
/**
|
|
463
730
|
* 判断文件类型是否为图片
|
|
464
731
|
* @param {string} type 文件类型
|
|
@@ -651,7 +918,7 @@ function getSize(size) {
|
|
|
651
918
|
}
|
|
652
919
|
return `${retSize.toFixed(0)} ${units[unitIndex]}`;
|
|
653
920
|
}
|
|
654
|
-
|
|
921
|
+
;// ./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
|
|
655
922
|
var audiovue_type_template_id_70981d96_render = function render() {
|
|
656
923
|
var _vm = this,
|
|
657
924
|
_c = _vm._self._c;
|
|
@@ -697,19 +964,18 @@ var audiovue_type_template_id_70981d96_render = function render() {
|
|
|
697
964
|
var audiovue_type_template_id_70981d96_staticRenderFns = [];
|
|
698
965
|
audiovue_type_template_id_70981d96_render._withStripped = true;
|
|
699
966
|
|
|
700
|
-
|
|
967
|
+
;// ./src/components/FilesCard/src/fileSvg/audio.vue?vue&type=template&id=70981d96
|
|
701
968
|
|
|
702
969
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
703
|
-
var componentNormalizer = __webpack_require__(
|
|
704
|
-
|
|
705
|
-
// CONCATENATED MODULE: ./src/components/FilesCard/src/fileSvg/audio.vue
|
|
970
|
+
var componentNormalizer = __webpack_require__(4486);
|
|
971
|
+
;// ./src/components/FilesCard/src/fileSvg/audio.vue
|
|
706
972
|
|
|
707
973
|
var script = {}
|
|
708
974
|
|
|
709
975
|
|
|
710
976
|
/* normalize component */
|
|
711
|
-
|
|
712
|
-
var component =
|
|
977
|
+
;
|
|
978
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
713
979
|
script,
|
|
714
980
|
audiovue_type_template_id_70981d96_render,
|
|
715
981
|
audiovue_type_template_id_70981d96_staticRenderFns,
|
|
@@ -720,8 +986,8 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
720
986
|
|
|
721
987
|
)
|
|
722
988
|
|
|
723
|
-
/* harmony default export */
|
|
724
|
-
|
|
989
|
+
/* harmony default export */ const audio = (component.exports);
|
|
990
|
+
;// ./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
|
|
725
991
|
var codevue_type_template_id_900b2442_render = function render() {
|
|
726
992
|
var _vm = this,
|
|
727
993
|
_c = _vm._self._c;
|
|
@@ -758,16 +1024,16 @@ var codevue_type_template_id_900b2442_render = function render() {
|
|
|
758
1024
|
var codevue_type_template_id_900b2442_staticRenderFns = [];
|
|
759
1025
|
codevue_type_template_id_900b2442_render._withStripped = true;
|
|
760
1026
|
|
|
761
|
-
|
|
1027
|
+
;// ./src/components/FilesCard/src/fileSvg/code.vue?vue&type=template&id=900b2442
|
|
762
1028
|
|
|
763
|
-
|
|
1029
|
+
;// ./src/components/FilesCard/src/fileSvg/code.vue
|
|
764
1030
|
|
|
765
1031
|
var code_script = {}
|
|
766
1032
|
|
|
767
1033
|
|
|
768
1034
|
/* normalize component */
|
|
769
|
-
|
|
770
|
-
var code_component =
|
|
1035
|
+
;
|
|
1036
|
+
var code_component = (0,componentNormalizer/* default */.A)(
|
|
771
1037
|
code_script,
|
|
772
1038
|
codevue_type_template_id_900b2442_render,
|
|
773
1039
|
codevue_type_template_id_900b2442_staticRenderFns,
|
|
@@ -778,8 +1044,8 @@ var code_component = Object(componentNormalizer["a" /* default */])(
|
|
|
778
1044
|
|
|
779
1045
|
)
|
|
780
1046
|
|
|
781
|
-
/* harmony default export */
|
|
782
|
-
|
|
1047
|
+
/* harmony default export */ const code = (code_component.exports);
|
|
1048
|
+
;// ./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
|
|
783
1049
|
var databasevue_type_template_id_99dc0ab4_render = function render() {
|
|
784
1050
|
var _vm = this,
|
|
785
1051
|
_c = _vm._self._c;
|
|
@@ -888,16 +1154,16 @@ var databasevue_type_template_id_99dc0ab4_render = function render() {
|
|
|
888
1154
|
var databasevue_type_template_id_99dc0ab4_staticRenderFns = [];
|
|
889
1155
|
databasevue_type_template_id_99dc0ab4_render._withStripped = true;
|
|
890
1156
|
|
|
891
|
-
|
|
1157
|
+
;// ./src/components/FilesCard/src/fileSvg/database.vue?vue&type=template&id=99dc0ab4
|
|
892
1158
|
|
|
893
|
-
|
|
1159
|
+
;// ./src/components/FilesCard/src/fileSvg/database.vue
|
|
894
1160
|
|
|
895
1161
|
var database_script = {}
|
|
896
1162
|
|
|
897
1163
|
|
|
898
1164
|
/* normalize component */
|
|
899
|
-
|
|
900
|
-
var database_component =
|
|
1165
|
+
;
|
|
1166
|
+
var database_component = (0,componentNormalizer/* default */.A)(
|
|
901
1167
|
database_script,
|
|
902
1168
|
databasevue_type_template_id_99dc0ab4_render,
|
|
903
1169
|
databasevue_type_template_id_99dc0ab4_staticRenderFns,
|
|
@@ -908,8 +1174,8 @@ var database_component = Object(componentNormalizer["a" /* default */])(
|
|
|
908
1174
|
|
|
909
1175
|
)
|
|
910
1176
|
|
|
911
|
-
/* harmony default export */
|
|
912
|
-
|
|
1177
|
+
/* harmony default export */ const database = (database_component.exports);
|
|
1178
|
+
;// ./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
|
|
913
1179
|
var excelvue_type_template_id_fc2a1874_render = function render() {
|
|
914
1180
|
var _vm = this,
|
|
915
1181
|
_c = _vm._self._c;
|
|
@@ -955,16 +1221,16 @@ var excelvue_type_template_id_fc2a1874_render = function render() {
|
|
|
955
1221
|
var excelvue_type_template_id_fc2a1874_staticRenderFns = [];
|
|
956
1222
|
excelvue_type_template_id_fc2a1874_render._withStripped = true;
|
|
957
1223
|
|
|
958
|
-
|
|
1224
|
+
;// ./src/components/FilesCard/src/fileSvg/excel.vue?vue&type=template&id=fc2a1874
|
|
959
1225
|
|
|
960
|
-
|
|
1226
|
+
;// ./src/components/FilesCard/src/fileSvg/excel.vue
|
|
961
1227
|
|
|
962
1228
|
var excel_script = {}
|
|
963
1229
|
|
|
964
1230
|
|
|
965
1231
|
/* normalize component */
|
|
966
|
-
|
|
967
|
-
var excel_component =
|
|
1232
|
+
;
|
|
1233
|
+
var excel_component = (0,componentNormalizer/* default */.A)(
|
|
968
1234
|
excel_script,
|
|
969
1235
|
excelvue_type_template_id_fc2a1874_render,
|
|
970
1236
|
excelvue_type_template_id_fc2a1874_staticRenderFns,
|
|
@@ -975,8 +1241,8 @@ var excel_component = Object(componentNormalizer["a" /* default */])(
|
|
|
975
1241
|
|
|
976
1242
|
)
|
|
977
1243
|
|
|
978
|
-
/* harmony default export */
|
|
979
|
-
|
|
1244
|
+
/* harmony default export */ const excel = (excel_component.exports);
|
|
1245
|
+
;// ./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
|
|
980
1246
|
var filevue_type_template_id_18809ace_render = function render() {
|
|
981
1247
|
var _vm = this,
|
|
982
1248
|
_c = _vm._self._c;
|
|
@@ -1024,16 +1290,16 @@ var filevue_type_template_id_18809ace_render = function render() {
|
|
|
1024
1290
|
var filevue_type_template_id_18809ace_staticRenderFns = [];
|
|
1025
1291
|
filevue_type_template_id_18809ace_render._withStripped = true;
|
|
1026
1292
|
|
|
1027
|
-
|
|
1293
|
+
;// ./src/components/FilesCard/src/fileSvg/file.vue?vue&type=template&id=18809ace
|
|
1028
1294
|
|
|
1029
|
-
|
|
1295
|
+
;// ./src/components/FilesCard/src/fileSvg/file.vue
|
|
1030
1296
|
|
|
1031
1297
|
var file_script = {}
|
|
1032
1298
|
|
|
1033
1299
|
|
|
1034
1300
|
/* normalize component */
|
|
1035
|
-
|
|
1036
|
-
var file_component =
|
|
1301
|
+
;
|
|
1302
|
+
var file_component = (0,componentNormalizer/* default */.A)(
|
|
1037
1303
|
file_script,
|
|
1038
1304
|
filevue_type_template_id_18809ace_render,
|
|
1039
1305
|
filevue_type_template_id_18809ace_staticRenderFns,
|
|
@@ -1044,8 +1310,8 @@ var file_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1044
1310
|
|
|
1045
1311
|
)
|
|
1046
1312
|
|
|
1047
|
-
/* harmony default export */
|
|
1048
|
-
|
|
1313
|
+
/* harmony default export */ const file = (file_component.exports);
|
|
1314
|
+
;// ./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
|
|
1049
1315
|
var imagevue_type_template_id_4ecdf3a4_render = function render() {
|
|
1050
1316
|
var _vm = this,
|
|
1051
1317
|
_c = _vm._self._c;
|
|
@@ -1093,16 +1359,16 @@ var imagevue_type_template_id_4ecdf3a4_render = function render() {
|
|
|
1093
1359
|
var imagevue_type_template_id_4ecdf3a4_staticRenderFns = [];
|
|
1094
1360
|
imagevue_type_template_id_4ecdf3a4_render._withStripped = true;
|
|
1095
1361
|
|
|
1096
|
-
|
|
1362
|
+
;// ./src/components/FilesCard/src/fileSvg/image.vue?vue&type=template&id=4ecdf3a4
|
|
1097
1363
|
|
|
1098
|
-
|
|
1364
|
+
;// ./src/components/FilesCard/src/fileSvg/image.vue
|
|
1099
1365
|
|
|
1100
1366
|
var image_script = {}
|
|
1101
1367
|
|
|
1102
1368
|
|
|
1103
1369
|
/* normalize component */
|
|
1104
|
-
|
|
1105
|
-
var image_component =
|
|
1370
|
+
;
|
|
1371
|
+
var image_component = (0,componentNormalizer/* default */.A)(
|
|
1106
1372
|
image_script,
|
|
1107
1373
|
imagevue_type_template_id_4ecdf3a4_render,
|
|
1108
1374
|
imagevue_type_template_id_4ecdf3a4_staticRenderFns,
|
|
@@ -1113,8 +1379,8 @@ var image_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1113
1379
|
|
|
1114
1380
|
)
|
|
1115
1381
|
|
|
1116
|
-
/* harmony default export */
|
|
1117
|
-
|
|
1382
|
+
/* harmony default export */ const fileSvg_image = (image_component.exports);
|
|
1383
|
+
;// ./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
|
|
1118
1384
|
var linkvue_type_template_id_e4113ea4_render = function render() {
|
|
1119
1385
|
var _vm = this,
|
|
1120
1386
|
_c = _vm._self._c;
|
|
@@ -1178,16 +1444,16 @@ var linkvue_type_template_id_e4113ea4_render = function render() {
|
|
|
1178
1444
|
var linkvue_type_template_id_e4113ea4_staticRenderFns = [];
|
|
1179
1445
|
linkvue_type_template_id_e4113ea4_render._withStripped = true;
|
|
1180
1446
|
|
|
1181
|
-
|
|
1447
|
+
;// ./src/components/FilesCard/src/fileSvg/link.vue?vue&type=template&id=e4113ea4
|
|
1182
1448
|
|
|
1183
|
-
|
|
1449
|
+
;// ./src/components/FilesCard/src/fileSvg/link.vue
|
|
1184
1450
|
|
|
1185
1451
|
var link_script = {}
|
|
1186
1452
|
|
|
1187
1453
|
|
|
1188
1454
|
/* normalize component */
|
|
1189
|
-
|
|
1190
|
-
var link_component =
|
|
1455
|
+
;
|
|
1456
|
+
var link_component = (0,componentNormalizer/* default */.A)(
|
|
1191
1457
|
link_script,
|
|
1192
1458
|
linkvue_type_template_id_e4113ea4_render,
|
|
1193
1459
|
linkvue_type_template_id_e4113ea4_staticRenderFns,
|
|
@@ -1198,8 +1464,8 @@ var link_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1198
1464
|
|
|
1199
1465
|
)
|
|
1200
1466
|
|
|
1201
|
-
/* harmony default export */
|
|
1202
|
-
|
|
1467
|
+
/* harmony default export */ const fileSvg_link = (link_component.exports);
|
|
1468
|
+
;// ./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
|
|
1203
1469
|
var markvue_type_template_id_46e2c9a8_render = function render() {
|
|
1204
1470
|
var _vm = this,
|
|
1205
1471
|
_c = _vm._self._c;
|
|
@@ -1249,16 +1515,16 @@ var markvue_type_template_id_46e2c9a8_render = function render() {
|
|
|
1249
1515
|
var markvue_type_template_id_46e2c9a8_staticRenderFns = [];
|
|
1250
1516
|
markvue_type_template_id_46e2c9a8_render._withStripped = true;
|
|
1251
1517
|
|
|
1252
|
-
|
|
1518
|
+
;// ./src/components/FilesCard/src/fileSvg/mark.vue?vue&type=template&id=46e2c9a8
|
|
1253
1519
|
|
|
1254
|
-
|
|
1520
|
+
;// ./src/components/FilesCard/src/fileSvg/mark.vue
|
|
1255
1521
|
|
|
1256
1522
|
var mark_script = {}
|
|
1257
1523
|
|
|
1258
1524
|
|
|
1259
1525
|
/* normalize component */
|
|
1260
|
-
|
|
1261
|
-
var mark_component =
|
|
1526
|
+
;
|
|
1527
|
+
var mark_component = (0,componentNormalizer/* default */.A)(
|
|
1262
1528
|
mark_script,
|
|
1263
1529
|
markvue_type_template_id_46e2c9a8_render,
|
|
1264
1530
|
markvue_type_template_id_46e2c9a8_staticRenderFns,
|
|
@@ -1269,8 +1535,8 @@ var mark_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1269
1535
|
|
|
1270
1536
|
)
|
|
1271
1537
|
|
|
1272
|
-
/* harmony default export */
|
|
1273
|
-
|
|
1538
|
+
/* harmony default export */ const mark = (mark_component.exports);
|
|
1539
|
+
;// ./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
|
|
1274
1540
|
var pdfvue_type_template_id_2a5785e0_render = function render() {
|
|
1275
1541
|
var _vm = this,
|
|
1276
1542
|
_c = _vm._self._c;
|
|
@@ -1316,16 +1582,16 @@ var pdfvue_type_template_id_2a5785e0_render = function render() {
|
|
|
1316
1582
|
var pdfvue_type_template_id_2a5785e0_staticRenderFns = [];
|
|
1317
1583
|
pdfvue_type_template_id_2a5785e0_render._withStripped = true;
|
|
1318
1584
|
|
|
1319
|
-
|
|
1585
|
+
;// ./src/components/FilesCard/src/fileSvg/pdf.vue?vue&type=template&id=2a5785e0
|
|
1320
1586
|
|
|
1321
|
-
|
|
1587
|
+
;// ./src/components/FilesCard/src/fileSvg/pdf.vue
|
|
1322
1588
|
|
|
1323
1589
|
var pdf_script = {}
|
|
1324
1590
|
|
|
1325
1591
|
|
|
1326
1592
|
/* normalize component */
|
|
1327
|
-
|
|
1328
|
-
var pdf_component =
|
|
1593
|
+
;
|
|
1594
|
+
var pdf_component = (0,componentNormalizer/* default */.A)(
|
|
1329
1595
|
pdf_script,
|
|
1330
1596
|
pdfvue_type_template_id_2a5785e0_render,
|
|
1331
1597
|
pdfvue_type_template_id_2a5785e0_staticRenderFns,
|
|
@@ -1336,8 +1602,8 @@ var pdf_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1336
1602
|
|
|
1337
1603
|
)
|
|
1338
1604
|
|
|
1339
|
-
/* harmony default export */
|
|
1340
|
-
|
|
1605
|
+
/* harmony default export */ const pdf = (pdf_component.exports);
|
|
1606
|
+
;// ./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
|
|
1341
1607
|
var pptvue_type_template_id_3e8773e9_render = function render() {
|
|
1342
1608
|
var _vm = this,
|
|
1343
1609
|
_c = _vm._self._c;
|
|
@@ -1383,16 +1649,16 @@ var pptvue_type_template_id_3e8773e9_render = function render() {
|
|
|
1383
1649
|
var pptvue_type_template_id_3e8773e9_staticRenderFns = [];
|
|
1384
1650
|
pptvue_type_template_id_3e8773e9_render._withStripped = true;
|
|
1385
1651
|
|
|
1386
|
-
|
|
1652
|
+
;// ./src/components/FilesCard/src/fileSvg/ppt.vue?vue&type=template&id=3e8773e9
|
|
1387
1653
|
|
|
1388
|
-
|
|
1654
|
+
;// ./src/components/FilesCard/src/fileSvg/ppt.vue
|
|
1389
1655
|
|
|
1390
1656
|
var ppt_script = {}
|
|
1391
1657
|
|
|
1392
1658
|
|
|
1393
1659
|
/* normalize component */
|
|
1394
|
-
|
|
1395
|
-
var ppt_component =
|
|
1660
|
+
;
|
|
1661
|
+
var ppt_component = (0,componentNormalizer/* default */.A)(
|
|
1396
1662
|
ppt_script,
|
|
1397
1663
|
pptvue_type_template_id_3e8773e9_render,
|
|
1398
1664
|
pptvue_type_template_id_3e8773e9_staticRenderFns,
|
|
@@ -1403,8 +1669,8 @@ var ppt_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1403
1669
|
|
|
1404
1670
|
)
|
|
1405
1671
|
|
|
1406
|
-
/* harmony default export */
|
|
1407
|
-
|
|
1672
|
+
/* harmony default export */ const ppt = (ppt_component.exports);
|
|
1673
|
+
;// ./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
|
|
1408
1674
|
var threevue_type_template_id_318c7d20_render = function render() {
|
|
1409
1675
|
var _vm = this,
|
|
1410
1676
|
_c = _vm._self._c;
|
|
@@ -1450,16 +1716,16 @@ var threevue_type_template_id_318c7d20_render = function render() {
|
|
|
1450
1716
|
var threevue_type_template_id_318c7d20_staticRenderFns = [];
|
|
1451
1717
|
threevue_type_template_id_318c7d20_render._withStripped = true;
|
|
1452
1718
|
|
|
1453
|
-
|
|
1719
|
+
;// ./src/components/FilesCard/src/fileSvg/three.vue?vue&type=template&id=318c7d20
|
|
1454
1720
|
|
|
1455
|
-
|
|
1721
|
+
;// ./src/components/FilesCard/src/fileSvg/three.vue
|
|
1456
1722
|
|
|
1457
1723
|
var three_script = {}
|
|
1458
1724
|
|
|
1459
1725
|
|
|
1460
1726
|
/* normalize component */
|
|
1461
|
-
|
|
1462
|
-
var three_component =
|
|
1727
|
+
;
|
|
1728
|
+
var three_component = (0,componentNormalizer/* default */.A)(
|
|
1463
1729
|
three_script,
|
|
1464
1730
|
threevue_type_template_id_318c7d20_render,
|
|
1465
1731
|
threevue_type_template_id_318c7d20_staticRenderFns,
|
|
@@ -1470,8 +1736,8 @@ var three_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1470
1736
|
|
|
1471
1737
|
)
|
|
1472
1738
|
|
|
1473
|
-
/* harmony default export */
|
|
1474
|
-
|
|
1739
|
+
/* harmony default export */ const three = (three_component.exports);
|
|
1740
|
+
;// ./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
|
|
1475
1741
|
var txtvue_type_template_id_100a4af8_render = function render() {
|
|
1476
1742
|
var _vm = this,
|
|
1477
1743
|
_c = _vm._self._c;
|
|
@@ -1517,16 +1783,16 @@ var txtvue_type_template_id_100a4af8_render = function render() {
|
|
|
1517
1783
|
var txtvue_type_template_id_100a4af8_staticRenderFns = [];
|
|
1518
1784
|
txtvue_type_template_id_100a4af8_render._withStripped = true;
|
|
1519
1785
|
|
|
1520
|
-
|
|
1786
|
+
;// ./src/components/FilesCard/src/fileSvg/txt.vue?vue&type=template&id=100a4af8
|
|
1521
1787
|
|
|
1522
|
-
|
|
1788
|
+
;// ./src/components/FilesCard/src/fileSvg/txt.vue
|
|
1523
1789
|
|
|
1524
1790
|
var txt_script = {}
|
|
1525
1791
|
|
|
1526
1792
|
|
|
1527
1793
|
/* normalize component */
|
|
1528
|
-
|
|
1529
|
-
var txt_component =
|
|
1794
|
+
;
|
|
1795
|
+
var txt_component = (0,componentNormalizer/* default */.A)(
|
|
1530
1796
|
txt_script,
|
|
1531
1797
|
txtvue_type_template_id_100a4af8_render,
|
|
1532
1798
|
txtvue_type_template_id_100a4af8_staticRenderFns,
|
|
@@ -1537,8 +1803,8 @@ var txt_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1537
1803
|
|
|
1538
1804
|
)
|
|
1539
1805
|
|
|
1540
|
-
/* harmony default export */
|
|
1541
|
-
|
|
1806
|
+
/* harmony default export */ const txt = (txt_component.exports);
|
|
1807
|
+
;// ./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
|
|
1542
1808
|
var unknownvue_type_template_id_54eeafc0_render = function render() {
|
|
1543
1809
|
var _vm = this,
|
|
1544
1810
|
_c = _vm._self._c;
|
|
@@ -1602,16 +1868,16 @@ var unknownvue_type_template_id_54eeafc0_render = function render() {
|
|
|
1602
1868
|
var unknownvue_type_template_id_54eeafc0_staticRenderFns = [];
|
|
1603
1869
|
unknownvue_type_template_id_54eeafc0_render._withStripped = true;
|
|
1604
1870
|
|
|
1605
|
-
|
|
1871
|
+
;// ./src/components/FilesCard/src/fileSvg/unknown.vue?vue&type=template&id=54eeafc0
|
|
1606
1872
|
|
|
1607
|
-
|
|
1873
|
+
;// ./src/components/FilesCard/src/fileSvg/unknown.vue
|
|
1608
1874
|
|
|
1609
1875
|
var unknown_script = {}
|
|
1610
1876
|
|
|
1611
1877
|
|
|
1612
1878
|
/* normalize component */
|
|
1613
|
-
|
|
1614
|
-
var unknown_component =
|
|
1879
|
+
;
|
|
1880
|
+
var unknown_component = (0,componentNormalizer/* default */.A)(
|
|
1615
1881
|
unknown_script,
|
|
1616
1882
|
unknownvue_type_template_id_54eeafc0_render,
|
|
1617
1883
|
unknownvue_type_template_id_54eeafc0_staticRenderFns,
|
|
@@ -1622,8 +1888,8 @@ var unknown_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1622
1888
|
|
|
1623
1889
|
)
|
|
1624
1890
|
|
|
1625
|
-
/* harmony default export */
|
|
1626
|
-
|
|
1891
|
+
/* harmony default export */ const unknown = (unknown_component.exports);
|
|
1892
|
+
;// ./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
|
|
1627
1893
|
var videovue_type_template_id_ab745446_render = function render() {
|
|
1628
1894
|
var _vm = this,
|
|
1629
1895
|
_c = _vm._self._c;
|
|
@@ -1669,16 +1935,16 @@ var videovue_type_template_id_ab745446_render = function render() {
|
|
|
1669
1935
|
var videovue_type_template_id_ab745446_staticRenderFns = [];
|
|
1670
1936
|
videovue_type_template_id_ab745446_render._withStripped = true;
|
|
1671
1937
|
|
|
1672
|
-
|
|
1938
|
+
;// ./src/components/FilesCard/src/fileSvg/video.vue?vue&type=template&id=ab745446
|
|
1673
1939
|
|
|
1674
|
-
|
|
1940
|
+
;// ./src/components/FilesCard/src/fileSvg/video.vue
|
|
1675
1941
|
|
|
1676
1942
|
var video_script = {}
|
|
1677
1943
|
|
|
1678
1944
|
|
|
1679
1945
|
/* normalize component */
|
|
1680
|
-
|
|
1681
|
-
var video_component =
|
|
1946
|
+
;
|
|
1947
|
+
var video_component = (0,componentNormalizer/* default */.A)(
|
|
1682
1948
|
video_script,
|
|
1683
1949
|
videovue_type_template_id_ab745446_render,
|
|
1684
1950
|
videovue_type_template_id_ab745446_staticRenderFns,
|
|
@@ -1689,8 +1955,8 @@ var video_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1689
1955
|
|
|
1690
1956
|
)
|
|
1691
1957
|
|
|
1692
|
-
/* harmony default export */
|
|
1693
|
-
|
|
1958
|
+
/* harmony default export */ const video = (video_component.exports);
|
|
1959
|
+
;// ./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
|
|
1694
1960
|
var wordvue_type_template_id_13329af3_render = function render() {
|
|
1695
1961
|
var _vm = this,
|
|
1696
1962
|
_c = _vm._self._c;
|
|
@@ -1736,16 +2002,16 @@ var wordvue_type_template_id_13329af3_render = function render() {
|
|
|
1736
2002
|
var wordvue_type_template_id_13329af3_staticRenderFns = [];
|
|
1737
2003
|
wordvue_type_template_id_13329af3_render._withStripped = true;
|
|
1738
2004
|
|
|
1739
|
-
|
|
2005
|
+
;// ./src/components/FilesCard/src/fileSvg/word.vue?vue&type=template&id=13329af3
|
|
1740
2006
|
|
|
1741
|
-
|
|
2007
|
+
;// ./src/components/FilesCard/src/fileSvg/word.vue
|
|
1742
2008
|
|
|
1743
2009
|
var word_script = {}
|
|
1744
2010
|
|
|
1745
2011
|
|
|
1746
2012
|
/* normalize component */
|
|
1747
|
-
|
|
1748
|
-
var word_component =
|
|
2013
|
+
;
|
|
2014
|
+
var word_component = (0,componentNormalizer/* default */.A)(
|
|
1749
2015
|
word_script,
|
|
1750
2016
|
wordvue_type_template_id_13329af3_render,
|
|
1751
2017
|
wordvue_type_template_id_13329af3_staticRenderFns,
|
|
@@ -1756,8 +2022,8 @@ var word_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1756
2022
|
|
|
1757
2023
|
)
|
|
1758
2024
|
|
|
1759
|
-
/* harmony default export */
|
|
1760
|
-
|
|
2025
|
+
/* harmony default export */ const word = (word_component.exports);
|
|
2026
|
+
;// ./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
|
|
1761
2027
|
var zipvue_type_template_id_65118298_render = function render() {
|
|
1762
2028
|
var _vm = this,
|
|
1763
2029
|
_c = _vm._self._c;
|
|
@@ -1803,16 +2069,16 @@ var zipvue_type_template_id_65118298_render = function render() {
|
|
|
1803
2069
|
var zipvue_type_template_id_65118298_staticRenderFns = [];
|
|
1804
2070
|
zipvue_type_template_id_65118298_render._withStripped = true;
|
|
1805
2071
|
|
|
1806
|
-
|
|
2072
|
+
;// ./src/components/FilesCard/src/fileSvg/zip.vue?vue&type=template&id=65118298
|
|
1807
2073
|
|
|
1808
|
-
|
|
2074
|
+
;// ./src/components/FilesCard/src/fileSvg/zip.vue
|
|
1809
2075
|
|
|
1810
2076
|
var zip_script = {}
|
|
1811
2077
|
|
|
1812
2078
|
|
|
1813
2079
|
/* normalize component */
|
|
1814
|
-
|
|
1815
|
-
var zip_component =
|
|
2080
|
+
;
|
|
2081
|
+
var zip_component = (0,componentNormalizer/* default */.A)(
|
|
1816
2082
|
zip_script,
|
|
1817
2083
|
zipvue_type_template_id_65118298_render,
|
|
1818
2084
|
zipvue_type_template_id_65118298_staticRenderFns,
|
|
@@ -1823,8 +2089,8 @@ var zip_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1823
2089
|
|
|
1824
2090
|
)
|
|
1825
2091
|
|
|
1826
|
-
/* harmony default export */
|
|
1827
|
-
|
|
2092
|
+
/* harmony default export */ const zip = (zip_component.exports);
|
|
2093
|
+
;// ./src/components/FilesCard/src/fileSvg/index.js
|
|
1828
2094
|
|
|
1829
2095
|
|
|
1830
2096
|
|
|
@@ -1841,7 +2107,7 @@ var zip_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1841
2107
|
|
|
1842
2108
|
|
|
1843
2109
|
|
|
1844
|
-
/* harmony default export */
|
|
2110
|
+
/* harmony default export */ const fileSvg = ({
|
|
1845
2111
|
// 文档类
|
|
1846
2112
|
word: word,
|
|
1847
2113
|
excel: excel,
|
|
@@ -1870,7 +2136,7 @@ var zip_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1870
2136
|
// 未知文件类
|
|
1871
2137
|
unknown: unknown
|
|
1872
2138
|
});
|
|
1873
|
-
|
|
2139
|
+
;// ./src/components/FilesCard/src/options.js
|
|
1874
2140
|
const colorMap = {
|
|
1875
2141
|
word: '#0078D4',
|
|
1876
2142
|
excel: '#00C851',
|
|
@@ -1889,11 +2155,11 @@ const colorMap = {
|
|
|
1889
2155
|
file: '#FFC757',
|
|
1890
2156
|
unknown: '#6E9DA4'
|
|
1891
2157
|
};
|
|
1892
|
-
|
|
2158
|
+
;// ./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
|
|
1893
2159
|
|
|
1894
2160
|
|
|
1895
2161
|
|
|
1896
|
-
/* harmony default export */
|
|
2162
|
+
/* harmony default export */ const mainvue_type_script_lang_js = ({
|
|
1897
2163
|
name: 'ElXFilesCard',
|
|
1898
2164
|
props: {
|
|
1899
2165
|
uid: {
|
|
@@ -2061,6 +2327,12 @@ const colorMap = {
|
|
|
2061
2327
|
}
|
|
2062
2328
|
},
|
|
2063
2329
|
watch: {
|
|
2330
|
+
name: {
|
|
2331
|
+
handler() {
|
|
2332
|
+
this.parseFileName();
|
|
2333
|
+
},
|
|
2334
|
+
immediate: true
|
|
2335
|
+
},
|
|
2064
2336
|
imgFile: {
|
|
2065
2337
|
handler: async function (newFile) {
|
|
2066
2338
|
if (newFile) {
|
|
@@ -2081,9 +2353,7 @@ const colorMap = {
|
|
|
2081
2353
|
immediate: true
|
|
2082
2354
|
}
|
|
2083
2355
|
},
|
|
2084
|
-
mounted() {
|
|
2085
|
-
this.parseFileName();
|
|
2086
|
-
},
|
|
2356
|
+
mounted() {},
|
|
2087
2357
|
methods: {
|
|
2088
2358
|
handleDelete() {
|
|
2089
2359
|
this.$emit('delete', {
|
|
@@ -2091,7 +2361,8 @@ const colorMap = {
|
|
|
2091
2361
|
});
|
|
2092
2362
|
},
|
|
2093
2363
|
handlePreviewAction(type) {
|
|
2094
|
-
if (this.imgPreview
|
|
2364
|
+
if (!this.imgPreview) return;
|
|
2365
|
+
if (this.$refs.imgRef && this._previewImgUrl && type === 'mask') {
|
|
2095
2366
|
this.$refs.imgRef.clickHandler();
|
|
2096
2367
|
}
|
|
2097
2368
|
if (type === 'self') {
|
|
@@ -2117,16 +2388,14 @@ const colorMap = {
|
|
|
2117
2388
|
}
|
|
2118
2389
|
}
|
|
2119
2390
|
});
|
|
2120
|
-
|
|
2121
|
-
/* harmony default export */
|
|
2391
|
+
;// ./src/components/FilesCard/src/main.vue?vue&type=script&lang=js
|
|
2392
|
+
/* harmony default export */ const src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
2122
2393
|
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
2123
|
-
var injectStylesIntoStyleTag = __webpack_require__(
|
|
2394
|
+
var injectStylesIntoStyleTag = __webpack_require__(5072);
|
|
2124
2395
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
// 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
|
|
2396
|
+
// 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
|
|
2397
|
+
var mainvue_type_style_index_0_id_eaf958fa_prod_lang_scss_scoped_true = __webpack_require__(4444);
|
|
2398
|
+
;// ./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
|
|
2130
2399
|
|
|
2131
2400
|
|
|
2132
2401
|
|
|
@@ -2135,319 +2404,42 @@ var options = {};
|
|
|
2135
2404
|
options.insert = "head";
|
|
2136
2405
|
options.singleton = false;
|
|
2137
2406
|
|
|
2138
|
-
var update = injectStylesIntoStyleTag_default()(
|
|
2139
|
-
|
|
2407
|
+
var update = injectStylesIntoStyleTag_default()(mainvue_type_style_index_0_id_eaf958fa_prod_lang_scss_scoped_true/* default */.A, options);
|
|
2140
2408
|
|
|
2141
2409
|
|
|
2142
|
-
/* 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 || {});
|
|
2143
|
-
// CONCATENATED MODULE: ./src/components/FilesCard/src/main.vue?vue&type=style&index=0&id=28b3b638&prod&lang=scss&scoped=true
|
|
2144
2410
|
|
|
2145
|
-
|
|
2411
|
+
/* 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 || {});
|
|
2412
|
+
;// ./src/components/FilesCard/src/main.vue?vue&type=style&index=0&id=eaf958fa&prod&lang=scss&scoped=true
|
|
2146
2413
|
|
|
2414
|
+
;// ./src/components/FilesCard/src/main.vue
|
|
2147
2415
|
|
|
2148
2416
|
|
|
2149
2417
|
|
|
2418
|
+
;
|
|
2150
2419
|
|
|
2151
2420
|
|
|
2152
2421
|
/* normalize component */
|
|
2153
2422
|
|
|
2154
|
-
var main_component =
|
|
2423
|
+
var main_component = (0,componentNormalizer/* default */.A)(
|
|
2155
2424
|
src_mainvue_type_script_lang_js,
|
|
2156
2425
|
render,
|
|
2157
2426
|
staticRenderFns,
|
|
2158
2427
|
false,
|
|
2159
2428
|
null,
|
|
2160
|
-
"
|
|
2429
|
+
"eaf958fa",
|
|
2161
2430
|
null
|
|
2162
2431
|
|
|
2163
2432
|
)
|
|
2164
2433
|
|
|
2165
|
-
/* harmony default export */
|
|
2166
|
-
|
|
2434
|
+
/* harmony default export */ const main = (main_component.exports);
|
|
2435
|
+
;// ./src/components/FilesCard/index.js
|
|
2167
2436
|
|
|
2168
2437
|
|
|
2169
2438
|
/* istanbul ignore next */
|
|
2170
2439
|
main.install = function (Vue) {
|
|
2171
2440
|
Vue.component(main.name, main);
|
|
2172
2441
|
};
|
|
2173
|
-
/* harmony default export */
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
/***/ 3:
|
|
2178
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2179
|
-
|
|
2180
|
-
"use strict";
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
var isOldIE = function isOldIE() {
|
|
2184
|
-
var memo;
|
|
2185
|
-
return function memorize() {
|
|
2186
|
-
if (typeof memo === 'undefined') {
|
|
2187
|
-
// Test for IE <= 9 as proposed by Browserhacks
|
|
2188
|
-
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
|
2189
|
-
// Tests for existence of standard globals is to allow style-loader
|
|
2190
|
-
// to operate correctly into non-standard environments
|
|
2191
|
-
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
|
2192
|
-
memo = Boolean(window && document && document.all && !window.atob);
|
|
2193
|
-
}
|
|
2194
|
-
|
|
2195
|
-
return memo;
|
|
2196
|
-
};
|
|
2197
|
-
}();
|
|
2198
|
-
|
|
2199
|
-
var getTarget = function getTarget() {
|
|
2200
|
-
var memo = {};
|
|
2201
|
-
return function memorize(target) {
|
|
2202
|
-
if (typeof memo[target] === 'undefined') {
|
|
2203
|
-
var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
|
|
2204
|
-
|
|
2205
|
-
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
|
2206
|
-
try {
|
|
2207
|
-
// This will throw an exception if access to iframe is blocked
|
|
2208
|
-
// due to cross-origin restrictions
|
|
2209
|
-
styleTarget = styleTarget.contentDocument.head;
|
|
2210
|
-
} catch (e) {
|
|
2211
|
-
// istanbul ignore next
|
|
2212
|
-
styleTarget = null;
|
|
2213
|
-
}
|
|
2214
|
-
}
|
|
2215
|
-
|
|
2216
|
-
memo[target] = styleTarget;
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
|
-
return memo[target];
|
|
2220
|
-
};
|
|
2221
|
-
}();
|
|
2222
|
-
|
|
2223
|
-
var stylesInDom = [];
|
|
2224
|
-
|
|
2225
|
-
function getIndexByIdentifier(identifier) {
|
|
2226
|
-
var result = -1;
|
|
2227
|
-
|
|
2228
|
-
for (var i = 0; i < stylesInDom.length; i++) {
|
|
2229
|
-
if (stylesInDom[i].identifier === identifier) {
|
|
2230
|
-
result = i;
|
|
2231
|
-
break;
|
|
2232
|
-
}
|
|
2233
|
-
}
|
|
2234
|
-
|
|
2235
|
-
return result;
|
|
2236
|
-
}
|
|
2237
|
-
|
|
2238
|
-
function modulesToDom(list, options) {
|
|
2239
|
-
var idCountMap = {};
|
|
2240
|
-
var identifiers = [];
|
|
2241
|
-
|
|
2242
|
-
for (var i = 0; i < list.length; i++) {
|
|
2243
|
-
var item = list[i];
|
|
2244
|
-
var id = options.base ? item[0] + options.base : item[0];
|
|
2245
|
-
var count = idCountMap[id] || 0;
|
|
2246
|
-
var identifier = "".concat(id, " ").concat(count);
|
|
2247
|
-
idCountMap[id] = count + 1;
|
|
2248
|
-
var index = getIndexByIdentifier(identifier);
|
|
2249
|
-
var obj = {
|
|
2250
|
-
css: item[1],
|
|
2251
|
-
media: item[2],
|
|
2252
|
-
sourceMap: item[3]
|
|
2253
|
-
};
|
|
2254
|
-
|
|
2255
|
-
if (index !== -1) {
|
|
2256
|
-
stylesInDom[index].references++;
|
|
2257
|
-
stylesInDom[index].updater(obj);
|
|
2258
|
-
} else {
|
|
2259
|
-
stylesInDom.push({
|
|
2260
|
-
identifier: identifier,
|
|
2261
|
-
updater: addStyle(obj, options),
|
|
2262
|
-
references: 1
|
|
2263
|
-
});
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2266
|
-
identifiers.push(identifier);
|
|
2267
|
-
}
|
|
2268
|
-
|
|
2269
|
-
return identifiers;
|
|
2270
|
-
}
|
|
2271
|
-
|
|
2272
|
-
function insertStyleElement(options) {
|
|
2273
|
-
var style = document.createElement('style');
|
|
2274
|
-
var attributes = options.attributes || {};
|
|
2275
|
-
|
|
2276
|
-
if (typeof attributes.nonce === 'undefined') {
|
|
2277
|
-
var nonce = true ? __webpack_require__.nc : undefined;
|
|
2278
|
-
|
|
2279
|
-
if (nonce) {
|
|
2280
|
-
attributes.nonce = nonce;
|
|
2281
|
-
}
|
|
2282
|
-
}
|
|
2283
|
-
|
|
2284
|
-
Object.keys(attributes).forEach(function (key) {
|
|
2285
|
-
style.setAttribute(key, attributes[key]);
|
|
2286
|
-
});
|
|
2287
|
-
|
|
2288
|
-
if (typeof options.insert === 'function') {
|
|
2289
|
-
options.insert(style);
|
|
2290
|
-
} else {
|
|
2291
|
-
var target = getTarget(options.insert || 'head');
|
|
2292
|
-
|
|
2293
|
-
if (!target) {
|
|
2294
|
-
throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
2295
|
-
}
|
|
2296
|
-
|
|
2297
|
-
target.appendChild(style);
|
|
2298
|
-
}
|
|
2299
|
-
|
|
2300
|
-
return style;
|
|
2301
|
-
}
|
|
2302
|
-
|
|
2303
|
-
function removeStyleElement(style) {
|
|
2304
|
-
// istanbul ignore if
|
|
2305
|
-
if (style.parentNode === null) {
|
|
2306
|
-
return false;
|
|
2307
|
-
}
|
|
2308
|
-
|
|
2309
|
-
style.parentNode.removeChild(style);
|
|
2310
|
-
}
|
|
2311
|
-
/* istanbul ignore next */
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
var replaceText = function replaceText() {
|
|
2315
|
-
var textStore = [];
|
|
2316
|
-
return function replace(index, replacement) {
|
|
2317
|
-
textStore[index] = replacement;
|
|
2318
|
-
return textStore.filter(Boolean).join('\n');
|
|
2319
|
-
};
|
|
2320
|
-
}();
|
|
2321
|
-
|
|
2322
|
-
function applyToSingletonTag(style, index, remove, obj) {
|
|
2323
|
-
var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
|
|
2324
|
-
|
|
2325
|
-
/* istanbul ignore if */
|
|
2326
|
-
|
|
2327
|
-
if (style.styleSheet) {
|
|
2328
|
-
style.styleSheet.cssText = replaceText(index, css);
|
|
2329
|
-
} else {
|
|
2330
|
-
var cssNode = document.createTextNode(css);
|
|
2331
|
-
var childNodes = style.childNodes;
|
|
2332
|
-
|
|
2333
|
-
if (childNodes[index]) {
|
|
2334
|
-
style.removeChild(childNodes[index]);
|
|
2335
|
-
}
|
|
2336
|
-
|
|
2337
|
-
if (childNodes.length) {
|
|
2338
|
-
style.insertBefore(cssNode, childNodes[index]);
|
|
2339
|
-
} else {
|
|
2340
|
-
style.appendChild(cssNode);
|
|
2341
|
-
}
|
|
2342
|
-
}
|
|
2343
|
-
}
|
|
2344
|
-
|
|
2345
|
-
function applyToTag(style, options, obj) {
|
|
2346
|
-
var css = obj.css;
|
|
2347
|
-
var media = obj.media;
|
|
2348
|
-
var sourceMap = obj.sourceMap;
|
|
2349
|
-
|
|
2350
|
-
if (media) {
|
|
2351
|
-
style.setAttribute('media', media);
|
|
2352
|
-
} else {
|
|
2353
|
-
style.removeAttribute('media');
|
|
2354
|
-
}
|
|
2355
|
-
|
|
2356
|
-
if (sourceMap && typeof btoa !== 'undefined') {
|
|
2357
|
-
css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
|
|
2358
|
-
} // For old IE
|
|
2359
|
-
|
|
2360
|
-
/* istanbul ignore if */
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
if (style.styleSheet) {
|
|
2364
|
-
style.styleSheet.cssText = css;
|
|
2365
|
-
} else {
|
|
2366
|
-
while (style.firstChild) {
|
|
2367
|
-
style.removeChild(style.firstChild);
|
|
2368
|
-
}
|
|
2369
|
-
|
|
2370
|
-
style.appendChild(document.createTextNode(css));
|
|
2371
|
-
}
|
|
2372
|
-
}
|
|
2373
|
-
|
|
2374
|
-
var singleton = null;
|
|
2375
|
-
var singletonCounter = 0;
|
|
2376
|
-
|
|
2377
|
-
function addStyle(obj, options) {
|
|
2378
|
-
var style;
|
|
2379
|
-
var update;
|
|
2380
|
-
var remove;
|
|
2381
|
-
|
|
2382
|
-
if (options.singleton) {
|
|
2383
|
-
var styleIndex = singletonCounter++;
|
|
2384
|
-
style = singleton || (singleton = insertStyleElement(options));
|
|
2385
|
-
update = applyToSingletonTag.bind(null, style, styleIndex, false);
|
|
2386
|
-
remove = applyToSingletonTag.bind(null, style, styleIndex, true);
|
|
2387
|
-
} else {
|
|
2388
|
-
style = insertStyleElement(options);
|
|
2389
|
-
update = applyToTag.bind(null, style, options);
|
|
2390
|
-
|
|
2391
|
-
remove = function remove() {
|
|
2392
|
-
removeStyleElement(style);
|
|
2393
|
-
};
|
|
2394
|
-
}
|
|
2395
|
-
|
|
2396
|
-
update(obj);
|
|
2397
|
-
return function updateStyle(newObj) {
|
|
2398
|
-
if (newObj) {
|
|
2399
|
-
if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
|
|
2400
|
-
return;
|
|
2401
|
-
}
|
|
2402
|
-
|
|
2403
|
-
update(obj = newObj);
|
|
2404
|
-
} else {
|
|
2405
|
-
remove();
|
|
2406
|
-
}
|
|
2407
|
-
};
|
|
2408
|
-
}
|
|
2409
|
-
|
|
2410
|
-
module.exports = function (list, options) {
|
|
2411
|
-
options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
|
2412
|
-
// tags it will allow on a page
|
|
2413
|
-
|
|
2414
|
-
if (!options.singleton && typeof options.singleton !== 'boolean') {
|
|
2415
|
-
options.singleton = isOldIE();
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
|
-
list = list || [];
|
|
2419
|
-
var lastIdentifiers = modulesToDom(list, options);
|
|
2420
|
-
return function update(newList) {
|
|
2421
|
-
newList = newList || [];
|
|
2422
|
-
|
|
2423
|
-
if (Object.prototype.toString.call(newList) !== '[object Array]') {
|
|
2424
|
-
return;
|
|
2425
|
-
}
|
|
2426
|
-
|
|
2427
|
-
for (var i = 0; i < lastIdentifiers.length; i++) {
|
|
2428
|
-
var identifier = lastIdentifiers[i];
|
|
2429
|
-
var index = getIndexByIdentifier(identifier);
|
|
2430
|
-
stylesInDom[index].references--;
|
|
2431
|
-
}
|
|
2432
|
-
|
|
2433
|
-
var newLastIdentifiers = modulesToDom(newList, options);
|
|
2434
|
-
|
|
2435
|
-
for (var _i = 0; _i < lastIdentifiers.length; _i++) {
|
|
2436
|
-
var _identifier = lastIdentifiers[_i];
|
|
2437
|
-
|
|
2438
|
-
var _index = getIndexByIdentifier(_identifier);
|
|
2439
|
-
|
|
2440
|
-
if (stylesInDom[_index].references === 0) {
|
|
2441
|
-
stylesInDom[_index].updater();
|
|
2442
|
-
|
|
2443
|
-
stylesInDom.splice(_index, 1);
|
|
2444
|
-
}
|
|
2445
|
-
}
|
|
2446
|
-
|
|
2447
|
-
lastIdentifiers = newLastIdentifiers;
|
|
2448
|
-
};
|
|
2449
|
-
};
|
|
2450
|
-
|
|
2451
|
-
/***/ })
|
|
2452
|
-
|
|
2453
|
-
/******/ });
|
|
2442
|
+
/* harmony default export */ const FilesCard = (main);
|
|
2443
|
+
module.exports = __webpack_exports__;
|
|
2444
|
+
/******/ })()
|
|
2445
|
+
;
|