china-mobile-international-custom-components 0.0.40 → 0.0.42
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 +92 -0
- package/es/AvailableRangePreview.mjs +1 -1
- package/es/AvailableRangeSetting.mjs +266 -11
- package/es/CommonTagsList.mjs +200 -0
- package/es/DialogContainer.mjs +130 -0
- package/es/FileUploader.mjs +255 -0
- package/es/ParameterTable.mjs +2303 -0
- package/es/SourcePublish.mjs +471 -820
- package/es/Table.mjs +6 -6
- package/es/assets/AutoShowTooltip.css +1 -0
- package/es/assets/AvailableRangeSetting.css +1 -0
- package/es/assets/BackBar.css +1 -1
- package/es/assets/CommonTagsList.css +1 -0
- package/es/assets/DialogContainer.css +1 -0
- package/es/assets/FileUploader.css +1 -0
- package/es/assets/ParameterTable.css +1 -0
- package/es/assets/SourcePublish.css +1 -1
- package/es/assets/index2.css +1 -1
- package/es/chunks/BackBar.DY42HcZy.js +601 -0
- package/es/chunks/{BackBar.DwhmSL-a.js → BackBar.zjPh_z_w.js} +96 -96
- package/es/chunks/config.JrGX09T5.js +435 -0
- package/es/chunks/{i18n.DUrvNBQz.js → i18n.CfMhDOdX.js} +8 -8
- package/es/chunks/index.D1cu8OUn.js +260 -0
- package/es/chunks/index.DENagLDS.js +313 -0
- package/es/chunks/index.DjDvyGXt.js +313 -0
- package/es/chunks/request.24c3shPx.js +5 -0
- package/es/index.mjs +184 -130
- package/lib/ApplicationTypeTag.js +1 -1
- package/lib/AutoShowTooltip.js +1 -0
- package/lib/AvailableRangePreview.js +1 -1
- package/lib/AvailableRangeSetting.js +1 -1
- package/lib/CommonTagsList.js +1 -0
- package/lib/DialogContainer.js +1 -0
- package/lib/FileUploader.js +1 -0
- package/lib/ParameterTable.js +1 -0
- package/lib/SourcePublish.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/assets/AutoShowTooltip.css +1 -0
- package/lib/assets/AvailableRangeSetting.css +1 -0
- package/lib/assets/BackBar.css +1 -1
- package/lib/assets/CommonTagsList.css +1 -0
- package/lib/assets/DialogContainer.css +1 -0
- package/lib/assets/FileUploader.css +1 -0
- package/lib/assets/ParameterTable.css +1 -0
- package/lib/assets/SourcePublish.css +1 -1
- package/lib/assets/index2.css +1 -1
- package/lib/chunks/BackBar.BL8repFN.js +1 -0
- package/lib/chunks/BackBar.By7ouDgL.js +1 -0
- package/lib/chunks/config.CL0cmPQ6.js +1 -0
- package/lib/chunks/index.5Su4CrC-.js +1 -0
- package/lib/chunks/index.B_esKpWv.js +1 -0
- package/lib/chunks/index.zQ1SfvBa.js +1 -0
- package/lib/chunks/request.D8T4MgGX.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +4 -4
- package/es/chunks/index.BcLVH95_.js +0 -4058
- package/es/chunks/index.CSPp4g5C.js +0 -303
- package/es/chunks/index.ClqvUq64.js +0 -302
- package/es/chunks/index.Dh5IGfxO.js +0 -290
- package/es/chunks/index.Doax01RQ.js +0 -254
- package/lib/chunks/BackBar.CYThcqhK.js +0 -1
- package/lib/chunks/i18n.D-d0yyXi.js +0 -6
- package/lib/chunks/index.6X8xsqRJ.js +0 -1
- package/lib/chunks/index.Bk55us0s.js +0 -1
- package/lib/chunks/index.CP9rhXZ5.js +0 -1
- package/lib/chunks/index.CSLWrMRE.js +0 -1
- package/lib/chunks/index.CV29Us4A.js +0 -6
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { w as b } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { ref as s, computed as B, onBeforeUnmount as k, resolveComponent as V, createBlock as O, createCommentVNode as S, openBlock as x, normalizeClass as T, withCtx as i, createElementVNode as $, renderSlot as c, nextTick as r } from "vue";
|
|
3
|
+
import './assets/DialogContainer.css';const N = { class: "dialog-body" }, R = {
|
|
4
|
+
__name: "DialogContainer",
|
|
5
|
+
props: {
|
|
6
|
+
// 弹框宽度
|
|
7
|
+
width: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: "720px"
|
|
10
|
+
},
|
|
11
|
+
// 弹框标题
|
|
12
|
+
title: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
},
|
|
16
|
+
// 是否显示关闭按钮|是否esc和点击遮罩关闭
|
|
17
|
+
closable: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0
|
|
20
|
+
},
|
|
21
|
+
// 是否显示关闭销毁
|
|
22
|
+
destroyOnclose: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
// 自定义类名
|
|
27
|
+
customClass: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: ""
|
|
30
|
+
},
|
|
31
|
+
// 拖动
|
|
32
|
+
draggable: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: !0
|
|
35
|
+
},
|
|
36
|
+
// appendTo: {
|
|
37
|
+
// type: String,
|
|
38
|
+
// default: '#layout-wrap__left'
|
|
39
|
+
// },
|
|
40
|
+
modal: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !0
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
emits: ["open", "opened", "close", "closed"],
|
|
46
|
+
setup(e, { expose: o, emit: l }) {
|
|
47
|
+
const t = l, u = e, a = s(!1), n = s(!1), m = () => {
|
|
48
|
+
a.value = !0, r(() => {
|
|
49
|
+
n.value = !0;
|
|
50
|
+
});
|
|
51
|
+
}, g = () => {
|
|
52
|
+
n.value = !1;
|
|
53
|
+
}, p = B(() => "dialog-container " + u.customClass), v = () => {
|
|
54
|
+
t("open");
|
|
55
|
+
}, h = () => {
|
|
56
|
+
t("opened");
|
|
57
|
+
}, y = () => {
|
|
58
|
+
t("close");
|
|
59
|
+
}, D = () => {
|
|
60
|
+
t("closed"), r(() => {
|
|
61
|
+
a.value = !1;
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
return k(() => {
|
|
65
|
+
a.value = !1;
|
|
66
|
+
}), o({
|
|
67
|
+
showDialog: m,
|
|
68
|
+
hideDialog: g
|
|
69
|
+
}), (d, f) => {
|
|
70
|
+
const w = V("el-dialog");
|
|
71
|
+
return a.value ? (x(), O(w, {
|
|
72
|
+
key: 0,
|
|
73
|
+
ref: "Dialog",
|
|
74
|
+
modelValue: n.value,
|
|
75
|
+
"onUpdate:modelValue": f[0] || (f[0] = (C) => n.value = C),
|
|
76
|
+
width: e.width,
|
|
77
|
+
title: e.title,
|
|
78
|
+
"append-to-body": "",
|
|
79
|
+
modal: e.modal,
|
|
80
|
+
"close-on-click-modal": !1,
|
|
81
|
+
"close-on-press-escape": !1,
|
|
82
|
+
"show-close": e.closable,
|
|
83
|
+
"destroy-on-close": e.destroyOnclose,
|
|
84
|
+
class: T(p.value),
|
|
85
|
+
draggable: e.draggable,
|
|
86
|
+
onOpen: v,
|
|
87
|
+
onOpened: h,
|
|
88
|
+
onClose: y,
|
|
89
|
+
onClosed: D
|
|
90
|
+
}, {
|
|
91
|
+
header: i(() => [
|
|
92
|
+
c(d.$slots, "title")
|
|
93
|
+
]),
|
|
94
|
+
footer: i(() => [
|
|
95
|
+
c(d.$slots, "footer")
|
|
96
|
+
]),
|
|
97
|
+
default: i(() => [
|
|
98
|
+
$("div", N, [
|
|
99
|
+
c(d.$slots, "default")
|
|
100
|
+
])
|
|
101
|
+
]),
|
|
102
|
+
_: 3
|
|
103
|
+
}, 8, ["modelValue", "width", "title", "modal", "show-close", "destroy-on-close", "class", "draggable"])) : S("", !0);
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
}, E = (e = s(!1)) => {
|
|
107
|
+
const o = s(null), l = s(null);
|
|
108
|
+
return {
|
|
109
|
+
dialogRef: o,
|
|
110
|
+
//弹窗的ref必须为dialogRef
|
|
111
|
+
formRef: l,
|
|
112
|
+
//弹窗里面含有form表单的话,ref必须为formRef
|
|
113
|
+
showDialog: () => {
|
|
114
|
+
o.value.showDialog();
|
|
115
|
+
},
|
|
116
|
+
hideDialog: () => {
|
|
117
|
+
e.value = !1, o.value.hideDialog();
|
|
118
|
+
},
|
|
119
|
+
resetDialog: () => {
|
|
120
|
+
e.value = !1, l.value && r(() => {
|
|
121
|
+
l.value.resetFields();
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
}, F = b(R);
|
|
126
|
+
export {
|
|
127
|
+
F as DialogContainer,
|
|
128
|
+
F as default,
|
|
129
|
+
E as useDialog
|
|
130
|
+
};
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { w as K } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { ref as M, computed as P, resolveComponent as p, resolveDirective as D, createElementBlock as y, openBlock as c, normalizeStyle as j, normalizeClass as S, withDirectives as z, createBlock as T, unref as s, withCtx as u, createCommentVNode as r, createElementVNode as O, renderSlot as U, resolveDynamicComponent as $, createVNode as g, createTextVNode as x, toDisplayString as m } from "vue";
|
|
3
|
+
import { u as C } from "./chunks/i18n.CfMhDOdX.js";
|
|
4
|
+
import { ElMessage as R } from "element-plus";
|
|
5
|
+
import { g as X } from "./chunks/request.24c3shPx.js";
|
|
6
|
+
import './assets/FileUploader.css';const V = (t) => {
|
|
7
|
+
const e = /\.([^.]+)$/, l = t.match(e);
|
|
8
|
+
return l ? l[1] : null;
|
|
9
|
+
}, G = (t, e, l) => {
|
|
10
|
+
const { t: a } = C();
|
|
11
|
+
let o = !0;
|
|
12
|
+
const f = t.name && t.name.toLowerCase();
|
|
13
|
+
if (console.log(t.name, f, "fileName"), e && e.indexOf(V(f)) === -1) {
|
|
14
|
+
const n = a("COMPONENTS.UPLOAD_TYPE_TIP", { type: e });
|
|
15
|
+
R({
|
|
16
|
+
type: "warning",
|
|
17
|
+
message: n
|
|
18
|
+
}), o = !1;
|
|
19
|
+
}
|
|
20
|
+
if (t.size > 1024 * 1024 * l) {
|
|
21
|
+
const n = a("COMPONENTS.UPLOAD_SIZE_TIP", { size: l });
|
|
22
|
+
R.warning(n), o = !1;
|
|
23
|
+
}
|
|
24
|
+
return o;
|
|
25
|
+
}, ce = (t) => {
|
|
26
|
+
const { t: e } = C();
|
|
27
|
+
let l = t.toLowerCase(), a = "", o = "";
|
|
28
|
+
const f = e("WORKFLOW_COM.TIP_TEXT_3");
|
|
29
|
+
return l.includes("file") ? (o = "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: o })) : l.includes("image") ? (o = "jpg、jpeg、png、webp", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: o })) : l.includes("doc") ? (o = "doc、docx", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: o })) : l.includes("ppt") ? (o = "ppt、pptx", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: o })) : l.includes("pdf") ? (o = "pdf", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: o })) : l.includes("txt") ? (o = "txt", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: o })) : l.includes("excel") ? (o = "xls、xlsx、csv", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: o })) : l.includes("audio") ? (o = "mp3、wav、aac、flac、ogg", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: o })) : l.includes("video") && (o = "mp4、mkv、webm、ts、avi、mov、flv、3gp、ogv", a = e("WORKFLOW_COM.SUPPORT_FORMATS", { formats: o })), a + f;
|
|
30
|
+
}, ie = (t) => {
|
|
31
|
+
let e = t.toLowerCase();
|
|
32
|
+
if (e.includes("file"))
|
|
33
|
+
return ".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";
|
|
34
|
+
if (e.includes("image"))
|
|
35
|
+
return ".jpg,.jpeg,.png,.webp";
|
|
36
|
+
if (e.includes("doc"))
|
|
37
|
+
return ".doc,.docx";
|
|
38
|
+
if (e.includes("ppt"))
|
|
39
|
+
return ".ppt,.pptx";
|
|
40
|
+
if (e.includes("pdf"))
|
|
41
|
+
return ".pdf";
|
|
42
|
+
if (e.includes("txt"))
|
|
43
|
+
return ".txt";
|
|
44
|
+
if (e.includes("excel"))
|
|
45
|
+
return ".xls,.xlsx,.csv";
|
|
46
|
+
if (e.includes("audio"))
|
|
47
|
+
return ".mp3,.wav,.aac,.flac,.ogg";
|
|
48
|
+
if (e.includes("video"))
|
|
49
|
+
return ".mp4,.mkv,.webm,.ts,.avi,.mov,.flv,.3gp,.ogv";
|
|
50
|
+
}, de = (t) => {
|
|
51
|
+
const e = t.match(/array(\w+)/);
|
|
52
|
+
return e && e[1] ? e[1].toLowerCase() : null;
|
|
53
|
+
}, q = () => {
|
|
54
|
+
const { $request: t, $env: e } = X();
|
|
55
|
+
return {
|
|
56
|
+
commonUpload: (l, a = "common") => t({
|
|
57
|
+
method: "post",
|
|
58
|
+
url: `${e.VITE_APP_AIBOX_BASE_URL}/api/v1/common/file/upload?type=${a}`,
|
|
59
|
+
data: l,
|
|
60
|
+
dataType: "formData",
|
|
61
|
+
skipCamelToKebab: !0
|
|
62
|
+
})
|
|
63
|
+
};
|
|
64
|
+
}, _ = {
|
|
65
|
+
卡片: "Card",
|
|
66
|
+
按钮: "Button",
|
|
67
|
+
面板: "Panel",
|
|
68
|
+
自定义: "Custom"
|
|
69
|
+
}, Y = { class: "card-uploader__mask" }, Z = { key: 3 }, H = { class: "panel-uploader__text" }, J = { class: "panel-uploader__text--tip" }, Q = {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: "panel-uploader__text--tip font-style"
|
|
72
|
+
}, ee = { class: "panel-uploader__text--tip font-style" }, te = {
|
|
73
|
+
__name: "index",
|
|
74
|
+
props: {
|
|
75
|
+
uploadType: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: "Card"
|
|
78
|
+
},
|
|
79
|
+
acceptType: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: ""
|
|
82
|
+
},
|
|
83
|
+
multiple: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: !1
|
|
86
|
+
},
|
|
87
|
+
limitCount: {
|
|
88
|
+
type: Number,
|
|
89
|
+
default: 1e3
|
|
90
|
+
},
|
|
91
|
+
limitSize: {
|
|
92
|
+
type: Number,
|
|
93
|
+
default: 8
|
|
94
|
+
},
|
|
95
|
+
warnTips: {
|
|
96
|
+
type: String,
|
|
97
|
+
default: ""
|
|
98
|
+
},
|
|
99
|
+
warnTips2: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: ""
|
|
102
|
+
},
|
|
103
|
+
isMiio: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: !0
|
|
106
|
+
},
|
|
107
|
+
businessType: {
|
|
108
|
+
type: String,
|
|
109
|
+
default: "common"
|
|
110
|
+
},
|
|
111
|
+
defaultUploadIcon: {
|
|
112
|
+
type: String,
|
|
113
|
+
default: ""
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
emits: ["on-success"],
|
|
117
|
+
setup(t, { emit: e }) {
|
|
118
|
+
const { t: l } = C(), a = M(!1), o = M(null), { commonUpload: f } = q(), n = t, w = e, I = {
|
|
119
|
+
plugin: "Plugin",
|
|
120
|
+
agent: "WorkflowIcon1",
|
|
121
|
+
dialogue: "WorkflowIcon3",
|
|
122
|
+
model: "Model",
|
|
123
|
+
workflow: "Workflow",
|
|
124
|
+
space: "Space",
|
|
125
|
+
"my-space": "MySpace",
|
|
126
|
+
mcp: "McpIcon"
|
|
127
|
+
}, b = P(() => ({
|
|
128
|
+
Card: "card-uploader",
|
|
129
|
+
Button: "button-uploader",
|
|
130
|
+
Panel: "panel-uploader"
|
|
131
|
+
})[n.uploadType]), v = P(() => n.defaultUploadIcon ? I[n.defaultUploadIcon] : ""), F = async (i) => {
|
|
132
|
+
if (G(i, n.acceptType, n.limitSize))
|
|
133
|
+
if (n.isMiio) {
|
|
134
|
+
a.value = !0;
|
|
135
|
+
const { data: d } = await f(
|
|
136
|
+
{
|
|
137
|
+
file: i.raw
|
|
138
|
+
},
|
|
139
|
+
n.businessType
|
|
140
|
+
).finally(() => {
|
|
141
|
+
a.value = !1;
|
|
142
|
+
});
|
|
143
|
+
console.log(d, "data"), w("on-success", d);
|
|
144
|
+
} else
|
|
145
|
+
w("on-success", i);
|
|
146
|
+
else
|
|
147
|
+
o.value.handleRemove(i);
|
|
148
|
+
};
|
|
149
|
+
return (i, W) => {
|
|
150
|
+
const d = p("el-icon"), A = p("IconEdit2"), h = p("IconAdd"), k = p("IconUpload2"), E = p("el-button"), L = p("File"), N = p("el-upload"), B = D("loading");
|
|
151
|
+
return c(), y("div", {
|
|
152
|
+
class: S(["file-uploader", t.defaultUploadIcon]),
|
|
153
|
+
style: j({
|
|
154
|
+
border: !t.defaultUploadIcon && t.uploadType === "Card" ? "1px dashed var(--el-border-color)" : "none",
|
|
155
|
+
"border-radius": !t.defaultUploadIcon && t.uploadType === "Card" ? "8px" : "0",
|
|
156
|
+
"background-image": v.value ? `url('${v.value}')` : "none"
|
|
157
|
+
})
|
|
158
|
+
}, [
|
|
159
|
+
z((c(), T(N, {
|
|
160
|
+
ref_key: "uploader",
|
|
161
|
+
ref: o,
|
|
162
|
+
class: S(b.value),
|
|
163
|
+
action: "",
|
|
164
|
+
"auto-upload": !1,
|
|
165
|
+
limit: t.limitCount,
|
|
166
|
+
"show-file-list": !1,
|
|
167
|
+
accept: t.acceptType,
|
|
168
|
+
multiple: t.multiple,
|
|
169
|
+
drag: t.uploadType === s(_).面板,
|
|
170
|
+
"on-change": F
|
|
171
|
+
}, {
|
|
172
|
+
default: u(() => [
|
|
173
|
+
v.value ? (c(), T(d, {
|
|
174
|
+
key: 0,
|
|
175
|
+
size: "64",
|
|
176
|
+
class: "absolute"
|
|
177
|
+
}, {
|
|
178
|
+
default: u(() => [
|
|
179
|
+
(c(), T($(v.value)))
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
})) : r("", !0),
|
|
183
|
+
O("div", Y, [
|
|
184
|
+
g(d, {
|
|
185
|
+
color: "#fff",
|
|
186
|
+
size: "16px"
|
|
187
|
+
}, {
|
|
188
|
+
default: u(() => [
|
|
189
|
+
g(A)
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
})
|
|
193
|
+
]),
|
|
194
|
+
t.uploadType === s(_).卡片 ? (c(), T(d, {
|
|
195
|
+
key: 1,
|
|
196
|
+
class: "card-uploader__icon"
|
|
197
|
+
}, {
|
|
198
|
+
default: u(() => [
|
|
199
|
+
t.defaultUploadIcon ? r("", !0) : (c(), T(h, { key: 0 })),
|
|
200
|
+
U(i.$slots, "text-slot")
|
|
201
|
+
]),
|
|
202
|
+
_: 3
|
|
203
|
+
})) : r("", !0),
|
|
204
|
+
t.uploadType === s(_).按钮 ? (c(), T(E, {
|
|
205
|
+
key: 2,
|
|
206
|
+
type: "primary"
|
|
207
|
+
}, {
|
|
208
|
+
default: u(() => [
|
|
209
|
+
g(d, { style: { "margin-right": "5px" } }, {
|
|
210
|
+
default: u(() => [
|
|
211
|
+
g(k)
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
}),
|
|
215
|
+
x(" " + m(s(l)("COMMON_BUTTON.UPLOAD_TEXT")), 1)
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
})) : r("", !0),
|
|
219
|
+
t.uploadType === s(_).面板 ? (c(), y("div", Z, [
|
|
220
|
+
g(d, { size: "48px" }, {
|
|
221
|
+
default: u(() => [
|
|
222
|
+
g(L)
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}),
|
|
226
|
+
O("div", H, [
|
|
227
|
+
O("div", J, [
|
|
228
|
+
O("span", null, m(s(l)("COMMON_BUTTON.CLICK_TEXT")), 1),
|
|
229
|
+
x(" " + m(s(l)("COMMON_BUTTON.OR_TEXT")) + " ", 1),
|
|
230
|
+
O("span", null, m(s(l)("COMMON_BUTTON.DRAG_TEXT")), 1),
|
|
231
|
+
x(" " + m(s(l)("COMMON_BUTTON.FILE_UPLOAD_TEXT")), 1)
|
|
232
|
+
]),
|
|
233
|
+
t.warnTips2 ? (c(), y("div", Q, m(t.warnTips2), 1)) : r("", !0),
|
|
234
|
+
O("div", ee, m(t.warnTips), 1)
|
|
235
|
+
])
|
|
236
|
+
])) : r("", !0),
|
|
237
|
+
t.uploadType === s(_).自定义 ? U(i.$slots, "upload-box", { key: 4 }) : r("", !0)
|
|
238
|
+
]),
|
|
239
|
+
_: 3
|
|
240
|
+
}, 8, ["class", "limit", "accept", "multiple", "drag"])), [
|
|
241
|
+
[B, a.value]
|
|
242
|
+
])
|
|
243
|
+
], 6);
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
}, pe = K(te);
|
|
247
|
+
export {
|
|
248
|
+
pe as FileUploader,
|
|
249
|
+
_ as UploadTypesEnum,
|
|
250
|
+
pe as default,
|
|
251
|
+
de as extractAndLowerCaseArrayType,
|
|
252
|
+
ie as getAcceptType,
|
|
253
|
+
ce as getWarnTips,
|
|
254
|
+
G as validateUpload
|
|
255
|
+
};
|