@opentinyvue/vue-file-upload 2.22.0 → 3.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/lib/mobile-first.js +135 -218
- package/lib/pc.js +125 -218
- package/package.json +13 -13
- package/src/index.d.ts +624 -3
- package/src/mobile-first.vue.d.ts +162 -1
- package/src/pc.vue.d.ts +150 -1
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -1,89 +1,3 @@
|
|
|
1
|
-
import { renderless, api } from '@opentinyvue/vue-renderless/file-upload/vue';
|
|
2
|
-
import { defineComponent, props, setup, isVue3 } from '@opentinyvue/vue-common';
|
|
3
|
-
import UploadList from '@opentinyvue/vue-upload-list';
|
|
4
|
-
import Upload from '@opentinyvue/vue-upload';
|
|
5
|
-
import Progress from '@opentinyvue/vue-progress';
|
|
6
|
-
import Modal from '@opentinyvue/vue-modal';
|
|
7
|
-
import DialogBox from '@opentinyvue/vue-dialog-box';
|
|
8
|
-
import Tooltip from '@opentinyvue/vue-tooltip';
|
|
9
|
-
import { IconAttachment, IconSuccessful, IconClose, IconDownload, IconFileCloudupload, IconPlus, IconPlusCircle, IconPicture, IconMic, IconStartCircle, IconHelpQuery } from '@opentinyvue/vue-icon';
|
|
10
|
-
import Streamsaver from 'streamsaver';
|
|
11
|
-
import Button from '@opentinyvue/vue-button';
|
|
12
|
-
import Input from '@opentinyvue/vue-input';
|
|
13
|
-
import Switch from '@opentinyvue/vue-switch';
|
|
14
|
-
|
|
15
|
-
function getDefaultExportFromCjs(x) {
|
|
16
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
var helper;
|
|
20
|
-
var hasRequiredHelper;
|
|
21
|
-
function requireHelper() {
|
|
22
|
-
if (hasRequiredHelper) return helper;
|
|
23
|
-
hasRequiredHelper = 1;
|
|
24
|
-
function _extends() {
|
|
25
|
-
return _extends = Object.assign ? Object.assign.bind() : function(a) {
|
|
26
|
-
for (var b, c = 1; c < arguments.length; c++) for (var d in b = arguments[c], b) Object.prototype.hasOwnProperty.call(b, d) && (a[d] = b[d]);
|
|
27
|
-
return a;
|
|
28
|
-
}, _extends.apply(this, arguments);
|
|
29
|
-
}
|
|
30
|
-
var normalMerge = ["attrs", "props", "domProps"], toArrayMerge = ["class", "style", "directives"], functionalMerge = ["on", "nativeOn"], mergeJsxProps = function mergeJsxProps2(a) {
|
|
31
|
-
return a.reduce(function(c, a2) {
|
|
32
|
-
for (var b in a2) if (!c[b]) c[b] = a2[b];
|
|
33
|
-
else if (-1 !== normalMerge.indexOf(b)) c[b] = _extends({}, c[b], a2[b]);
|
|
34
|
-
else if (-1 !== toArrayMerge.indexOf(b)) {
|
|
35
|
-
var d = c[b] instanceof Array ? c[b] : [c[b]], e = a2[b] instanceof Array ? a2[b] : [a2[b]];
|
|
36
|
-
c[b] = [].concat(d, e);
|
|
37
|
-
} else if (-1 !== functionalMerge.indexOf(b)) {
|
|
38
|
-
for (var f in a2[b]) if (c[b][f]) {
|
|
39
|
-
var g = c[b][f] instanceof Array ? c[b][f] : [c[b][f]], h = a2[b][f] instanceof Array ? a2[b][f] : [a2[b][f]];
|
|
40
|
-
c[b][f] = [].concat(g, h);
|
|
41
|
-
} else c[b][f] = a2[b][f];
|
|
42
|
-
} else if ("hook" === b) for (var i in a2[b]) c[b][i] = c[b][i] ? mergeFn(c[b][i], a2[b][i]) : a2[b][i];
|
|
43
|
-
else c[b] = a2[b];
|
|
44
|
-
return c;
|
|
45
|
-
}, {});
|
|
46
|
-
}, mergeFn = function mergeFn2(a, b) {
|
|
47
|
-
return function() {
|
|
48
|
-
a && a.apply(this, arguments), b && b.apply(this, arguments);
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
helper = mergeJsxProps;
|
|
52
|
-
return helper;
|
|
53
|
-
}
|
|
54
|
-
var helperExports = requireHelper();
|
|
55
|
-
var _mergeJSXProps5 = /* @__PURE__ */ getDefaultExportFromCjs(helperExports);
|
|
56
|
-
|
|
57
|
-
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
58
|
-
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
59
|
-
if (render) {
|
|
60
|
-
options.render = render;
|
|
61
|
-
options.staticRenderFns = staticRenderFns;
|
|
62
|
-
options._compiled = true;
|
|
63
|
-
}
|
|
64
|
-
var hook;
|
|
65
|
-
if (injectStyles) {
|
|
66
|
-
hook = injectStyles;
|
|
67
|
-
}
|
|
68
|
-
if (hook) {
|
|
69
|
-
if (options.functional) {
|
|
70
|
-
options._injectStyles = hook;
|
|
71
|
-
var originalRender = options.render;
|
|
72
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
73
|
-
hook.call(context);
|
|
74
|
-
return originalRender(h, context);
|
|
75
|
-
};
|
|
76
|
-
} else {
|
|
77
|
-
var existing = options.beforeCreate;
|
|
78
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
exports: scriptExports,
|
|
83
|
-
options
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
1
|
function _extends() {
|
|
88
2
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
89
3
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -93,12 +7,29 @@ function _extends() {
|
|
|
93
7
|
return n;
|
|
94
8
|
}, _extends.apply(null, arguments);
|
|
95
9
|
}
|
|
96
|
-
|
|
10
|
+
import { createVNode, createTextVNode, mergeProps, resolveComponent, isVNode } from "vue";
|
|
11
|
+
import { api, renderless } from "@opentinyvue/vue-renderless/file-upload/vue";
|
|
12
|
+
import { defineComponent, props, h, setup as _setup, isVue3 } from "@opentinyvue/vue-common";
|
|
13
|
+
import UploadList from "@opentinyvue/vue-upload-list";
|
|
14
|
+
import Upload from "@opentinyvue/vue-upload";
|
|
15
|
+
import Progress from "@opentinyvue/vue-progress";
|
|
16
|
+
import Modal from "@opentinyvue/vue-modal";
|
|
17
|
+
import DialogBox from "@opentinyvue/vue-dialog-box";
|
|
18
|
+
import Tooltip from "@opentinyvue/vue-tooltip";
|
|
19
|
+
import { IconHelpQuery, IconStartCircle, IconMic, IconPicture, IconPlusCircle, IconPlus, IconFileCloudupload, IconDownload, IconClose, IconSuccessful, IconAttachment } from "@opentinyvue/vue-icon";
|
|
20
|
+
import Streamsaver from "streamsaver";
|
|
21
|
+
import Button from "@opentinyvue/vue-button";
|
|
22
|
+
import Input from "@opentinyvue/vue-input";
|
|
23
|
+
import Switch from "@opentinyvue/vue-switch";
|
|
24
|
+
function _isSlot(s) {
|
|
25
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
26
|
+
}
|
|
27
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
97
28
|
inheritAttrs: false,
|
|
98
29
|
emits: ["change", "hash-progress", "error", "progress", "success", "remove", "download", "trigger-click", "click-file-list"],
|
|
99
30
|
props: [].concat(props, ["edm", "action", "headers", "data", "multiple", "name", "drag", "dragger", "withCredentials", "showFileList", "accept", "type", "beforeUpload", "beforeRemove", "fileList", "autoUpload", "listType", "httpRequest", "disabled", "limit", "openDownloadFile", "mergeService", "fileSize", "thumbOption", "isFolderTitle", "listOption", "maxNameLength", "scale", "showName", "sourceType", "showTitle", "title", "displayOnly", "customClass", "hwh5", "mode", "cacheToken", "lockScroll", "compact", "encryptConfig", "imageBgColor", "promptTip"]),
|
|
100
|
-
setup: function setup
|
|
101
|
-
return
|
|
31
|
+
setup: function setup(props2, context) {
|
|
32
|
+
return _setup({
|
|
102
33
|
props: props2,
|
|
103
34
|
context,
|
|
104
35
|
renderless,
|
|
@@ -131,7 +62,6 @@ var __vue2_script = defineComponent({
|
|
|
131
62
|
},
|
|
132
63
|
render: function render() {
|
|
133
64
|
var _this = this;
|
|
134
|
-
var h = arguments[0];
|
|
135
65
|
var _this$state$listeners = this.state.listeners, _this$state$listeners2 = _this$state$listeners.exceed, exceed = _this$state$listeners2 === void 0 ? function() {
|
|
136
66
|
} : _this$state$listeners2, _this$state$listeners3 = _this$state$listeners.preview, preview = _this$state$listeners3 === void 0 ? void 0 : _this$state$listeners3, downloadFile = _this$state$listeners["download-file"], downloadAll = _this$state$listeners["download-all"], reUpload = _this$state$listeners["re-upload"], triggerClick = _this$state$listeners["trigger-click"], play = _this$state$listeners.play;
|
|
137
67
|
var _this$state = this.state, uploadFiles = _this$state.uploadFiles, isEdm = _this$state.isEdm, dialogConfigObj = _this$state.dialogConfigObj, isSuccess = _this$state.isSuccess, uploadDisabled = _this$state.uploadDisabled, url = _this$state.url, accept = _this$state.accept, httpRequest = _this$state.httpRequest, edmToken = _this$state.edmToken, iframeUrl = _this$state.iframeUrl, isDragover = _this$state.isDragover, selected = _this$state.selected, types = _this$state.types, isHwh5 = _this$state.isHwh5;
|
|
@@ -145,7 +75,7 @@ var __vue2_script = defineComponent({
|
|
|
145
75
|
var listType2 = _ref.listType, title2 = _ref.title, showTitle2 = _ref.showTitle, _ref$isInside = _ref.isInside, isInside = _ref$isInside === void 0 ? false : _ref$isInside, _ref$displayOnly = _ref.displayOnly, displayOnly2 = _ref$displayOnly === void 0 ? false : _ref$displayOnly, mode2 = _ref.mode;
|
|
146
76
|
var defaultTitle;
|
|
147
77
|
if (isInside) {
|
|
148
|
-
defaultTitle =
|
|
78
|
+
defaultTitle = createVNode("span", {
|
|
149
79
|
"class": showTitle2 ? "inline-block mr-1 text-sm text-color-text-primary font-bold" : "hidden"
|
|
150
80
|
}, [title2]);
|
|
151
81
|
} else {
|
|
@@ -157,9 +87,9 @@ var __vue2_script = defineComponent({
|
|
|
157
87
|
} else {
|
|
158
88
|
!displayOnly2 || !showTitle2 ? cls += "hidden" : cls += "mt-4 mb-2";
|
|
159
89
|
}
|
|
160
|
-
defaultTitle = mode2 !== "bubble" ?
|
|
90
|
+
defaultTitle = mode2 !== "bubble" ? createVNode("div", {
|
|
161
91
|
"class": cls
|
|
162
|
-
}, [
|
|
92
|
+
}, [createVNode("span", {
|
|
163
93
|
"class": "mr-1"
|
|
164
94
|
}, [title2]), displayOnly2 && getDisplayOnlyTip({
|
|
165
95
|
isEdm,
|
|
@@ -180,34 +110,34 @@ var __vue2_script = defineComponent({
|
|
|
180
110
|
bubbling: true
|
|
181
111
|
};
|
|
182
112
|
if (listType2 === "text") {
|
|
183
|
-
defaultTip =
|
|
113
|
+
defaultTip = createVNode("div", {
|
|
184
114
|
"class": "inline-block w-full sm:pl-4 text-color-none"
|
|
185
|
-
}, [
|
|
115
|
+
}, [createVNode("div", {
|
|
186
116
|
"class": "block sm:hidden"
|
|
187
117
|
}, [getDefaultTitle({
|
|
188
118
|
listType: listType2,
|
|
189
119
|
title: title2,
|
|
190
120
|
showTitle: showTitle2,
|
|
191
121
|
isInside: true
|
|
192
|
-
}),
|
|
193
|
-
"
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
122
|
+
}), createVNode(resolveComponent("tiny-tooltip"), {
|
|
123
|
+
"effect": "dark",
|
|
124
|
+
"content": tipMsg,
|
|
125
|
+
"placement": "top",
|
|
126
|
+
"popper-options": popperConfig
|
|
127
|
+
}, {
|
|
128
|
+
default: function _default() {
|
|
129
|
+
return [createVNode(resolveComponent("icon-help-query"), {
|
|
130
|
+
"class": "-mt-0.5 fill-color-none-hover"
|
|
131
|
+
}, null)];
|
|
198
132
|
}
|
|
199
|
-
}
|
|
200
|
-
"class": "-mt-0.5 fill-color-none-hover"
|
|
201
|
-
})])])]);
|
|
133
|
+
})])]);
|
|
202
134
|
} else if (listType2 === "drag-single") {
|
|
203
|
-
defaultTip =
|
|
204
|
-
"
|
|
205
|
-
"title": tipMsg
|
|
206
|
-
},
|
|
135
|
+
defaultTip = createVNode("div", {
|
|
136
|
+
"title": tipMsg,
|
|
207
137
|
"class": "leading-5 text-color-text-primary overflow-hidden text-ellipsis whitespace-nowrap"
|
|
208
138
|
}, [slots2.tip && slots2.tip() || tipMsg]);
|
|
209
139
|
} else {
|
|
210
|
-
defaultTip = slots2.tip ?
|
|
140
|
+
defaultTip = slots2.tip ? createVNode("div", {
|
|
211
141
|
"class": "mb-4 text-color-none"
|
|
212
142
|
}, [slots2.tip()]) : null;
|
|
213
143
|
}
|
|
@@ -218,67 +148,69 @@ var __vue2_script = defineComponent({
|
|
|
218
148
|
var popperConfig = {
|
|
219
149
|
bubbling: true
|
|
220
150
|
};
|
|
221
|
-
return
|
|
151
|
+
return createVNode(resolveComponent("tiny-tooltip"), {
|
|
222
152
|
"class": "inline-block sm:hidden",
|
|
223
|
-
"
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
153
|
+
"effect": "dark",
|
|
154
|
+
"content": _this.getTipMessage({
|
|
155
|
+
accept: isEdm2 ? accept : _this.accept,
|
|
156
|
+
fileSize: fileSize2,
|
|
157
|
+
limit: _this.limit
|
|
158
|
+
}),
|
|
159
|
+
"placement": "top",
|
|
160
|
+
"popper-options": popperConfig
|
|
161
|
+
}, {
|
|
162
|
+
default: function _default() {
|
|
163
|
+
return [createVNode(resolveComponent("icon-help-query"), {
|
|
164
|
+
"class": "-mt-0.5 fill-color-none-hover"
|
|
165
|
+
}, null)];
|
|
232
166
|
}
|
|
233
|
-
}
|
|
234
|
-
"class": "-mt-0.5 fill-color-none-hover"
|
|
235
|
-
})]);
|
|
167
|
+
});
|
|
236
168
|
};
|
|
237
169
|
var getTriggerContent = function getTriggerContent2(_ref4) {
|
|
238
170
|
var listType2 = _ref4.listType, t2 = _ref4.t, type2 = _ref4.type, disabled = _ref4.disabled;
|
|
239
171
|
var defaultList = {
|
|
240
|
-
"picture":
|
|
172
|
+
"picture": createVNode("div", null, [createVNode(resolveComponent("icon-picture"), {
|
|
241
173
|
"class": "w-6 h-6 fill-color-icon-secondary"
|
|
242
|
-
}),
|
|
174
|
+
}, null), createVNode("div", {
|
|
243
175
|
"class": "mt-1 sm:mt-2 text-color-text-secondary text-xs"
|
|
244
176
|
}, [t2("ui.upload.addPicture")])]),
|
|
245
|
-
"audio":
|
|
177
|
+
"audio": createVNode("div", null, [createVNode(resolveComponent("icon-mic"), {
|
|
246
178
|
"class": "w-6 h-6 fill-color-icon-secondary"
|
|
247
|
-
}),
|
|
179
|
+
}, null), createVNode("div", {
|
|
248
180
|
"class": "mt-1 sm:mt-2 text-color-text-secondary text-xs"
|
|
249
181
|
}, [t2("ui.upload.addAudio")])]),
|
|
250
|
-
"video":
|
|
182
|
+
"video": createVNode("div", null, [createVNode(resolveComponent("icon-start-circle"), {
|
|
251
183
|
"class": "w-6 h-6 fill-color-icon-secondary"
|
|
252
|
-
}),
|
|
184
|
+
}, null), createVNode("div", {
|
|
253
185
|
"class": "mt-1 sm:mt-2 text-color-text-secondary text-xs"
|
|
254
186
|
}, [t2("ui.upload.addVideo")])])
|
|
255
187
|
};
|
|
256
188
|
var defaultContent;
|
|
257
189
|
if (listType2 === "text") {
|
|
258
|
-
defaultContent =
|
|
190
|
+
defaultContent = createVNode("div", {
|
|
259
191
|
"class": "inline-block"
|
|
260
|
-
}, [
|
|
261
|
-
"
|
|
262
|
-
"disabled": disabled
|
|
263
|
-
},
|
|
192
|
+
}, [createVNode(resolveComponent("tiny-button"), {
|
|
193
|
+
"disabled": disabled,
|
|
264
194
|
"class": "hidden sm:block"
|
|
265
|
-
},
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
195
|
+
}, {
|
|
196
|
+
default: function _default() {
|
|
197
|
+
return [createVNode("div", {
|
|
198
|
+
"class": "flex items-center"
|
|
199
|
+
}, [createVNode(resolveComponent("icon-plus"), null, null), createVNode("span", {
|
|
200
|
+
"class": "ml-2"
|
|
201
|
+
}, [t2("ui.fileUpload.uploadFile")])])];
|
|
272
202
|
}
|
|
273
|
-
})
|
|
203
|
+
}), createVNode(resolveComponent("icon-plus-circle"), {
|
|
204
|
+
"custom-class": "sm:hidden w-5 h-5"
|
|
205
|
+
}, null)]);
|
|
274
206
|
} else if (listType2 === "drag-single") {
|
|
275
207
|
defaultContent = null;
|
|
276
208
|
} else {
|
|
277
209
|
var defaultClass = "relative h-full border border-dashed border-color-border rounded bg-color-bg-2 align-top hover:cursor-pointer";
|
|
278
210
|
listType2 === "picture-single" && uploadFiles.length && (defaultClass += " hidden");
|
|
279
|
-
defaultContent =
|
|
211
|
+
defaultContent = createVNode("div", {
|
|
280
212
|
"class": defaultClass
|
|
281
|
-
}, [
|
|
213
|
+
}, [createVNode("div", {
|
|
282
214
|
"class": "absolute w-full top-1/2 left-0 -translate-y-1/2 z-[1] text-center"
|
|
283
215
|
}, [defaultList[type2 || "picture"]])]);
|
|
284
216
|
}
|
|
@@ -288,19 +220,21 @@ var __vue2_script = defineComponent({
|
|
|
288
220
|
var listType2 = _ref5.listType, downloadAll2 = _ref5.downloadAll, uploadFiles2 = _ref5.uploadFiles, t2 = _ref5.t;
|
|
289
221
|
var operateContent;
|
|
290
222
|
if (listType2 === "text") {
|
|
291
|
-
operateContent = downloadAll2 ?
|
|
223
|
+
operateContent = downloadAll2 ? createVNode("div", {
|
|
292
224
|
"class": "hidden sm:inline-block align-middle"
|
|
293
|
-
}, [
|
|
294
|
-
"
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
225
|
+
}, [createVNode(resolveComponent("tiny-button"), {
|
|
226
|
+
"onClick": function onClick() {
|
|
227
|
+
return downloadAll2(uploadFiles2);
|
|
228
|
+
}
|
|
229
|
+
}, {
|
|
230
|
+
default: function _default() {
|
|
231
|
+
return [createVNode("div", {
|
|
232
|
+
"class": "flex items-center"
|
|
233
|
+
}, [createVNode(resolveComponent("icon-download"), null, null), createVNode("span", {
|
|
234
|
+
"class": "ml-2"
|
|
235
|
+
}, [t2("ui.fileUpload.downloadAll")])])];
|
|
298
236
|
}
|
|
299
|
-
}
|
|
300
|
-
"class": "flex items-center"
|
|
301
|
-
}, [h("icon-download"), h("span", {
|
|
302
|
-
"class": "ml-2"
|
|
303
|
-
}, [t2("ui.fileUpload.downloadAll")])])])]) : null;
|
|
237
|
+
})]) : null;
|
|
304
238
|
}
|
|
305
239
|
return operateContent;
|
|
306
240
|
};
|
|
@@ -508,20 +442,18 @@ var __vue2_script = defineComponent({
|
|
|
508
442
|
}, dialogConfigObj, {
|
|
509
443
|
scopedSlots: {
|
|
510
444
|
default: function _default() {
|
|
511
|
-
return
|
|
512
|
-
"
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
"style": "display: block;width: 100%;height: 500px;display: inline-block;"
|
|
524
|
-
});
|
|
445
|
+
return createVNode("iframe", {
|
|
446
|
+
"id": "_iframe",
|
|
447
|
+
"style": "display: block;width: 100%;height: 500px;display: inline-block;",
|
|
448
|
+
"allowfullscreen": true,
|
|
449
|
+
"allowtransparency": "true",
|
|
450
|
+
"frameborder": "0",
|
|
451
|
+
"border": "0",
|
|
452
|
+
"marginwidth": "0",
|
|
453
|
+
"marginheight": "0",
|
|
454
|
+
"scrolling": "no",
|
|
455
|
+
"src": iframeUrl
|
|
456
|
+
}, null);
|
|
525
457
|
}
|
|
526
458
|
}
|
|
527
459
|
}));
|
|
@@ -547,55 +479,50 @@ var __vue2_script = defineComponent({
|
|
|
547
479
|
},
|
|
548
480
|
scopedSlots: {
|
|
549
481
|
default: function _default() {
|
|
550
|
-
return
|
|
551
|
-
"
|
|
552
|
-
|
|
482
|
+
return createVNode("div", {
|
|
483
|
+
"data-tag": "encrypt-config-dialog-body"
|
|
484
|
+
}, [createVNode("div", null, [_this.t("ui.fileUpload.addWatermark")]), createVNode("div", null, [createVNode(Input, {
|
|
485
|
+
"modelValue": _this.encryptConfig.watermark,
|
|
486
|
+
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
|
487
|
+
return _this.encryptConfig.watermark = $event;
|
|
553
488
|
}
|
|
554
|
-
}, [
|
|
555
|
-
"
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
_this.$set(_this.encryptConfig, "watermark", $$v);
|
|
559
|
-
}
|
|
489
|
+
}, null)]), createVNode("p", null, [createTextVNode(" ")]), createVNode("div", null, [_this.t("ui.fileUpload.encrypted")]), createVNode("div", null, [createVNode(Switch, {
|
|
490
|
+
"modelValue": _this.encryptConfig.encrypt,
|
|
491
|
+
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
|
492
|
+
return _this.encryptConfig.encrypt = $event;
|
|
560
493
|
}
|
|
561
|
-
}
|
|
562
|
-
"model": {
|
|
563
|
-
value: _this.encryptConfig.encrypt,
|
|
564
|
-
callback: function callback($$v) {
|
|
565
|
-
_this.$set(_this.encryptConfig, "encrypt", $$v);
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
})])]);
|
|
494
|
+
}, null)])]);
|
|
569
495
|
},
|
|
570
496
|
footer: function footer() {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
497
|
+
var _slot, _slot2;
|
|
498
|
+
return [createVNode(Button, {
|
|
499
|
+
"onClick": function onClick() {
|
|
500
|
+
return _this.state.encryptDialogConfig.show = false;
|
|
501
|
+
}
|
|
502
|
+
}, _isSlot(_slot = _this.t("ui.base.cancel")) ? _slot : {
|
|
503
|
+
default: function _default() {
|
|
504
|
+
return [_slot];
|
|
576
505
|
}
|
|
577
|
-
}
|
|
578
|
-
"
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
"on": {
|
|
583
|
-
"click": function click() {
|
|
584
|
-
return encryptDialogConfirm();
|
|
585
|
-
}
|
|
506
|
+
}), [createVNode(Button, {
|
|
507
|
+
"type": "primary",
|
|
508
|
+
"customClass": "ml-2",
|
|
509
|
+
"onClick": function onClick() {
|
|
510
|
+
return encryptDialogConfirm();
|
|
586
511
|
}
|
|
587
|
-
},
|
|
512
|
+
}, _isSlot(_slot2 = _this.t("ui.popupload.uploadButtonText")) ? _slot2 : {
|
|
513
|
+
default: function _default() {
|
|
514
|
+
return [_slot2];
|
|
515
|
+
}
|
|
516
|
+
})]];
|
|
588
517
|
}
|
|
589
518
|
}
|
|
590
519
|
});
|
|
591
520
|
}
|
|
592
521
|
var attrs = a($attrs, ["^on[A-Z]"]);
|
|
593
|
-
return
|
|
594
|
-
"
|
|
595
|
-
"data-tag": "tiny-file-upload"
|
|
596
|
-
},
|
|
522
|
+
return createVNode("div", mergeProps(attrs, {
|
|
523
|
+
"data-tag": "tiny-file-upload",
|
|
597
524
|
"class": isDragSingle ? "relative inline-block" : ""
|
|
598
|
-
}
|
|
525
|
+
}), [getDefaultTitle({
|
|
599
526
|
listType,
|
|
600
527
|
title,
|
|
601
528
|
showTitle,
|
|
@@ -604,16 +531,6 @@ var __vue2_script = defineComponent({
|
|
|
604
531
|
}), noticePC, isText && !displayOnly ? slots.trigger ? [createUploadComponent()] : createUploadComponent() : null, noticeMF, uploadList, previewComponent, encryptDialogComponent]);
|
|
605
532
|
}
|
|
606
533
|
});
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
function __vue2_injectStyles(context) {
|
|
611
|
-
for (var o in __cssModules) {
|
|
612
|
-
this[o] = __cssModules[o];
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
var mobileFirst = /* @__PURE__ */ function() {
|
|
616
|
-
return __component__.exports;
|
|
617
|
-
}();
|
|
618
|
-
|
|
619
|
-
export { mobileFirst as default };
|
|
534
|
+
export {
|
|
535
|
+
_sfc_main as default
|
|
536
|
+
};
|