sand-components-vben 2.7.112 → 2.7.113
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/sand-components-vben.js
CHANGED
|
@@ -37045,7 +37045,7 @@ const j9e = /* @__PURE__ */ dB(J9e), z9e = { class: "group-box" }, W9e = {
|
|
|
37045
37045
|
type: Number,
|
|
37046
37046
|
default: 1
|
|
37047
37047
|
},
|
|
37048
|
-
//
|
|
37048
|
+
// 上传文件大小
|
|
37049
37049
|
size: {
|
|
37050
37050
|
type: Number,
|
|
37051
37051
|
default: 0
|
|
@@ -37079,94 +37079,87 @@ const j9e = /* @__PURE__ */ dB(J9e), z9e = { class: "group-box" }, W9e = {
|
|
|
37079
37079
|
multiple: {
|
|
37080
37080
|
type: Boolean,
|
|
37081
37081
|
default: !1
|
|
37082
|
-
},
|
|
37083
|
-
// 回显改版的文件上传
|
|
37084
|
-
fileValue: {
|
|
37085
|
-
type: Array,
|
|
37086
|
-
default: () => []
|
|
37087
37082
|
}
|
|
37088
37083
|
},
|
|
37089
|
-
emits: ["update:value", "update:previewPath"
|
|
37090
|
-
setup(e, {
|
|
37091
|
-
const
|
|
37084
|
+
emits: ["update:value", "update:previewPath"],
|
|
37085
|
+
setup(e, { emit: t }) {
|
|
37086
|
+
const n = t, r = na("handleGetExtraData"), i = e, o = Jt({
|
|
37092
37087
|
fileList: [],
|
|
37093
37088
|
flag: !1
|
|
37094
37089
|
});
|
|
37095
|
-
let { fileList:
|
|
37096
|
-
const
|
|
37097
|
-
|
|
37098
|
-
let
|
|
37099
|
-
|
|
37100
|
-
},
|
|
37101
|
-
$e(
|
|
37102
|
-
if (!
|
|
37103
|
-
|
|
37090
|
+
let { fileList: a, flag: s } = ln(o);
|
|
37091
|
+
const l = (p) => {
|
|
37092
|
+
a.value.splice(p, 1);
|
|
37093
|
+
let f = a.value.map((g) => g.id).join(",");
|
|
37094
|
+
n("update:value", f);
|
|
37095
|
+
}, c = ue(() => i.value);
|
|
37096
|
+
$e(c, (p) => {
|
|
37097
|
+
if (!p) {
|
|
37098
|
+
a.value = [];
|
|
37104
37099
|
return;
|
|
37105
37100
|
}
|
|
37106
37101
|
});
|
|
37107
|
-
const
|
|
37108
|
-
|
|
37109
|
-
let
|
|
37110
|
-
|
|
37102
|
+
const u = (p) => {
|
|
37103
|
+
a.value.push(...p);
|
|
37104
|
+
let f = a.value.map((g) => g.id).join(",");
|
|
37105
|
+
n("update:value", f), r && r(p);
|
|
37111
37106
|
};
|
|
37112
37107
|
$e(
|
|
37113
|
-
|
|
37114
|
-
async (
|
|
37115
|
-
if (
|
|
37116
|
-
if (!
|
|
37117
|
-
|
|
37108
|
+
c,
|
|
37109
|
+
async (p) => {
|
|
37110
|
+
if (s.value) return;
|
|
37111
|
+
if (!p) {
|
|
37112
|
+
a.value = [];
|
|
37118
37113
|
return;
|
|
37119
37114
|
}
|
|
37120
|
-
const
|
|
37121
|
-
|
|
37115
|
+
const g = await Aae({ fileIds: p });
|
|
37116
|
+
a.value = g, s.value = !0;
|
|
37122
37117
|
},
|
|
37123
37118
|
{
|
|
37124
37119
|
immediate: !0
|
|
37125
37120
|
}
|
|
37126
37121
|
);
|
|
37127
|
-
const
|
|
37128
|
-
vae({ url:
|
|
37122
|
+
const d = (p) => {
|
|
37123
|
+
vae({ url: p });
|
|
37129
37124
|
};
|
|
37130
|
-
return
|
|
37131
|
-
|
|
37132
|
-
}), (f, g) => {
|
|
37133
|
-
const h = Ie("a-empty"), m = Ie("a-button"), S = Ie("a-alert"), E = Ie("a-popover");
|
|
37125
|
+
return (p, f) => {
|
|
37126
|
+
const g = Ie("a-empty"), h = Ie("a-button"), m = Ie("a-alert"), S = Ie("a-popover");
|
|
37134
37127
|
return q(), ee(ft, null, [
|
|
37135
|
-
Q(
|
|
37128
|
+
Q(S, { placement: "top" }, {
|
|
37136
37129
|
content: pe(() => [
|
|
37137
37130
|
P("div", iQe, [
|
|
37138
|
-
V(
|
|
37131
|
+
V(a).length ? (q(!0), ee(ft, { key: 1 }, Fn(V(a), (E, A) => (q(), ee("div", {
|
|
37139
37132
|
class: "file-item",
|
|
37140
|
-
key:
|
|
37133
|
+
key: A
|
|
37141
37134
|
}, [
|
|
37142
|
-
Q(
|
|
37135
|
+
Q(h, {
|
|
37143
37136
|
class: "file-name-btn",
|
|
37144
37137
|
type: "link",
|
|
37145
37138
|
size: "small",
|
|
37146
|
-
onClick: (
|
|
37139
|
+
onClick: (v) => d(E.downloadPath)
|
|
37147
37140
|
}, {
|
|
37148
37141
|
default: pe(() => [
|
|
37149
|
-
P("span", oQe, Re(
|
|
37142
|
+
P("span", oQe, Re(E.originalName), 1)
|
|
37150
37143
|
]),
|
|
37151
37144
|
_: 2
|
|
37152
37145
|
}, 1032, ["onClick"]),
|
|
37153
|
-
Q(
|
|
37146
|
+
Q(h, {
|
|
37154
37147
|
style: { "margin-left": "15px" },
|
|
37155
37148
|
type: "primary",
|
|
37156
37149
|
danger: "",
|
|
37157
37150
|
size: "small",
|
|
37158
|
-
onClick: (
|
|
37151
|
+
onClick: (v) => l(A)
|
|
37159
37152
|
}, {
|
|
37160
|
-
default: pe(() =>
|
|
37153
|
+
default: pe(() => f[0] || (f[0] = [
|
|
37161
37154
|
_e("删除")
|
|
37162
37155
|
])),
|
|
37163
37156
|
_: 2
|
|
37164
37157
|
}, 1032, ["onClick"])
|
|
37165
|
-
]))), 128)) : (q(), Je(
|
|
37158
|
+
]))), 128)) : (q(), Je(g, {
|
|
37166
37159
|
key: 0,
|
|
37167
37160
|
description: "暂无上传文件"
|
|
37168
37161
|
})),
|
|
37169
|
-
e.placeholder ? (q(), Je(
|
|
37162
|
+
e.placeholder ? (q(), Je(m, {
|
|
37170
37163
|
key: 2,
|
|
37171
37164
|
style: { "margin-top": "10px" },
|
|
37172
37165
|
message: e.placeholder,
|
|
@@ -37174,7 +37167,7 @@ const j9e = /* @__PURE__ */ dB(J9e), z9e = { class: "group-box" }, W9e = {
|
|
|
37174
37167
|
}, null, 8, ["message"])) : we("", !0)
|
|
37175
37168
|
])
|
|
37176
37169
|
]),
|
|
37177
|
-
title: pe(() =>
|
|
37170
|
+
title: pe(() => f[1] || (f[1] = [
|
|
37178
37171
|
P("span", null, "文件列表", -1)
|
|
37179
37172
|
])),
|
|
37180
37173
|
default: pe(() => [
|
|
@@ -37188,12 +37181,12 @@ const j9e = /* @__PURE__ */ dB(J9e), z9e = { class: "group-box" }, W9e = {
|
|
|
37188
37181
|
fileType: e.fileType,
|
|
37189
37182
|
multiple: e.multiple,
|
|
37190
37183
|
url: e.url,
|
|
37191
|
-
onChange:
|
|
37184
|
+
onChange: u
|
|
37192
37185
|
}, {
|
|
37193
37186
|
default: pe(() => [
|
|
37194
|
-
Q(
|
|
37187
|
+
Q(h, {
|
|
37195
37188
|
type: "primary",
|
|
37196
|
-
disabled: V(
|
|
37189
|
+
disabled: V(a).length >= e.limit,
|
|
37197
37190
|
style: Ht(`width:${parseInt(e.width + "")}px`)
|
|
37198
37191
|
}, {
|
|
37199
37192
|
default: pe(() => [
|
|
@@ -37210,33 +37203,33 @@ const j9e = /* @__PURE__ */ dB(J9e), z9e = { class: "group-box" }, W9e = {
|
|
|
37210
37203
|
}),
|
|
37211
37204
|
P("div", aQe, [
|
|
37212
37205
|
e.showFileList ? (q(), ee("div", sQe, [
|
|
37213
|
-
V(
|
|
37206
|
+
V(a).length ? (q(!0), ee(ft, { key: 1 }, Fn(V(a), (E, A) => (q(), ee("div", {
|
|
37214
37207
|
class: "uploaded-file-item",
|
|
37215
|
-
key:
|
|
37208
|
+
key: A
|
|
37216
37209
|
}, [
|
|
37217
|
-
Q(
|
|
37210
|
+
Q(h, {
|
|
37218
37211
|
class: "file-name-link",
|
|
37219
37212
|
type: "link",
|
|
37220
37213
|
size: "small",
|
|
37221
|
-
onClick: (
|
|
37214
|
+
onClick: (v) => d(E.downloadPath)
|
|
37222
37215
|
}, {
|
|
37223
37216
|
default: pe(() => [
|
|
37224
|
-
P("span", lQe, Re(
|
|
37217
|
+
P("span", lQe, Re(E.originalName), 1)
|
|
37225
37218
|
]),
|
|
37226
37219
|
_: 2
|
|
37227
37220
|
}, 1032, ["onClick"]),
|
|
37228
|
-
Q(
|
|
37221
|
+
Q(h, {
|
|
37229
37222
|
type: "primary",
|
|
37230
37223
|
danger: "",
|
|
37231
37224
|
size: "small",
|
|
37232
|
-
onClick: (
|
|
37225
|
+
onClick: (v) => l(A)
|
|
37233
37226
|
}, {
|
|
37234
|
-
default: pe(() =>
|
|
37227
|
+
default: pe(() => f[2] || (f[2] = [
|
|
37235
37228
|
_e(" 删除 ")
|
|
37236
37229
|
])),
|
|
37237
37230
|
_: 2
|
|
37238
37231
|
}, 1032, ["onClick"])
|
|
37239
|
-
]))), 128)) : (q(), Je(
|
|
37232
|
+
]))), 128)) : (q(), Je(g, {
|
|
37240
37233
|
key: 0,
|
|
37241
37234
|
description: "暂无文件"
|
|
37242
37235
|
}))
|
|
@@ -37245,7 +37238,7 @@ const j9e = /* @__PURE__ */ dB(J9e), z9e = { class: "group-box" }, W9e = {
|
|
|
37245
37238
|
], 64);
|
|
37246
37239
|
};
|
|
37247
37240
|
}
|
|
37248
|
-
}), uQe = /* @__PURE__ */ _t(cQe, [["__scopeId", "data-v-
|
|
37241
|
+
}), uQe = /* @__PURE__ */ _t(cQe, [["__scopeId", "data-v-fc7e151b"]]), dQe = { class: "upload-image" }, pQe = ["onClick"], fQe = { class: "upload-add-top" }, gQe = { class: "desc" }, mQe = /* @__PURE__ */ it({
|
|
37249
37242
|
__name: "UploadImage",
|
|
37250
37243
|
props: {
|
|
37251
37244
|
value: {
|