@yoooloo42/joker 1.0.85 → 1.0.86
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/dist/index.cjs.js +76 -76
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +76 -76
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -40918,9 +40918,9 @@ const props = __props;
|
|
|
40918
40918
|
const emit = __emit;
|
|
40919
40919
|
|
|
40920
40920
|
const myProps_box = vue.reactive(Object.assign({}, ly0default, props.myProps));
|
|
40921
|
-
const fileList_box = vue.
|
|
40921
|
+
const fileList_box = vue.ref([]);
|
|
40922
40922
|
props.modelValue.forEach((item, index) => {
|
|
40923
|
-
fileList_box.push({
|
|
40923
|
+
fileList_box.value.push({
|
|
40924
40924
|
name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
|
|
40925
40925
|
url: item,
|
|
40926
40926
|
response: {
|
|
@@ -40951,9 +40951,9 @@ const hdl = {
|
|
|
40951
40951
|
},
|
|
40952
40952
|
remove (file, fileList) { // 文件列表移除文件时的钩子
|
|
40953
40953
|
// 重置文件列表, 注意:通过使用splice保持响应性
|
|
40954
|
-
fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
40954
|
+
fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
40955
40955
|
const arr = [];
|
|
40956
|
-
fileList_box.forEach(i=>{
|
|
40956
|
+
fileList_box.value.forEach(i=>{
|
|
40957
40957
|
arr.push(i.response.data.src);
|
|
40958
40958
|
});
|
|
40959
40959
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
@@ -40961,10 +40961,10 @@ const hdl = {
|
|
|
40961
40961
|
},
|
|
40962
40962
|
success (response, file, fileList) { // 上传成功
|
|
40963
40963
|
// 重置文件列表, 注意:通过使用splice保持响应性
|
|
40964
|
-
fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
40964
|
+
fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
40965
40965
|
if (response.code === 0) {
|
|
40966
40966
|
const arr = [];
|
|
40967
|
-
fileList_box.forEach(i=>{
|
|
40967
|
+
fileList_box.value.forEach(i=>{
|
|
40968
40968
|
arr.push(i.response.data.src);
|
|
40969
40969
|
});
|
|
40970
40970
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
@@ -40977,7 +40977,7 @@ const hdl = {
|
|
|
40977
40977
|
},
|
|
40978
40978
|
deleteAll () { // 删除全部已上传文件
|
|
40979
40979
|
// 重置文件列表, 注意:通过使用splice保持响应性
|
|
40980
|
-
fileList_box.splice(0, fileList_box.length);
|
|
40980
|
+
fileList_box.value.splice(0, fileList_box.value.length);
|
|
40981
40981
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
40982
40982
|
emit("update:modelValue", []);
|
|
40983
40983
|
}
|
|
@@ -40990,8 +40990,8 @@ return (_ctx, _cache) => {
|
|
|
40990
40990
|
return (vue.openBlock(), vue.createElementBlock("div", null, [
|
|
40991
40991
|
vue.createVNode(_component_el_upload, {
|
|
40992
40992
|
action: myProps_box.uploadUrl,
|
|
40993
|
-
"file-list": fileList_box,
|
|
40994
|
-
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box) = $event)),
|
|
40993
|
+
"file-list": fileList_box.value,
|
|
40994
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box).value = $event)),
|
|
40995
40995
|
"list-type": "text",
|
|
40996
40996
|
"before-upload": hdl.beforeUpload,
|
|
40997
40997
|
"on-preview": hdl.preview,
|
|
@@ -41015,10 +41015,10 @@ return (_ctx, _cache) => {
|
|
|
41015
41015
|
]),
|
|
41016
41016
|
_: 1 /* STABLE */
|
|
41017
41017
|
}, 8 /* PROPS */, ["action", "file-list", "before-upload", "on-preview", "on-remove", "on-success", "limit"]),
|
|
41018
|
-
(fileList_box.length>0)
|
|
41019
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$b, vue.toDisplayString("已上传"+fileList_box.length+"个文件"), 1 /* TEXT */))
|
|
41018
|
+
(fileList_box.value.length>0)
|
|
41019
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$b, vue.toDisplayString("已上传"+fileList_box.value.length+"个文件"), 1 /* TEXT */))
|
|
41020
41020
|
: vue.createCommentVNode("v-if", true),
|
|
41021
|
-
(fileList_box.length>0)
|
|
41021
|
+
(fileList_box.value.length>0)
|
|
41022
41022
|
? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
41023
41023
|
key: 1,
|
|
41024
41024
|
size: "small",
|
|
@@ -41065,9 +41065,9 @@ const props = __props;
|
|
|
41065
41065
|
const emit = __emit;
|
|
41066
41066
|
|
|
41067
41067
|
const myProps_box = vue.reactive(Object.assign({}, ly0default, props.myProps));
|
|
41068
|
-
const fileList_box = vue.
|
|
41068
|
+
const fileList_box = vue.ref([]);
|
|
41069
41069
|
props.modelValue.forEach((item, index) => {
|
|
41070
|
-
fileList_box.push({
|
|
41070
|
+
fileList_box.value.push({
|
|
41071
41071
|
name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
|
|
41072
41072
|
url: item,
|
|
41073
41073
|
response: {
|
|
@@ -41123,17 +41123,17 @@ const hdl = {
|
|
|
41123
41123
|
remove (file, fileList) { // 文件列表移除文件时的钩子
|
|
41124
41124
|
// 重置文件列表, 注意:通过使用splice保持响应性
|
|
41125
41125
|
// 因为只能上传一个图片,移除即清空
|
|
41126
|
-
fileList_box.splice(0, fileList_box.length);
|
|
41126
|
+
fileList_box.value.splice(0, fileList_box.value.length);
|
|
41127
41127
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
41128
41128
|
emit("update:modelValue", []);
|
|
41129
41129
|
},
|
|
41130
41130
|
success (response, file, fileList) { // 上传
|
|
41131
41131
|
// 重置文件列表, 注意:通过使用splice保持响应性
|
|
41132
41132
|
// 只能上传一个图片
|
|
41133
|
-
fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
41133
|
+
fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
41134
41134
|
if (response.code === 0) {
|
|
41135
41135
|
const arr = [];
|
|
41136
|
-
fileList_box.forEach(i=>{
|
|
41136
|
+
fileList_box.value.forEach(i=>{
|
|
41137
41137
|
arr.push(i.response.data.src);
|
|
41138
41138
|
});
|
|
41139
41139
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
@@ -41146,7 +41146,7 @@ const hdl = {
|
|
|
41146
41146
|
},
|
|
41147
41147
|
deleteAll () { // 删除全部已上传文件
|
|
41148
41148
|
// 重置文件列表, 注意:通过使用splice保持响应性
|
|
41149
|
-
fileList_box.splice(0, fileList_box.length);
|
|
41149
|
+
fileList_box.value.splice(0, fileList_box.value.length);
|
|
41150
41150
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
41151
41151
|
emit("update:modelValue", []);
|
|
41152
41152
|
}
|
|
@@ -41163,8 +41163,8 @@ return (_ctx, _cache) => {
|
|
|
41163
41163
|
class: "avatar",
|
|
41164
41164
|
style: vue.normalizeStyle(style.avatarBox),
|
|
41165
41165
|
action: myProps_box.uploadUrl,
|
|
41166
|
-
"file-list": fileList_box,
|
|
41167
|
-
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box) = $event)),
|
|
41166
|
+
"file-list": fileList_box.value,
|
|
41167
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box).value = $event)),
|
|
41168
41168
|
"show-file-list": false,
|
|
41169
41169
|
"before-upload": hdl.beforeUpload,
|
|
41170
41170
|
"on-preview": hdl.preview,
|
|
@@ -41173,10 +41173,10 @@ return (_ctx, _cache) => {
|
|
|
41173
41173
|
limit: 1
|
|
41174
41174
|
}, {
|
|
41175
41175
|
default: vue.withCtx(() => [
|
|
41176
|
-
(fileList_box.length>0 && fileList_box[0].response && fileList_box[0].response.data && fileList_box[0].response.data.src)
|
|
41176
|
+
(fileList_box.value.length>0 && fileList_box.value[0].response && fileList_box.value[0].response.data && fileList_box.value[0].response.data.src)
|
|
41177
41177
|
? (vue.openBlock(), vue.createElementBlock("img", {
|
|
41178
41178
|
key: 0,
|
|
41179
|
-
src: fileList_box[0].response.data.src,
|
|
41179
|
+
src: fileList_box.value[0].response.data.src,
|
|
41180
41180
|
class: "avatar",
|
|
41181
41181
|
style: vue.normalizeStyle(style.avatarImage)
|
|
41182
41182
|
}, null, 12 /* STYLE, PROPS */, _hoisted_1$a))
|
|
@@ -41193,7 +41193,7 @@ return (_ctx, _cache) => {
|
|
|
41193
41193
|
]),
|
|
41194
41194
|
_: 1 /* STABLE */
|
|
41195
41195
|
}, 8 /* PROPS */, ["style", "action", "file-list", "before-upload", "on-preview", "on-remove", "on-success"]),
|
|
41196
|
-
(fileList_box.length>0 && fileList_box[0].response && fileList_box[0].response.data && fileList_box[0].response.data.src)
|
|
41196
|
+
(fileList_box.value.length>0 && fileList_box.value[0].response && fileList_box.value[0].response.data && fileList_box.value[0].response.data.src)
|
|
41197
41197
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$a, [
|
|
41198
41198
|
vue.createVNode(_component_el_button, {
|
|
41199
41199
|
size: "small",
|
|
@@ -41252,9 +41252,9 @@ const myProps_box = vue.reactive(Object.assign({}, ly0default, {
|
|
|
41252
41252
|
}
|
|
41253
41253
|
}, props.myProps));
|
|
41254
41254
|
|
|
41255
|
-
const fileList_box = vue.
|
|
41255
|
+
const fileList_box = vue.ref([]);
|
|
41256
41256
|
props.modelValue.forEach((item, index) => {
|
|
41257
|
-
fileList_box.push({
|
|
41257
|
+
fileList_box.value.push({
|
|
41258
41258
|
name: item.src.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
|
|
41259
41259
|
url: item.src,
|
|
41260
41260
|
response: {
|
|
@@ -41313,7 +41313,7 @@ const hdl = {
|
|
|
41313
41313
|
remove (file, fileList) { // 文件列表移除文件时的钩子
|
|
41314
41314
|
// 重置文件列表, 注意:通过使用splice保持响应性
|
|
41315
41315
|
// 因为只能上传一个图片,移除即清空
|
|
41316
|
-
fileList_box.splice(0, fileList_box.length);
|
|
41316
|
+
fileList_box.value.splice(0, fileList_box.value.length);
|
|
41317
41317
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
41318
41318
|
emit("update:modelValue", []);
|
|
41319
41319
|
}};
|
|
@@ -41329,8 +41329,8 @@ return (_ctx, _cache) => {
|
|
|
41329
41329
|
class: "avatar",
|
|
41330
41330
|
style: vue.normalizeStyle(style.avatarBox),
|
|
41331
41331
|
action: myProps_box.uploadUrl,
|
|
41332
|
-
"file-list": fileList_box,
|
|
41333
|
-
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box) = $event)),
|
|
41332
|
+
"file-list": fileList_box.value,
|
|
41333
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box).value = $event)),
|
|
41334
41334
|
"show-file-list": false,
|
|
41335
41335
|
"before-upload": hdl.beforeUpload,
|
|
41336
41336
|
"on-preview": hdl.preview,
|
|
@@ -41339,15 +41339,15 @@ return (_ctx, _cache) => {
|
|
|
41339
41339
|
}, {
|
|
41340
41340
|
default: vue.withCtx(() => [
|
|
41341
41341
|
(
|
|
41342
|
-
fileList_box.length>0 &&
|
|
41343
|
-
fileList_box[0].response &&
|
|
41344
|
-
fileList_box[0].response.data &&
|
|
41345
|
-
fileList_box[0].response.data.src
|
|
41342
|
+
fileList_box.value.length>0 &&
|
|
41343
|
+
fileList_box.value[0].response &&
|
|
41344
|
+
fileList_box.value[0].response.data &&
|
|
41345
|
+
fileList_box.value[0].response.data.src
|
|
41346
41346
|
)
|
|
41347
41347
|
? (vue.openBlock(), vue.createElementBlock("img", {
|
|
41348
41348
|
key: 0,
|
|
41349
41349
|
class: "avatar",
|
|
41350
|
-
src:
|
|
41350
|
+
src: fileList_box.value[0].response.data.src,
|
|
41351
41351
|
style: vue.normalizeStyle(style.avatarImage())
|
|
41352
41352
|
}, null, 12 /* STYLE, PROPS */, _hoisted_1$9))
|
|
41353
41353
|
: (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
@@ -41364,22 +41364,22 @@ return (_ctx, _cache) => {
|
|
|
41364
41364
|
_: 1 /* STABLE */
|
|
41365
41365
|
}, 8 /* PROPS */, ["style", "action", "file-list", "before-upload", "on-preview", "on-remove", "on-success"]),
|
|
41366
41366
|
(
|
|
41367
|
-
fileList_box.length>0 &&
|
|
41368
|
-
fileList_box[0].response &&
|
|
41369
|
-
fileList_box[0].response.data &&
|
|
41370
|
-
fileList_box[0].response.data.result &&
|
|
41371
|
-
fileList_box[0].response.data.result.txt
|
|
41367
|
+
fileList_box.value.length>0 &&
|
|
41368
|
+
fileList_box.value[0].response &&
|
|
41369
|
+
fileList_box.value[0].response.data &&
|
|
41370
|
+
fileList_box.value[0].response.data.result &&
|
|
41371
|
+
fileList_box.value[0].response.data.result.txt
|
|
41372
41372
|
)
|
|
41373
41373
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$9, [
|
|
41374
41374
|
_cache[1] || (_cache[1] = vue.createElementVNode("span", null, "车牌识别结果:", -1 /* CACHED */)),
|
|
41375
|
-
vue.createElementVNode("span", _hoisted_3$4, vue.toDisplayString(fileList_box[0].response.data.result.txt), 1 /* TEXT */)
|
|
41375
|
+
vue.createElementVNode("span", _hoisted_3$4, vue.toDisplayString(fileList_box.value[0].response.data.result.txt), 1 /* TEXT */)
|
|
41376
41376
|
]))
|
|
41377
41377
|
: vue.createCommentVNode("v-if", true),
|
|
41378
41378
|
(
|
|
41379
|
-
fileList_box.length>0 &&
|
|
41380
|
-
fileList_box[0].response &&
|
|
41381
|
-
fileList_box[0].response.data &&
|
|
41382
|
-
fileList_box[0].response.data.src
|
|
41379
|
+
fileList_box.value.length>0 &&
|
|
41380
|
+
fileList_box.value[0].response &&
|
|
41381
|
+
fileList_box.value[0].response.data &&
|
|
41382
|
+
fileList_box.value[0].response.data.src
|
|
41383
41383
|
)
|
|
41384
41384
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, [
|
|
41385
41385
|
vue.createVNode(_component_el_button, {
|
|
@@ -41433,9 +41433,9 @@ const props = __props;
|
|
|
41433
41433
|
const emit = __emit;
|
|
41434
41434
|
|
|
41435
41435
|
const myProps_box = vue.reactive(Object.assign({}, ly0default, props.myProps));
|
|
41436
|
-
const fileList_box = vue.
|
|
41436
|
+
const fileList_box = vue.ref([]);
|
|
41437
41437
|
props.modelValue.forEach((item, index) => {
|
|
41438
|
-
fileList_box.push({
|
|
41438
|
+
fileList_box.value.push({
|
|
41439
41439
|
name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
|
|
41440
41440
|
url: item,
|
|
41441
41441
|
response: {
|
|
@@ -41466,9 +41466,9 @@ const hdl = {
|
|
|
41466
41466
|
},
|
|
41467
41467
|
remove (file, fileList) { // 文件列表移除文件时的钩子
|
|
41468
41468
|
// 重置文件列表, 注意:通过使用splice保持响应性
|
|
41469
|
-
fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
41469
|
+
fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
41470
41470
|
const arr = [];
|
|
41471
|
-
fileList_box.forEach(i=>{
|
|
41471
|
+
fileList_box.value.forEach(i=>{
|
|
41472
41472
|
arr.push(i.response.data.src);
|
|
41473
41473
|
});
|
|
41474
41474
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
@@ -41476,10 +41476,10 @@ const hdl = {
|
|
|
41476
41476
|
},
|
|
41477
41477
|
success (response, file, fileList) { // 上传
|
|
41478
41478
|
// 重置文件列表, 注意:通过使用splice保持响应性
|
|
41479
|
-
fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
41479
|
+
fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
41480
41480
|
if (response.code === 0) {
|
|
41481
41481
|
const arr = [];
|
|
41482
|
-
fileList_box.forEach(i=>{
|
|
41482
|
+
fileList_box.value.forEach(i=>{
|
|
41483
41483
|
arr.push(i.response.data.src);
|
|
41484
41484
|
});
|
|
41485
41485
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
@@ -41492,7 +41492,7 @@ const hdl = {
|
|
|
41492
41492
|
},
|
|
41493
41493
|
deleteAll () { // 删除全部已上传文件
|
|
41494
41494
|
// 重置文件列表, 注意:通过使用splice保持响应性
|
|
41495
|
-
fileList_box.splice(0, fileList_box.length);
|
|
41495
|
+
fileList_box.value.splice(0, fileList_box.value.length);
|
|
41496
41496
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
41497
41497
|
emit("update:modelValue", []);
|
|
41498
41498
|
}
|
|
@@ -41507,8 +41507,8 @@ return (_ctx, _cache) => {
|
|
|
41507
41507
|
return (vue.openBlock(), vue.createElementBlock("div", null, [
|
|
41508
41508
|
vue.createVNode(_component_el_upload, {
|
|
41509
41509
|
action: myProps_box.uploadUrl,
|
|
41510
|
-
"file-list": fileList_box,
|
|
41511
|
-
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box) = $event)),
|
|
41510
|
+
"file-list": fileList_box.value,
|
|
41511
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box).value = $event)),
|
|
41512
41512
|
"list-type": "text",
|
|
41513
41513
|
"before-upload": hdl.beforeUpload,
|
|
41514
41514
|
"on-preview": hdl.preview,
|
|
@@ -41534,10 +41534,10 @@ return (_ctx, _cache) => {
|
|
|
41534
41534
|
]),
|
|
41535
41535
|
_: 1 /* STABLE */
|
|
41536
41536
|
}, 8 /* PROPS */, ["action", "file-list", "before-upload", "on-preview", "on-remove", "on-success", "limit"]),
|
|
41537
|
-
(fileList_box.length>0)
|
|
41538
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, vue.toDisplayString("已上传"+fileList_box.length+"个文件"), 1 /* TEXT */))
|
|
41537
|
+
(fileList_box.value.length>0)
|
|
41538
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, vue.toDisplayString("已上传"+fileList_box.value.length+"个文件"), 1 /* TEXT */))
|
|
41539
41539
|
: vue.createCommentVNode("v-if", true),
|
|
41540
|
-
(fileList_box.length>0)
|
|
41540
|
+
(fileList_box.value.length>0)
|
|
41541
41541
|
? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
41542
41542
|
key: 1,
|
|
41543
41543
|
size: "small",
|
|
@@ -41587,9 +41587,9 @@ const props = __props;
|
|
|
41587
41587
|
const emit = __emit;
|
|
41588
41588
|
|
|
41589
41589
|
const myProps_box = vue.reactive(Object.assign({}, ly0default, props.myProps));
|
|
41590
|
-
const fileList_box = vue.
|
|
41590
|
+
const fileList_box = vue.ref([]);
|
|
41591
41591
|
props.modelValue.forEach((item, index) => {
|
|
41592
|
-
fileList_box.push({
|
|
41592
|
+
fileList_box.value.push({
|
|
41593
41593
|
name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
|
|
41594
41594
|
url: item,
|
|
41595
41595
|
response: {
|
|
@@ -41620,9 +41620,9 @@ const hdl = {
|
|
|
41620
41620
|
},
|
|
41621
41621
|
remove (file, fileList) { // 文件列表移除文件时的钩子
|
|
41622
41622
|
// 重置文件列表, 注意:通过使用splice保持响应性
|
|
41623
|
-
fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
41623
|
+
fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
41624
41624
|
const arr = [];
|
|
41625
|
-
fileList_box.forEach(i=>{
|
|
41625
|
+
fileList_box.value.forEach(i=>{
|
|
41626
41626
|
arr.push(i.response.data.src);
|
|
41627
41627
|
});
|
|
41628
41628
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
@@ -41630,10 +41630,10 @@ const hdl = {
|
|
|
41630
41630
|
},
|
|
41631
41631
|
success (response, file, fileList) { // 上传
|
|
41632
41632
|
// 重置文件列表, 注意:通过使用splice保持响应性
|
|
41633
|
-
fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
41633
|
+
fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
41634
41634
|
if (response.code === 0) {
|
|
41635
41635
|
const arr = [];
|
|
41636
|
-
fileList_box.forEach(i=>{
|
|
41636
|
+
fileList_box.value.forEach(i=>{
|
|
41637
41637
|
arr.push(i.response.data.src);
|
|
41638
41638
|
});
|
|
41639
41639
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
@@ -41646,7 +41646,7 @@ const hdl = {
|
|
|
41646
41646
|
},
|
|
41647
41647
|
deleteAll () { // 删除全部已上传图片
|
|
41648
41648
|
// 重置文件列表, 注意:通过使用splice保持响应性
|
|
41649
|
-
fileList_box.splice(0, fileList_box.length);
|
|
41649
|
+
fileList_box.value.splice(0, fileList_box.value.length);
|
|
41650
41650
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
41651
41651
|
emit("update:modelValue", []);
|
|
41652
41652
|
}
|
|
@@ -41659,8 +41659,8 @@ return (_ctx, _cache) => {
|
|
|
41659
41659
|
return (vue.openBlock(), vue.createElementBlock("div", null, [
|
|
41660
41660
|
vue.createVNode(_component_el_upload, {
|
|
41661
41661
|
action: myProps_box.uploadUrl,
|
|
41662
|
-
"file-list": fileList_box,
|
|
41663
|
-
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box) = $event)),
|
|
41662
|
+
"file-list": fileList_box.value,
|
|
41663
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box).value = $event)),
|
|
41664
41664
|
"list-type": "picture",
|
|
41665
41665
|
"before-upload": hdl.beforeUpload,
|
|
41666
41666
|
"on-preview": hdl.preview,
|
|
@@ -41684,10 +41684,10 @@ return (_ctx, _cache) => {
|
|
|
41684
41684
|
]),
|
|
41685
41685
|
_: 1 /* STABLE */
|
|
41686
41686
|
}, 8 /* PROPS */, ["action", "file-list", "before-upload", "on-preview", "on-remove", "on-success", "limit"]),
|
|
41687
|
-
(fileList_box.length>0)
|
|
41688
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$7, vue.toDisplayString("已上传"+fileList_box.length+"个图片"), 1 /* TEXT */))
|
|
41687
|
+
(fileList_box.value.length>0)
|
|
41688
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$7, vue.toDisplayString("已上传"+fileList_box.value.length+"个图片"), 1 /* TEXT */))
|
|
41689
41689
|
: vue.createCommentVNode("v-if", true),
|
|
41690
|
-
(fileList_box.length>0)
|
|
41690
|
+
(fileList_box.value.length>0)
|
|
41691
41691
|
? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
41692
41692
|
key: 1,
|
|
41693
41693
|
size: "small",
|
|
@@ -41738,9 +41738,9 @@ const props = __props;
|
|
|
41738
41738
|
const emit = __emit;
|
|
41739
41739
|
|
|
41740
41740
|
const myProps_box = vue.reactive(Object.assign({}, ly0default, props.myProps));
|
|
41741
|
-
const fileList_box = vue.
|
|
41741
|
+
const fileList_box = vue.ref([]);
|
|
41742
41742
|
props.modelValue.forEach((item, index) => {
|
|
41743
|
-
fileList_box.push({
|
|
41743
|
+
fileList_box.value.push({
|
|
41744
41744
|
name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
|
|
41745
41745
|
url: item,
|
|
41746
41746
|
response: {
|
|
@@ -41776,9 +41776,9 @@ const hdl = {
|
|
|
41776
41776
|
},
|
|
41777
41777
|
remove (file, fileList) { // 文件列表移除文件时的钩子
|
|
41778
41778
|
// 重置文件列表, 注意:通过使用splice保持响应性
|
|
41779
|
-
fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
41779
|
+
fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
|
|
41780
41780
|
const arr = [];
|
|
41781
|
-
fileList_box.forEach(i=>{
|
|
41781
|
+
fileList_box.value.forEach(i=>{
|
|
41782
41782
|
arr.push(i.response.data.src);
|
|
41783
41783
|
});
|
|
41784
41784
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
@@ -41795,8 +41795,8 @@ return (_ctx, _cache) => {
|
|
|
41795
41795
|
return (vue.openBlock(), vue.createElementBlock("div", null, [
|
|
41796
41796
|
vue.createVNode(_component_el_upload, {
|
|
41797
41797
|
action: myProps_box.uploadUrl,
|
|
41798
|
-
"file-list": fileList_box,
|
|
41799
|
-
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box) = $event)),
|
|
41798
|
+
"file-list": fileList_box.value,
|
|
41799
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box).value = $event)),
|
|
41800
41800
|
"list-type": "picture-card",
|
|
41801
41801
|
"before-upload": hdl.beforeUpload,
|
|
41802
41802
|
"on-preview": hdl.preview,
|
|
@@ -41830,10 +41830,10 @@ return (_ctx, _cache) => {
|
|
|
41830
41830
|
]),
|
|
41831
41831
|
_: 1 /* STABLE */
|
|
41832
41832
|
}, 8 /* PROPS */, ["modelValue"]),
|
|
41833
|
-
(fileList_box.length>0)
|
|
41834
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3, vue.toDisplayString("已上传"+fileList_box.length+"个图片"), 1 /* TEXT */))
|
|
41833
|
+
(fileList_box.value.length>0)
|
|
41834
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3, vue.toDisplayString("已上传"+fileList_box.value.length+"个图片"), 1 /* TEXT */))
|
|
41835
41835
|
: vue.createCommentVNode("v-if", true),
|
|
41836
|
-
(fileList_box.length>0)
|
|
41836
|
+
(fileList_box.value.length>0)
|
|
41837
41837
|
? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
41838
41838
|
key: 1,
|
|
41839
41839
|
size: "small",
|