@web-utils/component 1.2.5 → 1.2.7
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 +27 -27
- package/dist/chunks/163eed3b.js +16 -1
- package/dist/chunks/2bd4e340.js +184 -0
- package/dist/chunks/6499de3a.js +30 -1
- package/dist/chunks/7af3ceb1.js +75 -0
- package/dist/chunks/86bcadec.js +24 -0
- package/dist/chunks/8bbde9bf.js +81 -1
- package/dist/chunks/90bd3d52.js +26 -1
- package/dist/chunks/92404ceb.js +126 -0
- package/dist/chunks/a73fe8ee.js +11 -0
- package/dist/chunks/df803484.js +60 -0
- package/dist/components/address-input/index.js +113 -1
- package/dist/components/aside-menu/index.js +58 -1
- package/dist/components/awesome-button/index.js +82 -1
- package/dist/components/capsule-tab/index.js +52 -1
- package/dist/components/chunk-file-uploader/index.js +119 -1
- package/dist/components/chunk-file-uploader-button/index.js +60 -1
- package/dist/components/chunk-file-uploader-drop/index.js +65 -1
- package/dist/components/chunk-file-uploader-file/index.js +311 -1
- package/dist/components/chunk-file-uploader-files/index.js +49 -1
- package/dist/components/chunk-file-uploader-list/index.js +50 -1
- package/dist/components/chunk-file-uploader-un-support/index.js +51 -1
- package/dist/components/code-mirror-editor/index.js +310 -6
- package/dist/components/color-picker/index.js +110 -1
- package/dist/components/confirm-button/index.js +57 -1
- package/dist/components/confirmable/index.js +28 -1
- package/dist/components/context-menu/index.js +236 -1
- package/dist/components/custom-scrollbar/index.js +150 -1
- package/dist/components/data-table-picker/index.js +137 -1
- package/dist/components/dynamic-table/index.js +195 -1
- package/dist/components/e-charts/index.js +229 -1
- package/dist/components/editable-progress/index.js +141 -1
- package/dist/components/editable-tree/index.js +789 -1
- package/dist/components/egd-collapse/index.js +79 -1
- package/dist/components/egd-collapse-item/index.js +132 -1
- package/dist/components/element-dialog/index.js +242 -1
- package/dist/components/empty-view/index.js +69 -1
- package/dist/components/error-view/index.js +61 -1
- package/dist/components/flex-column/index.js +50 -1
- package/dist/components/flex-item/index.js +66 -1
- package/dist/components/flex-row/index.js +50 -1
- package/dist/components/flex-scroller/index.js +47 -1
- package/dist/components/form-button/index.js +80 -1
- package/dist/components/form-cascader/index.js +151 -1
- package/dist/components/form-checkbox-group/index.js +192 -1
- package/dist/components/form-date-picker/index.js +182 -1
- package/dist/components/form-holder/index.js +90 -1
- package/dist/components/form-input/index.js +106 -1
- package/dist/components/form-input-email/index.js +97 -1
- package/dist/components/form-input-id-card/index.js +104 -1
- package/dist/components/form-input-number/index.js +123 -1
- package/dist/components/form-input-phone-number/index.js +98 -1
- package/dist/components/form-input-time/index.js +124 -1
- package/dist/components/form-item/index.js +120 -1
- package/dist/components/form-item-config-provider/index.js +63 -1
- package/dist/components/form-item-group/index.js +169 -1
- package/dist/components/form-radio-group/index.js +170 -1
- package/dist/components/form-select/index.js +154 -1
- package/dist/components/form-switch/index.js +97 -1
- package/dist/components/form-textarea/index.js +102 -1
- package/dist/components/form-view/index.js +343 -1
- package/dist/components/guide-steps/index.js +94 -1
- package/dist/components/icon-card/index.js +62 -1
- package/dist/components/iframe-window/index.js +99 -1
- package/dist/components/input-number/index.js +274 -1
- package/dist/components/input-number-range/index.js +110 -1
- package/dist/components/j-s-x-component/index.js +16 -1
- package/dist/components/keep-view-alive/index.js +119 -1
- package/dist/components/loading-view/index.js +61 -1
- package/dist/components/nav-bar/index.js +52 -1
- package/dist/components/not-implement/index.js +35 -1
- package/dist/components/page/index.js +40 -1
- package/dist/components/page-header/index.js +56 -1
- package/dist/components/page-index/index.js +151 -1
- package/dist/components/page-index-top/index.js +119 -1
- package/dist/components/page-skeleton/index.js +56 -1
- package/dist/components/page-skeleton-new/index.js +98 -1
- package/dist/components/pageable-table/index.js +429 -1
- package/dist/components/pageable-view/index.js +328 -2
- package/dist/components/photo-swipe/index.js +187 -1
- package/dist/components/resize-observer/index.js +62 -1
- package/dist/components/search-popover/index.js +391 -2
- package/dist/components/sign-panel/index.js +242 -1
- package/dist/components/split-pane/index.js +209 -1
- package/dist/components/stateful/index.js +84 -1
- package/dist/components/static-pageable-table/index.js +92 -1
- package/dist/components/swiper/index.js +158 -1
- package/dist/components/tab/index.js +145 -1
- package/dist/components/tab-item/index.js +73 -1
- package/dist/components/table-column/index.js +89 -1
- package/dist/components/table-view/index.js +363 -1
- package/dist/components/tag-render/index.js +97 -1
- package/dist/components/tinymce-editor/index.js +173 -1
- package/dist/components/tinymce-wrapper/index.js +618 -1
- package/dist/components/toolbar/index.js +217 -1
- package/dist/components/toolbar-button/index.js +90 -1
- package/dist/components/trigger/index.js +71 -1
- package/dist/components/vue-tags-input/index.js +439 -1
- package/dist/components/watermark/index.js +63 -1
- package/dist/components/x-dialog/index.js +173 -1
- package/dist/index.css +2102 -1
- package/dist/index.es.js +3097 -2347
- package/package.json +29 -29
- package/web-types.json +22 -55
- package/dist/chunks/23bd3525.js +0 -1
- package/dist/chunks/65f4f4f2.js +0 -1
- package/dist/chunks/8473fc69.js +0 -1
- package/dist/chunks/a125d16c.js +0 -1
- package/dist/chunks/addb6ed5.js +0 -1
- package/dist/chunks/f15477c7.js +0 -1
- package/dist/components/el-color-picker-dropdown/index.js +0 -1
|
@@ -1 +1,311 @@
|
|
|
1
|
-
import n from"simple-uploader.js";
|
|
1
|
+
import n from "simple-uploader.js";
|
|
2
|
+
import { s as p } from "../../chunks/90bd3d52.js";
|
|
3
|
+
import { n as f } from "../../chunks/6499de3a.js";
|
|
4
|
+
const o = ["fileProgress", "fileSuccess", "fileComplete", "fileError"];
|
|
5
|
+
var u = function() {
|
|
6
|
+
var e = this, i = e.$createElement, s = e._self._c || i;
|
|
7
|
+
return s("div", {
|
|
8
|
+
staticClass: "chunk-file-uploader-file",
|
|
9
|
+
attrs: {
|
|
10
|
+
status: e.status
|
|
11
|
+
}
|
|
12
|
+
}, [e._t("default", function() {
|
|
13
|
+
return [s("div", {
|
|
14
|
+
staticClass: "chunk-file-uploader-file-info"
|
|
15
|
+
}, [s("div", {
|
|
16
|
+
staticClass: "chunk-file-uploader-file-name",
|
|
17
|
+
attrs: {
|
|
18
|
+
title: e.file.name
|
|
19
|
+
}
|
|
20
|
+
}, [s("i", {
|
|
21
|
+
staticClass: "chunk-file-uploader-file-icon",
|
|
22
|
+
attrs: {
|
|
23
|
+
icon: e.fileCategory
|
|
24
|
+
}
|
|
25
|
+
}), e._v(e._s(e.file.name) + " ")]), s("div", {
|
|
26
|
+
staticClass: "chunk-file-uploader-file-size"
|
|
27
|
+
}, [e._v(" " + e._s(e.formatedSize) + " ")]), s("div", {
|
|
28
|
+
staticClass: "chunk-file-uploader-file-status"
|
|
29
|
+
}, [s("span", {
|
|
30
|
+
directives: [{
|
|
31
|
+
name: "show",
|
|
32
|
+
rawName: "v-show",
|
|
33
|
+
value: !["uploading", "md5"].includes(e.status),
|
|
34
|
+
expression: "!['uploading', 'md5'].includes(status)"
|
|
35
|
+
}]
|
|
36
|
+
}, [e._v(e._s(e.statusText))]), s("span", {
|
|
37
|
+
directives: [{
|
|
38
|
+
name: "show",
|
|
39
|
+
rawName: "v-show",
|
|
40
|
+
value: e.status === "md5",
|
|
41
|
+
expression: "status === 'md5'"
|
|
42
|
+
}]
|
|
43
|
+
}, [e._v(e._s(e.file.md5Progress))]), s("span", {
|
|
44
|
+
directives: [{
|
|
45
|
+
name: "show",
|
|
46
|
+
rawName: "v-show",
|
|
47
|
+
value: e.status === "uploading",
|
|
48
|
+
expression: "status === 'uploading'"
|
|
49
|
+
}],
|
|
50
|
+
staticStyle: {
|
|
51
|
+
"padding-left": "4px"
|
|
52
|
+
}
|
|
53
|
+
}, [s("span", [e._v(e._s(e.progressStyle.progress))]), e._v(" | "), s("em", [e._v(e._s(e.formatedAverageSpeed))]), e._v(" | "), s("i", [e._v(e._s(e.formatedTimeRemaining))])])]), s("div", {
|
|
54
|
+
staticClass: "chunk-file-uploader-file-actions"
|
|
55
|
+
}, [s("span", {
|
|
56
|
+
staticClass: "chunk-file-uploader-file-pause",
|
|
57
|
+
on: {
|
|
58
|
+
click: e.pause
|
|
59
|
+
}
|
|
60
|
+
}), s("span", {
|
|
61
|
+
staticClass: "chunk-file-uploader-file-resume",
|
|
62
|
+
on: {
|
|
63
|
+
click: e.resume
|
|
64
|
+
}
|
|
65
|
+
}, [e._v("\uFE0F")]), s("span", {
|
|
66
|
+
staticClass: "chunk-file-uploader-file-retry",
|
|
67
|
+
on: {
|
|
68
|
+
click: e.retry
|
|
69
|
+
}
|
|
70
|
+
}), s("span", {
|
|
71
|
+
staticClass: "chunk-file-uploader-file-remove",
|
|
72
|
+
on: {
|
|
73
|
+
click: e.remove
|
|
74
|
+
}
|
|
75
|
+
})])])];
|
|
76
|
+
}, {
|
|
77
|
+
file: e.file,
|
|
78
|
+
list: e.list,
|
|
79
|
+
status: e.status,
|
|
80
|
+
paused: e.paused,
|
|
81
|
+
error: e.error,
|
|
82
|
+
response: e.response,
|
|
83
|
+
averageSpeed: e.averageSpeed,
|
|
84
|
+
formatedAverageSpeed: e.formatedAverageSpeed,
|
|
85
|
+
currentSpeed: e.currentSpeed,
|
|
86
|
+
isComplete: e.isComplete,
|
|
87
|
+
isUploading: e.isUploading,
|
|
88
|
+
size: e.size,
|
|
89
|
+
formatedSize: e.formatedSize,
|
|
90
|
+
uploadedSize: e.uploadedSize,
|
|
91
|
+
progress: e.progress,
|
|
92
|
+
progressStyle: e.progressStyle,
|
|
93
|
+
progressingClass: e.progressingClass,
|
|
94
|
+
timeRemaining: e.timeRemaining,
|
|
95
|
+
formatedTimeRemaining: e.formatedTimeRemaining,
|
|
96
|
+
type: e.type,
|
|
97
|
+
extension: e.extension,
|
|
98
|
+
fileCategory: e.fileCategory
|
|
99
|
+
})], 2);
|
|
100
|
+
}, d = [];
|
|
101
|
+
const c = {
|
|
102
|
+
name: "ChunkFileUploaderFile",
|
|
103
|
+
props: {
|
|
104
|
+
file: {
|
|
105
|
+
type: Object,
|
|
106
|
+
default() {
|
|
107
|
+
return {};
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
list: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: !1
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
data() {
|
|
116
|
+
return {
|
|
117
|
+
response: null,
|
|
118
|
+
paused: !1,
|
|
119
|
+
error: !1,
|
|
120
|
+
averageSpeed: 0,
|
|
121
|
+
currentSpeed: 0,
|
|
122
|
+
isComplete: !1,
|
|
123
|
+
isUploading: !1,
|
|
124
|
+
size: 0,
|
|
125
|
+
formatedSize: "",
|
|
126
|
+
uploadedSize: 0,
|
|
127
|
+
progress: 0,
|
|
128
|
+
timeRemaining: 0,
|
|
129
|
+
type: "",
|
|
130
|
+
extension: "",
|
|
131
|
+
progressingClass: ""
|
|
132
|
+
};
|
|
133
|
+
},
|
|
134
|
+
computed: {
|
|
135
|
+
fileCategory() {
|
|
136
|
+
const e = this.extension;
|
|
137
|
+
let s = this.file.isFolder ? "folder" : "unknown";
|
|
138
|
+
const t = this.file.uploader.opts.categoryMap || {
|
|
139
|
+
image: ["gif", "jpg", "jpeg", "png", "bmp", "webp"],
|
|
140
|
+
video: ["mp4", "m3u8", "rmvb", "avi", "swf", "3gp", "mkv", "flv"],
|
|
141
|
+
audio: ["mp3", "wav", "wma", "ogg", "aac", "flac"],
|
|
142
|
+
document: [
|
|
143
|
+
"doc",
|
|
144
|
+
"txt",
|
|
145
|
+
"docx",
|
|
146
|
+
"pages",
|
|
147
|
+
"epub",
|
|
148
|
+
"pdf",
|
|
149
|
+
"numbers",
|
|
150
|
+
"csv",
|
|
151
|
+
"xls",
|
|
152
|
+
"xlsx",
|
|
153
|
+
"keynote",
|
|
154
|
+
"ppt",
|
|
155
|
+
"pptx"
|
|
156
|
+
]
|
|
157
|
+
};
|
|
158
|
+
return Object.keys(t).forEach((a) => {
|
|
159
|
+
t[a].indexOf(e) > -1 && (s = a);
|
|
160
|
+
}), s;
|
|
161
|
+
},
|
|
162
|
+
progressStyle() {
|
|
163
|
+
const e = Math.floor(this.progress * 100), i = `translateX(${Math.floor(e - 100)}%)`;
|
|
164
|
+
return {
|
|
165
|
+
progress: `${e}%`,
|
|
166
|
+
webkitTransform: i,
|
|
167
|
+
mozTransform: i,
|
|
168
|
+
msTransform: i,
|
|
169
|
+
transform: i
|
|
170
|
+
};
|
|
171
|
+
},
|
|
172
|
+
formatedAverageSpeed() {
|
|
173
|
+
return `${n.utils.formatSize(this.averageSpeed)} / s`;
|
|
174
|
+
},
|
|
175
|
+
status() {
|
|
176
|
+
const { isUploading: e, isComplete: i, isError: s, paused: r } = this, { md5Computing: t } = this.file;
|
|
177
|
+
return t ? "md5" : i ? "success" : s ? "error" : e ? "uploading" : r ? "paused" : "waiting";
|
|
178
|
+
},
|
|
179
|
+
statusText() {
|
|
180
|
+
const e = this.status, i = this.file.uploader.fileStatusText;
|
|
181
|
+
let s = e;
|
|
182
|
+
return typeof i == "function" ? s = i(e, this.response) : s = i[e], s || "";
|
|
183
|
+
},
|
|
184
|
+
formatedTimeRemaining() {
|
|
185
|
+
const e = this.timeRemaining, i = this.file;
|
|
186
|
+
if (e === Number.POSITIVE_INFINITY || e === 0)
|
|
187
|
+
return "";
|
|
188
|
+
let s = p(e);
|
|
189
|
+
const r = i.uploader.opts.parseTimeRemaining;
|
|
190
|
+
return r && (s = r(e, s)), s;
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
watch: {
|
|
194
|
+
status(e, i) {
|
|
195
|
+
i && e === "uploading" && i !== "uploading" ? this.tid = setTimeout(() => {
|
|
196
|
+
this.progressingClass = "uploader-file-progressing";
|
|
197
|
+
}, 200) : (clearTimeout(this.tid), this.progressingClass = "");
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
mounted() {
|
|
201
|
+
const e = ["paused", "error", "averageSpeed", "currentSpeed"], i = [
|
|
202
|
+
"isComplete",
|
|
203
|
+
"isUploading",
|
|
204
|
+
{
|
|
205
|
+
key: "size",
|
|
206
|
+
fn: "getSize"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
key: "formatedSize",
|
|
210
|
+
fn: "getFormatSize"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
key: "uploadedSize",
|
|
214
|
+
fn: "sizeUploaded"
|
|
215
|
+
},
|
|
216
|
+
"progress",
|
|
217
|
+
"timeRemaining",
|
|
218
|
+
{
|
|
219
|
+
key: "type",
|
|
220
|
+
fn: "getType"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
key: "extension",
|
|
224
|
+
fn: "getExtension"
|
|
225
|
+
}
|
|
226
|
+
];
|
|
227
|
+
e.forEach((t) => {
|
|
228
|
+
this[t] = this.file[t];
|
|
229
|
+
}), i.forEach((t) => {
|
|
230
|
+
typeof t == "string" ? this[t] = this.file[t]() : this[t.key] = this.file[t.fn]();
|
|
231
|
+
});
|
|
232
|
+
const s = this._handlers = {}, r = (t) => (s[t] = (...a) => {
|
|
233
|
+
this.fileEventsHandler(t, a);
|
|
234
|
+
}, s[t]);
|
|
235
|
+
o.forEach((t) => {
|
|
236
|
+
this.file.uploader.on(t, r(t));
|
|
237
|
+
});
|
|
238
|
+
},
|
|
239
|
+
destroyed() {
|
|
240
|
+
o.forEach((e) => {
|
|
241
|
+
this.file.uploader.off(e, this._handlers[e]);
|
|
242
|
+
}), this._handlers = null;
|
|
243
|
+
},
|
|
244
|
+
methods: {
|
|
245
|
+
_actionCheck() {
|
|
246
|
+
this.paused = this.file.paused, this.error = this.file.error, this.isUploading = this.file.isUploading();
|
|
247
|
+
},
|
|
248
|
+
pause() {
|
|
249
|
+
this.file.pause(), this._actionCheck(), this._fileProgress();
|
|
250
|
+
},
|
|
251
|
+
resume() {
|
|
252
|
+
this.file.resume(), this._actionCheck();
|
|
253
|
+
},
|
|
254
|
+
remove() {
|
|
255
|
+
this.$set(this.file, "canceled", !0), this.file.cancel();
|
|
256
|
+
},
|
|
257
|
+
retry() {
|
|
258
|
+
this.file.retry(), this._actionCheck();
|
|
259
|
+
},
|
|
260
|
+
processResponse(e) {
|
|
261
|
+
let i = e;
|
|
262
|
+
try {
|
|
263
|
+
i = JSON.parse(e);
|
|
264
|
+
} catch {
|
|
265
|
+
}
|
|
266
|
+
this.response = i;
|
|
267
|
+
},
|
|
268
|
+
fileEventsHandler(e, i) {
|
|
269
|
+
const s = i[0], r = i[1], t = this.list ? s : r;
|
|
270
|
+
if (this.file === t) {
|
|
271
|
+
if (this.list && e === "fileSuccess") {
|
|
272
|
+
this.processResponse(i[2]);
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
this[`_${e}`].apply(this, i);
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
_fileProgress() {
|
|
279
|
+
this.progress = this.file.progress(), this.averageSpeed = this.file.averageSpeed, this.currentSpeed = this.file.currentSpeed, this.timeRemaining = this.file.timeRemaining(), this.uploadedSize = this.file.sizeUploaded(), this._actionCheck();
|
|
280
|
+
},
|
|
281
|
+
_fileSuccess(e, i, s) {
|
|
282
|
+
e && this.processResponse(s), this._fileProgress(), this.error = !1, this.isComplete = !0, this.isUploading = !1;
|
|
283
|
+
},
|
|
284
|
+
_fileComplete() {
|
|
285
|
+
this._fileSuccess();
|
|
286
|
+
},
|
|
287
|
+
_fileError(e, i, s) {
|
|
288
|
+
this._fileProgress(), this.processResponse(s), this.error = !0, this.isComplete = !1, this.isUploading = !1;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}, l = {};
|
|
292
|
+
var h = /* @__PURE__ */ f(
|
|
293
|
+
c,
|
|
294
|
+
u,
|
|
295
|
+
d,
|
|
296
|
+
!1,
|
|
297
|
+
m,
|
|
298
|
+
null,
|
|
299
|
+
null,
|
|
300
|
+
null
|
|
301
|
+
);
|
|
302
|
+
function m(e) {
|
|
303
|
+
for (let i in l)
|
|
304
|
+
this[i] = l[i];
|
|
305
|
+
}
|
|
306
|
+
const y = /* @__PURE__ */ function() {
|
|
307
|
+
return h.exports;
|
|
308
|
+
}();
|
|
309
|
+
export {
|
|
310
|
+
y as default
|
|
311
|
+
};
|
|
@@ -1 +1,49 @@
|
|
|
1
|
-
import{u as r}from"../../chunks/163eed3b.js";
|
|
1
|
+
import { u as r } from "../../chunks/163eed3b.js";
|
|
2
|
+
import { n as s } from "../../chunks/6499de3a.js";
|
|
3
|
+
var o = function() {
|
|
4
|
+
var e = this, n = e.$createElement, t = e._self._c || n;
|
|
5
|
+
return t("div", {
|
|
6
|
+
staticClass: "uploader-files"
|
|
7
|
+
}, [e._t("default", function() {
|
|
8
|
+
return [t("ul", e._l(e.files, function(l) {
|
|
9
|
+
return t("li", {
|
|
10
|
+
key: l.id
|
|
11
|
+
}, [t("ChunkFileUploaderFile", {
|
|
12
|
+
attrs: {
|
|
13
|
+
file: l
|
|
14
|
+
}
|
|
15
|
+
})], 1);
|
|
16
|
+
}), 0)];
|
|
17
|
+
}, {
|
|
18
|
+
files: e.files
|
|
19
|
+
})], 2);
|
|
20
|
+
}, u = [];
|
|
21
|
+
const a = {
|
|
22
|
+
name: "ChunkFileUploaderFiles",
|
|
23
|
+
mixins: [r],
|
|
24
|
+
computed: {
|
|
25
|
+
files() {
|
|
26
|
+
return this.uploader.files;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, i = {};
|
|
30
|
+
var _ = /* @__PURE__ */ s(
|
|
31
|
+
a,
|
|
32
|
+
o,
|
|
33
|
+
u,
|
|
34
|
+
!1,
|
|
35
|
+
c,
|
|
36
|
+
null,
|
|
37
|
+
null,
|
|
38
|
+
null
|
|
39
|
+
);
|
|
40
|
+
function c(e) {
|
|
41
|
+
for (let n in i)
|
|
42
|
+
this[n] = i[n];
|
|
43
|
+
}
|
|
44
|
+
const p = /* @__PURE__ */ function() {
|
|
45
|
+
return _.exports;
|
|
46
|
+
}();
|
|
47
|
+
export {
|
|
48
|
+
p as default
|
|
49
|
+
};
|
|
@@ -1 +1,50 @@
|
|
|
1
|
-
import{u as r}from"../../chunks/163eed3b.js";
|
|
1
|
+
import { u as r } from "../../chunks/163eed3b.js";
|
|
2
|
+
import { n as s } from "../../chunks/6499de3a.js";
|
|
3
|
+
var o = function() {
|
|
4
|
+
var e = this, t = e.$createElement, i = e._self._c || t;
|
|
5
|
+
return i("div", {
|
|
6
|
+
staticClass: "uploader-list"
|
|
7
|
+
}, [e._t("default", function() {
|
|
8
|
+
return [i("ul", e._l(e.fileList, function(n) {
|
|
9
|
+
return i("li", {
|
|
10
|
+
key: n.id
|
|
11
|
+
}, [i("ChunkFileUploaderFile", {
|
|
12
|
+
attrs: {
|
|
13
|
+
file: n,
|
|
14
|
+
list: !0
|
|
15
|
+
}
|
|
16
|
+
})], 1);
|
|
17
|
+
}), 0)];
|
|
18
|
+
}, {
|
|
19
|
+
fileList: e.fileList
|
|
20
|
+
})], 2);
|
|
21
|
+
}, u = [];
|
|
22
|
+
const a = {
|
|
23
|
+
name: "ChunkFileUploaderList",
|
|
24
|
+
mixins: [r],
|
|
25
|
+
computed: {
|
|
26
|
+
fileList() {
|
|
27
|
+
return this.uploader.fileList;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}, l = {};
|
|
31
|
+
var _ = /* @__PURE__ */ s(
|
|
32
|
+
a,
|
|
33
|
+
o,
|
|
34
|
+
u,
|
|
35
|
+
!1,
|
|
36
|
+
c,
|
|
37
|
+
null,
|
|
38
|
+
null,
|
|
39
|
+
null
|
|
40
|
+
);
|
|
41
|
+
function c(e) {
|
|
42
|
+
for (let t in l)
|
|
43
|
+
this[t] = l[t];
|
|
44
|
+
}
|
|
45
|
+
const p = /* @__PURE__ */ function() {
|
|
46
|
+
return _.exports;
|
|
47
|
+
}();
|
|
48
|
+
export {
|
|
49
|
+
p as default
|
|
50
|
+
};
|
|
@@ -1 +1,51 @@
|
|
|
1
|
-
import{u as o,s
|
|
1
|
+
import { u as o, s } from "../../chunks/163eed3b.js";
|
|
2
|
+
import { n as a } from "../../chunks/6499de3a.js";
|
|
3
|
+
var i = function() {
|
|
4
|
+
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
5
|
+
return t("div", {
|
|
6
|
+
directives: [{
|
|
7
|
+
name: "show",
|
|
8
|
+
rawName: "v-show",
|
|
9
|
+
value: !e.support,
|
|
10
|
+
expression: "!support"
|
|
11
|
+
}],
|
|
12
|
+
staticClass: "uploader-unsupport"
|
|
13
|
+
}, [e._t("default", function() {
|
|
14
|
+
return [e._m(0)];
|
|
15
|
+
})], 2);
|
|
16
|
+
}, u = [function() {
|
|
17
|
+
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
18
|
+
return t("p", [e._v(" Your browser, unfortunately, is not supported by Uploader.js. The library requires support for "), t("a", {
|
|
19
|
+
attrs: {
|
|
20
|
+
href: "http://www.w3.org/TR/FileAPI/"
|
|
21
|
+
}
|
|
22
|
+
}, [e._v("the HTML5 File API")]), e._v(" along with "), t("a", {
|
|
23
|
+
attrs: {
|
|
24
|
+
href: "http://www.w3.org/TR/FileAPI/#normalization-of-params"
|
|
25
|
+
}
|
|
26
|
+
}, [e._v("file slicing")]), e._v(". ")]);
|
|
27
|
+
}];
|
|
28
|
+
const l = {
|
|
29
|
+
name: "ChunkFileUploaderUnSupport",
|
|
30
|
+
mixins: [o, s]
|
|
31
|
+
}, n = {};
|
|
32
|
+
var p = /* @__PURE__ */ a(
|
|
33
|
+
l,
|
|
34
|
+
i,
|
|
35
|
+
u,
|
|
36
|
+
!1,
|
|
37
|
+
_,
|
|
38
|
+
null,
|
|
39
|
+
null,
|
|
40
|
+
null
|
|
41
|
+
);
|
|
42
|
+
function _(e) {
|
|
43
|
+
for (let r in n)
|
|
44
|
+
this[r] = n[r];
|
|
45
|
+
}
|
|
46
|
+
const f = /* @__PURE__ */ function() {
|
|
47
|
+
return p.exports;
|
|
48
|
+
}();
|
|
49
|
+
export {
|
|
50
|
+
f as default
|
|
51
|
+
};
|