china-mobile-international-custom-components 0.0.42 → 0.0.43
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/es/ApplicationTypeTag.mjs +1 -1
- package/es/AutoShowTooltip.mjs +31 -33
- package/es/AvailableRangePreview.mjs +1 -1
- package/es/AvailableRangeSetting.mjs +2 -2
- package/es/CommonTagsList.mjs +3 -3
- package/es/DialogContainer.mjs +47 -49
- package/es/FileUploader.mjs +83 -83
- package/es/ParameterTable.mjs +1306 -1321
- package/es/SourcePublish.mjs +119 -119
- package/es/Table.mjs +2 -2
- package/es/assets/AutoShowTooltip.css +1 -1
- package/es/assets/ParameterTable.css +1 -1
- package/es/assets/SourcePublish.css +1 -1
- package/es/chunks/{BackBar.zjPh_z_w.js → BackBar.eaUb1JvV.js} +33 -33
- package/es/chunks/config.CyAT4SUn.js +435 -0
- package/es/chunks/{i18n.BNeBD4gR.js → i18n.Bd7hh14j.js} +389 -391
- package/es/chunks/{index.DENagLDS.js → index.CHlFhI6c.js} +2 -2
- package/es/chunks/layout.B1qqvrXz.js +639 -0
- package/es/index.mjs +4 -4
- package/lib/ApplicationTypeTag.js +1 -1
- package/lib/AutoShowTooltip.js +1 -1
- package/lib/AvailableRangePreview.js +1 -1
- package/lib/AvailableRangeSetting.js +1 -1
- package/lib/CommonTagsList.js +1 -1
- package/lib/DialogContainer.js +1 -1
- package/lib/FileUploader.js +1 -1
- package/lib/ParameterTable.js +1 -1
- package/lib/SourcePublish.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/assets/AutoShowTooltip.css +1 -1
- package/lib/assets/ParameterTable.css +1 -1
- package/lib/assets/SourcePublish.css +1 -1
- package/lib/chunks/{BackBar.BL8repFN.js → BackBar.CaaASGvb.js} +1 -1
- package/lib/chunks/config.BInpXFGZ.js +1 -0
- package/lib/chunks/i18n.D3L1FBDI.js +6 -0
- package/lib/chunks/{index.5Su4CrC-.js → index.D-pFPuUr.js} +1 -1
- package/lib/chunks/layout.Cen7E9tF.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +2 -2
- package/es/assets/index3.css +0 -1
- package/es/chunks/index.D1cu8OUn.js +0 -260
- package/lib/assets/index3.css +0 -1
- package/lib/chunks/index.B_esKpWv.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { w as I } from "./chunks/index.bCzIhWFw.js";
|
|
2
2
|
import { computed as A, createElementBlock as _, openBlock as n, normalizeClass as r, toDisplayString as p } from "vue";
|
|
3
3
|
import { A as t } from "./chunks/config.DE5PZU2F.js";
|
|
4
|
-
import { u } from "./chunks/i18n.
|
|
4
|
+
import { u } from "./chunks/i18n.Bd7hh14j.js";
|
|
5
5
|
import { _ as i } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
6
|
import './assets/ApplicationTypeTag.css';const L = () => {
|
|
7
7
|
const { t: a } = u();
|
package/es/AutoShowTooltip.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { w as f } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
-
import { ref as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
2
|
+
import { ref as s, watch as m, nextTick as d, onMounted as p, onBeforeUnmount as v, createBlock as h, openBlock as u, unref as y, withCtx as w, createElementVNode as b, normalizeStyle as S, renderSlot as g, createElementBlock as k, toDisplayString as x } from "vue";
|
|
3
|
+
import { ElTooltip as T } from "element-plus";
|
|
4
|
+
import { _ as I } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
5
|
+
import './assets/AutoShowTooltip.css';const H = { key: 1 }, O = {
|
|
5
6
|
__name: "AutoShowTooltip",
|
|
6
7
|
props: {
|
|
7
8
|
content: {
|
|
@@ -28,7 +29,7 @@ import './assets/AutoShowTooltip.css';const I = { key: 1 }, H = {
|
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
setup(o) {
|
|
31
|
-
const
|
|
32
|
+
const a = o, l = s(null), n = s(!1);
|
|
32
33
|
let e = null;
|
|
33
34
|
function i() {
|
|
34
35
|
const t = l.value;
|
|
@@ -40,20 +41,20 @@ import './assets/AutoShowTooltip.css';const I = { key: 1 }, H = {
|
|
|
40
41
|
n.value = !1;
|
|
41
42
|
return;
|
|
42
43
|
}
|
|
43
|
-
const r = t.scrollHeight,
|
|
44
|
-
n.value = r >
|
|
44
|
+
const r = t.scrollHeight, c = t.clientHeight;
|
|
45
|
+
n.value = r > c + 1;
|
|
45
46
|
}
|
|
46
47
|
return m(
|
|
47
|
-
[() =>
|
|
48
|
+
[() => a.content, () => a.row],
|
|
48
49
|
() => {
|
|
49
|
-
|
|
50
|
+
d(() => {
|
|
50
51
|
setTimeout(() => {
|
|
51
52
|
i();
|
|
52
53
|
}, 50);
|
|
53
54
|
});
|
|
54
55
|
},
|
|
55
56
|
{ immediate: !1 }
|
|
56
|
-
),
|
|
57
|
+
), p(() => {
|
|
57
58
|
setTimeout(() => {
|
|
58
59
|
i();
|
|
59
60
|
}, 100), e = new ResizeObserver(() => {
|
|
@@ -63,30 +64,27 @@ import './assets/AutoShowTooltip.css';const I = { key: 1 }, H = {
|
|
|
63
64
|
}), l.value && e.observe(l.value);
|
|
64
65
|
}), v(() => {
|
|
65
66
|
e && (e.timeoutId && clearTimeout(e.timeoutId), l.value && e.unobserve(l.value), e.disconnect());
|
|
66
|
-
}), (t, r) => {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
_: 3
|
|
85
|
-
}, 8, ["content", "disabled", "placement", "popper-style"]);
|
|
86
|
-
};
|
|
67
|
+
}), (t, r) => (u(), h(y(T), {
|
|
68
|
+
content: o.content || "",
|
|
69
|
+
disabled: !n.value || !o.content,
|
|
70
|
+
placement: o.placement,
|
|
71
|
+
"popper-style": o.popperStyle
|
|
72
|
+
}, {
|
|
73
|
+
default: w(() => [
|
|
74
|
+
b("div", {
|
|
75
|
+
ref_key: "textRef",
|
|
76
|
+
ref: l,
|
|
77
|
+
class: "auto-show-tooltip",
|
|
78
|
+
style: S({ WebkitLineClamp: o.row })
|
|
79
|
+
}, [
|
|
80
|
+
t.$slots.default ? g(t.$slots, "default", { key: 0 }, void 0, !0) : (u(), k("div", H, x(o.content || ""), 1))
|
|
81
|
+
], 4)
|
|
82
|
+
]),
|
|
83
|
+
_: 3
|
|
84
|
+
}, 8, ["content", "disabled", "placement", "popper-style"]));
|
|
87
85
|
}
|
|
88
|
-
},
|
|
86
|
+
}, B = /* @__PURE__ */ I(O, [["__scopeId", "data-v-1eb5133e"]]), W = f(B);
|
|
89
87
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
W as AutoShowTooltip,
|
|
89
|
+
W as default
|
|
92
90
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { w as D } from "./chunks/index.bCzIhWFw.js";
|
|
2
2
|
import { ref as u, computed as M, createBlock as N, openBlock as g, unref as m, withCtx as V, createElementVNode as U, createVNode as E, createElementBlock as w, createCommentVNode as k, Fragment as G, renderList as x, createTextVNode as C, toDisplayString as I, watch as O, onMounted as $ } from "vue";
|
|
3
3
|
import { emitsMap as t } from "color-star-custom-methods";
|
|
4
|
-
import { R as L, u as F, r as H, a as X, D as Y, A as j } from "./chunks/index.
|
|
5
|
-
import { M as fe, P as be } from "./chunks/index.
|
|
4
|
+
import { R as L, u as F, r as H, a as X, D as Y, A as j } from "./chunks/index.CHlFhI6c.js";
|
|
5
|
+
import { M as fe, P as be } from "./chunks/index.CHlFhI6c.js";
|
|
6
6
|
import { ElDialog as q, ElRadioGroup as W, ElRadio as z, ElButton as P } from "element-plus";
|
|
7
7
|
import { TreeShowSelect as J } from "color-star-custom-components";
|
|
8
8
|
import { g as K } from "./chunks/request.24c3shPx.js";
|
package/es/CommonTagsList.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { w as D } from "./chunks/index.bCzIhWFw.js";
|
|
2
2
|
import { computed as c, createBlock as p, openBlock as t, unref as s, withCtx as h, createElementVNode as m, createCommentVNode as _, resolveDynamicComponent as x, toDisplayString as i, createElementBlock as l, withModifiers as M, Fragment as v, renderList as g, createVNode as b, normalizeStyle as B, createTextVNode as k } from "vue";
|
|
3
3
|
import { ElTag as w, ElIcon as U, ElPopover as z } from "element-plus";
|
|
4
|
-
import { u as G } from "./chunks/i18n.
|
|
5
|
-
import { I as H, e as O, d as E, c as V, P as A, R as L, C as R, f as F } from "./chunks/config.
|
|
6
|
-
import { P as T, A as $ } from "./chunks/index.
|
|
4
|
+
import { u as G } from "./chunks/i18n.Bd7hh14j.js";
|
|
5
|
+
import { I as H, e as O, d as E, c as V, P as A, R as L, C as R, f as F } from "./chunks/config.CyAT4SUn.js";
|
|
6
|
+
import { P as T, A as $ } from "./chunks/index.CHlFhI6c.js";
|
|
7
7
|
import { _ as j } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
8
8
|
import './assets/CommonTagsList.css';const K = { class: "status-tag-content flex items-center" }, W = { class: "status-text fz-12" }, Y = {
|
|
9
9
|
__name: "StatusTag",
|
package/es/DialogContainer.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { w as
|
|
2
|
-
import { ref as s, computed as
|
|
3
|
-
import
|
|
1
|
+
import { w as C } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { ref as s, computed as b, onBeforeUnmount as B, createBlock as k, createCommentVNode as V, openBlock as O, unref as S, normalizeClass as x, withCtx as i, createElementVNode as T, renderSlot as c, nextTick as r } from "vue";
|
|
3
|
+
import { ElDialog as $ } from "element-plus";
|
|
4
|
+
import './assets/DialogContainer.css';const E = { class: "dialog-body" }, N = {
|
|
4
5
|
__name: "DialogContainer",
|
|
5
6
|
props: {
|
|
6
7
|
// 弹框宽度
|
|
@@ -50,60 +51,57 @@ import './assets/DialogContainer.css';const N = { class: "dialog-body" }, R = {
|
|
|
50
51
|
});
|
|
51
52
|
}, g = () => {
|
|
52
53
|
n.value = !1;
|
|
53
|
-
}, p =
|
|
54
|
+
}, p = b(() => "dialog-container " + u.customClass), h = () => {
|
|
54
55
|
t("open");
|
|
55
|
-
},
|
|
56
|
+
}, v = () => {
|
|
56
57
|
t("opened");
|
|
57
|
-
}, y = () => {
|
|
58
|
-
t("close");
|
|
59
58
|
}, D = () => {
|
|
59
|
+
t("close");
|
|
60
|
+
}, y = () => {
|
|
60
61
|
t("closed"), r(() => {
|
|
61
62
|
a.value = !1;
|
|
62
63
|
});
|
|
63
64
|
};
|
|
64
|
-
return
|
|
65
|
+
return B(() => {
|
|
65
66
|
a.value = !1;
|
|
66
67
|
}), o({
|
|
67
68
|
showDialog: m,
|
|
68
69
|
hideDialog: g
|
|
69
|
-
}), (d, f) => {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
_: 3
|
|
103
|
-
}, 8, ["modelValue", "width", "title", "modal", "show-close", "destroy-on-close", "class", "draggable"])) : S("", !0);
|
|
104
|
-
};
|
|
70
|
+
}), (d, f) => a.value ? (O(), k(S($), {
|
|
71
|
+
key: 0,
|
|
72
|
+
ref: "Dialog",
|
|
73
|
+
modelValue: n.value,
|
|
74
|
+
"onUpdate:modelValue": f[0] || (f[0] = (w) => n.value = w),
|
|
75
|
+
width: e.width,
|
|
76
|
+
title: e.title,
|
|
77
|
+
"append-to-body": "",
|
|
78
|
+
modal: e.modal,
|
|
79
|
+
"close-on-click-modal": !1,
|
|
80
|
+
"close-on-press-escape": !1,
|
|
81
|
+
"show-close": e.closable,
|
|
82
|
+
"destroy-on-close": e.destroyOnclose,
|
|
83
|
+
class: x(p.value),
|
|
84
|
+
draggable: e.draggable,
|
|
85
|
+
onOpen: h,
|
|
86
|
+
onOpened: v,
|
|
87
|
+
onClose: D,
|
|
88
|
+
onClosed: y
|
|
89
|
+
}, {
|
|
90
|
+
header: i(() => [
|
|
91
|
+
c(d.$slots, "title")
|
|
92
|
+
]),
|
|
93
|
+
footer: i(() => [
|
|
94
|
+
c(d.$slots, "footer")
|
|
95
|
+
]),
|
|
96
|
+
default: i(() => [
|
|
97
|
+
T("div", E, [
|
|
98
|
+
c(d.$slots, "default")
|
|
99
|
+
])
|
|
100
|
+
]),
|
|
101
|
+
_: 3
|
|
102
|
+
}, 8, ["modelValue", "width", "title", "modal", "show-close", "destroy-on-close", "class", "draggable"])) : V("", !0);
|
|
105
103
|
}
|
|
106
|
-
},
|
|
104
|
+
}, F = (e = s(!1)) => {
|
|
107
105
|
const o = s(null), l = s(null);
|
|
108
106
|
return {
|
|
109
107
|
dialogRef: o,
|
|
@@ -122,9 +120,9 @@ import './assets/DialogContainer.css';const N = { class: "dialog-body" }, R = {
|
|
|
122
120
|
});
|
|
123
121
|
}
|
|
124
122
|
};
|
|
125
|
-
},
|
|
123
|
+
}, I = C(N);
|
|
126
124
|
export {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
125
|
+
I as DialogContainer,
|
|
126
|
+
I as default,
|
|
127
|
+
F as useDialog
|
|
130
128
|
};
|
package/es/FileUploader.mjs
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { w as
|
|
2
|
-
import { ref as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { w as N } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { ref as U, computed as P, resolveComponent as _, resolveDirective as B, createElementBlock as x, openBlock as c, normalizeStyle as K, normalizeClass as S, withDirectives as D, createBlock as m, unref as n, withCtx as d, createCommentVNode as p, createElementVNode as f, renderSlot as R, resolveDynamicComponent as j, createVNode as T, createTextVNode as C, toDisplayString as u } from "vue";
|
|
3
|
+
import { ElMessage as I, ElUpload as z, ElIcon as O, ElButton as $ } from "element-plus";
|
|
4
|
+
import { u as w } from "./chunks/i18n.Bd7hh14j.js";
|
|
5
5
|
import { g as X } from "./chunks/request.24c3shPx.js";
|
|
6
6
|
import './assets/FileUploader.css';const V = (t) => {
|
|
7
|
-
const e = /\.([^.]+)$/,
|
|
8
|
-
return
|
|
9
|
-
}, G = (t, e,
|
|
10
|
-
const { t: a } =
|
|
11
|
-
let
|
|
12
|
-
const
|
|
13
|
-
if (console.log(t.name,
|
|
14
|
-
const
|
|
15
|
-
|
|
7
|
+
const e = /\.([^.]+)$/, o = t.match(e);
|
|
8
|
+
return o ? o[1] : null;
|
|
9
|
+
}, G = (t, e, o) => {
|
|
10
|
+
const { t: a } = w();
|
|
11
|
+
let l = !0;
|
|
12
|
+
const r = t.name && t.name.toLowerCase();
|
|
13
|
+
if (console.log(t.name, r, "fileName"), e && e.indexOf(V(r)) === -1) {
|
|
14
|
+
const s = a("COMPONENTS.UPLOAD_TYPE_TIP", { type: e });
|
|
15
|
+
I({
|
|
16
16
|
type: "warning",
|
|
17
|
-
message:
|
|
18
|
-
}),
|
|
17
|
+
message: s
|
|
18
|
+
}), l = !1;
|
|
19
19
|
}
|
|
20
|
-
if (t.size > 1024 * 1024 *
|
|
21
|
-
const
|
|
22
|
-
|
|
20
|
+
if (t.size > 1024 * 1024 * o) {
|
|
21
|
+
const s = a("COMPONENTS.UPLOAD_SIZE_TIP", { size: o });
|
|
22
|
+
I.warning(s), l = !1;
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return l;
|
|
25
25
|
}, ce = (t) => {
|
|
26
|
-
const { t: e } =
|
|
27
|
-
let
|
|
28
|
-
const
|
|
29
|
-
return
|
|
26
|
+
const { t: e } = w();
|
|
27
|
+
let o = t.toLowerCase(), a = "", l = "";
|
|
28
|
+
const r = e("WORKFLOW_COM.TIP_TEXT_3");
|
|
29
|
+
return o.includes("file") ? (l = "jpg、jpeg、png、webp、doc、docx、ppt、pptx、pdf、txt、xls、xlsx、csv、mp4、mkv、webm、ts、avi、mov、flv、3gp、ogv、mp3、wav、aac、flac、ogg", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: l })) : o.includes("image") ? (l = "jpg、jpeg、png、webp", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: l })) : o.includes("doc") ? (l = "doc、docx", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: l })) : o.includes("ppt") ? (l = "ppt、pptx", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: l })) : o.includes("pdf") ? (l = "pdf", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: l })) : o.includes("txt") ? (l = "txt", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: l })) : o.includes("excel") ? (l = "xls、xlsx、csv", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: l })) : o.includes("audio") ? (l = "mp3、wav、aac、flac、ogg", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: l })) : o.includes("video") && (l = "mp4、mkv、webm、ts、avi、mov、flv、3gp、ogv", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: l })), a + r;
|
|
30
30
|
}, ie = (t) => {
|
|
31
31
|
let e = t.toLowerCase();
|
|
32
32
|
if (e.includes("file"))
|
|
@@ -53,15 +53,15 @@ import './assets/FileUploader.css';const V = (t) => {
|
|
|
53
53
|
}, q = () => {
|
|
54
54
|
const { $request: t, $env: e } = X();
|
|
55
55
|
return {
|
|
56
|
-
commonUpload: (
|
|
56
|
+
commonUpload: (o, a = "common") => t({
|
|
57
57
|
method: "post",
|
|
58
58
|
url: `${e.VITE_APP_AIBOX_BASE_URL}/api/v1/common/file/upload?type=${a}`,
|
|
59
|
-
data:
|
|
59
|
+
data: o,
|
|
60
60
|
dataType: "formData",
|
|
61
61
|
skipCamelToKebab: !0
|
|
62
62
|
})
|
|
63
63
|
};
|
|
64
|
-
},
|
|
64
|
+
}, g = {
|
|
65
65
|
卡片: "Card",
|
|
66
66
|
按钮: "Button",
|
|
67
67
|
面板: "Panel",
|
|
@@ -115,7 +115,7 @@ import './assets/FileUploader.css';const V = (t) => {
|
|
|
115
115
|
},
|
|
116
116
|
emits: ["on-success"],
|
|
117
117
|
setup(t, { emit: e }) {
|
|
118
|
-
const { t:
|
|
118
|
+
const { t: o } = w(), a = U(!1), l = U(null), { commonUpload: r } = q(), s = t, M = e, E = {
|
|
119
119
|
plugin: "Plugin",
|
|
120
120
|
agent: "WorkflowIcon1",
|
|
121
121
|
dialogue: "WorkflowIcon3",
|
|
@@ -124,129 +124,129 @@ import './assets/FileUploader.css';const V = (t) => {
|
|
|
124
124
|
space: "Space",
|
|
125
125
|
"my-space": "MySpace",
|
|
126
126
|
mcp: "McpIcon"
|
|
127
|
-
},
|
|
127
|
+
}, F = P(() => ({
|
|
128
128
|
Card: "card-uploader",
|
|
129
129
|
Button: "button-uploader",
|
|
130
130
|
Panel: "panel-uploader"
|
|
131
|
-
})[
|
|
132
|
-
if (G(i,
|
|
133
|
-
if (
|
|
131
|
+
})[s.uploadType]), v = P(() => s.defaultUploadIcon ? E[s.defaultUploadIcon] : ""), W = async (i) => {
|
|
132
|
+
if (G(i, s.acceptType, s.limitSize))
|
|
133
|
+
if (s.isMiio) {
|
|
134
134
|
a.value = !0;
|
|
135
|
-
const { data:
|
|
135
|
+
const { data: y } = await r(
|
|
136
136
|
{
|
|
137
137
|
file: i.raw
|
|
138
138
|
},
|
|
139
|
-
|
|
139
|
+
s.businessType
|
|
140
140
|
).finally(() => {
|
|
141
141
|
a.value = !1;
|
|
142
142
|
});
|
|
143
|
-
console.log(
|
|
143
|
+
console.log(y, "data"), M("on-success", y);
|
|
144
144
|
} else
|
|
145
|
-
|
|
145
|
+
M("on-success", i);
|
|
146
146
|
else
|
|
147
|
-
|
|
147
|
+
l.value.handleRemove(i);
|
|
148
148
|
};
|
|
149
|
-
return (i,
|
|
150
|
-
const
|
|
151
|
-
return c(),
|
|
149
|
+
return (i, A) => {
|
|
150
|
+
const y = _("IconEdit2"), b = _("IconAdd"), h = _("IconUpload2"), k = _("File"), L = B("loading");
|
|
151
|
+
return c(), x("div", {
|
|
152
152
|
class: S(["file-uploader", t.defaultUploadIcon]),
|
|
153
|
-
style:
|
|
153
|
+
style: K({
|
|
154
154
|
border: !t.defaultUploadIcon && t.uploadType === "Card" ? "1px dashed var(--el-border-color)" : "none",
|
|
155
155
|
"border-radius": !t.defaultUploadIcon && t.uploadType === "Card" ? "8px" : "0",
|
|
156
156
|
"background-image": v.value ? `url('${v.value}')` : "none"
|
|
157
157
|
})
|
|
158
158
|
}, [
|
|
159
|
-
|
|
159
|
+
D((c(), m(n(z), {
|
|
160
160
|
ref_key: "uploader",
|
|
161
|
-
ref:
|
|
162
|
-
class: S(
|
|
161
|
+
ref: l,
|
|
162
|
+
class: S(F.value),
|
|
163
163
|
action: "",
|
|
164
164
|
"auto-upload": !1,
|
|
165
165
|
limit: t.limitCount,
|
|
166
166
|
"show-file-list": !1,
|
|
167
167
|
accept: t.acceptType,
|
|
168
168
|
multiple: t.multiple,
|
|
169
|
-
drag: t.uploadType ===
|
|
170
|
-
"on-change":
|
|
169
|
+
drag: t.uploadType === n(g).面板,
|
|
170
|
+
"on-change": W
|
|
171
171
|
}, {
|
|
172
|
-
default:
|
|
173
|
-
v.value ? (c(),
|
|
172
|
+
default: d(() => [
|
|
173
|
+
v.value ? (c(), m(n(O), {
|
|
174
174
|
key: 0,
|
|
175
175
|
size: "64",
|
|
176
176
|
class: "absolute"
|
|
177
177
|
}, {
|
|
178
|
-
default:
|
|
179
|
-
(c(),
|
|
178
|
+
default: d(() => [
|
|
179
|
+
(c(), m(j(v.value)))
|
|
180
180
|
]),
|
|
181
181
|
_: 1
|
|
182
|
-
})) :
|
|
183
|
-
|
|
184
|
-
|
|
182
|
+
})) : p("", !0),
|
|
183
|
+
f("div", Y, [
|
|
184
|
+
T(n(O), {
|
|
185
185
|
color: "#fff",
|
|
186
186
|
size: "16px"
|
|
187
187
|
}, {
|
|
188
|
-
default:
|
|
189
|
-
|
|
188
|
+
default: d(() => [
|
|
189
|
+
T(y)
|
|
190
190
|
]),
|
|
191
191
|
_: 1
|
|
192
192
|
})
|
|
193
193
|
]),
|
|
194
|
-
t.uploadType ===
|
|
194
|
+
t.uploadType === n(g).卡片 ? (c(), m(n(O), {
|
|
195
195
|
key: 1,
|
|
196
196
|
class: "card-uploader__icon"
|
|
197
197
|
}, {
|
|
198
|
-
default:
|
|
199
|
-
t.defaultUploadIcon ?
|
|
200
|
-
|
|
198
|
+
default: d(() => [
|
|
199
|
+
t.defaultUploadIcon ? p("", !0) : (c(), m(b, { key: 0 })),
|
|
200
|
+
R(i.$slots, "text-slot")
|
|
201
201
|
]),
|
|
202
202
|
_: 3
|
|
203
|
-
})) :
|
|
204
|
-
t.uploadType ===
|
|
203
|
+
})) : p("", !0),
|
|
204
|
+
t.uploadType === n(g).按钮 ? (c(), m(n($), {
|
|
205
205
|
key: 2,
|
|
206
206
|
type: "primary"
|
|
207
207
|
}, {
|
|
208
|
-
default:
|
|
209
|
-
|
|
210
|
-
default:
|
|
211
|
-
|
|
208
|
+
default: d(() => [
|
|
209
|
+
T(n(O), { style: { "margin-right": "5px" } }, {
|
|
210
|
+
default: d(() => [
|
|
211
|
+
T(h)
|
|
212
212
|
]),
|
|
213
213
|
_: 1
|
|
214
214
|
}),
|
|
215
|
-
|
|
215
|
+
C(" " + u(n(o)("COMMON_BUTTON.UPLOAD_TEXT")), 1)
|
|
216
216
|
]),
|
|
217
217
|
_: 1
|
|
218
|
-
})) :
|
|
219
|
-
t.uploadType ===
|
|
220
|
-
|
|
221
|
-
default:
|
|
222
|
-
|
|
218
|
+
})) : p("", !0),
|
|
219
|
+
t.uploadType === n(g).面板 ? (c(), x("div", Z, [
|
|
220
|
+
T(n(O), { size: "48px" }, {
|
|
221
|
+
default: d(() => [
|
|
222
|
+
T(k)
|
|
223
223
|
]),
|
|
224
224
|
_: 1
|
|
225
225
|
}),
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
226
|
+
f("div", H, [
|
|
227
|
+
f("div", J, [
|
|
228
|
+
f("span", null, u(n(o)("COMMON_BUTTON.CLICK_TEXT")), 1),
|
|
229
|
+
C(" " + u(n(o)("COMMON_BUTTON.OR_TEXT")) + " ", 1),
|
|
230
|
+
f("span", null, u(n(o)("COMMON_BUTTON.DRAG_TEXT")), 1),
|
|
231
|
+
C(" " + u(n(o)("COMMON_BUTTON.FILE_UPLOAD_TEXT")), 1)
|
|
232
232
|
]),
|
|
233
|
-
t.warnTips2 ? (c(),
|
|
234
|
-
|
|
233
|
+
t.warnTips2 ? (c(), x("div", Q, u(t.warnTips2), 1)) : p("", !0),
|
|
234
|
+
f("div", ee, u(t.warnTips), 1)
|
|
235
235
|
])
|
|
236
|
-
])) :
|
|
237
|
-
t.uploadType ===
|
|
236
|
+
])) : p("", !0),
|
|
237
|
+
t.uploadType === n(g).自定义 ? R(i.$slots, "upload-box", { key: 4 }) : p("", !0)
|
|
238
238
|
]),
|
|
239
239
|
_: 3
|
|
240
240
|
}, 8, ["class", "limit", "accept", "multiple", "drag"])), [
|
|
241
|
-
[
|
|
241
|
+
[L, a.value]
|
|
242
242
|
])
|
|
243
243
|
], 6);
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
-
}, pe =
|
|
246
|
+
}, pe = N(te);
|
|
247
247
|
export {
|
|
248
248
|
pe as FileUploader,
|
|
249
|
-
|
|
249
|
+
g as UploadTypesEnum,
|
|
250
250
|
pe as default,
|
|
251
251
|
de as extractAndLowerCaseArrayType,
|
|
252
252
|
ie as getAcceptType,
|