@yoooloo42/joker 1.0.84 → 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.esm.js CHANGED
@@ -21960,7 +21960,8 @@ const {
21960
21960
 
21961
21961
  const router = useRouter();
21962
21962
  const domainPara = 'http://127.0.0.1:443';
21963
- const upload$1 = '/ly0/upload-req/image';
21963
+ const upload$1 = '/ly0/upload-req/file';
21964
+ const upload_image = '/ly0/upload-req/image';
21964
21965
  const upload_carplate = '/ly0/upload-req/carplate';
21965
21966
 
21966
21967
  // 后端请求
@@ -22119,6 +22120,7 @@ function ly0sessionLoseWithUsertbl(usertbl) {
22119
22120
  var ly0request = {
22120
22121
  domain: domainPara,
22121
22122
  upload: upload$1,
22123
+ upload_image,
22122
22124
  upload_carplate,
22123
22125
  request: request$1,
22124
22126
  ly0request: ly0request$1,
@@ -22165,8 +22167,9 @@ var ly0default$2 = {
22165
22167
  // 后台提交 - URL地址
22166
22168
  storpro: '' // 后台提交 - 存储过程
22167
22169
  },
22168
- uploadUrl: ly0request.upload,
22169
- uploadUrl_carplate: ly0request.upload_carplate,
22170
+ uploadUrl: ly0request.domain + ly0request.upload,
22171
+ uploadUrl_image: ly0request.domain + ly0request.upload_image,
22172
+ uploadUrl_carplate: ly0request.domain + ly0request.upload_carplate,
22170
22173
  para: {
22171
22174
  inputWidth: '200px',
22172
22175
  placeholder: {
@@ -22758,6 +22761,7 @@ const download = reactive({
22758
22761
 
22759
22762
  const upload = reactive({
22760
22763
  uploadUrl: formProps.para.uploadUrl,
22764
+ uploadUrl_image: formProps.para.uploadUrl_image,
22761
22765
  uploadUrl_carplate: formProps.para.uploadUrl_carplate
22762
22766
  });
22763
22767
 
@@ -23166,7 +23170,7 @@ return (_ctx, _cache) => {
23166
23170
  createVNode(_component_ly0Upload_picture, {
23167
23171
  modelValue: unref(formData)[__props.item.fieldName],
23168
23172
  "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((unref(formData)[__props.item.fieldName]) = $event)),
23169
- myProps: {uploadUrl: upload.uploadUrl}
23173
+ myProps: {uploadUrl: upload.uploadUrl_image}
23170
23174
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23171
23175
  ]))
23172
23176
  : createCommentVNode("v-if", true),
@@ -23176,7 +23180,7 @@ return (_ctx, _cache) => {
23176
23180
  createVNode(_component_ly0Upload_pictureCard, {
23177
23181
  modelValue: unref(formData)[__props.item.fieldName],
23178
23182
  "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((unref(formData)[__props.item.fieldName]) = $event)),
23179
- myProps: {uploadUrl: upload.uploadUrl}
23183
+ myProps: {uploadUrl: upload.uploadUrl_image}
23180
23184
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23181
23185
  ]))
23182
23186
  : createCommentVNode("v-if", true),
@@ -23186,7 +23190,7 @@ return (_ctx, _cache) => {
23186
23190
  createVNode(_component_ly0Upload_avatar, {
23187
23191
  modelValue: unref(formData)[__props.item.fieldName],
23188
23192
  "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((unref(formData)[__props.item.fieldName]) = $event)),
23189
- myProps: {uploadUrl: upload.uploadUrl}
23193
+ myProps: {uploadUrl: upload.uploadUrl_image}
23190
23194
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23191
23195
  ]))
23192
23196
  : createCommentVNode("v-if", true),
@@ -40910,9 +40914,9 @@ const props = __props;
40910
40914
  const emit = __emit;
40911
40915
 
40912
40916
  const myProps_box = reactive(Object.assign({}, ly0default, props.myProps));
40913
- const fileList_box = reactive([]);
40917
+ const fileList_box = ref([]);
40914
40918
  props.modelValue.forEach((item, index) => {
40915
- fileList_box.push({
40919
+ fileList_box.value.push({
40916
40920
  name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
40917
40921
  url: item,
40918
40922
  response: {
@@ -40943,9 +40947,9 @@ const hdl = {
40943
40947
  },
40944
40948
  remove (file, fileList) { // 文件列表移除文件时的钩子
40945
40949
  // 重置文件列表, 注意:通过使用splice保持响应性
40946
- fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
40950
+ fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
40947
40951
  const arr = [];
40948
- fileList_box.forEach(i=>{
40952
+ fileList_box.value.forEach(i=>{
40949
40953
  arr.push(i.response.data.src);
40950
40954
  });
40951
40955
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -40953,10 +40957,10 @@ const hdl = {
40953
40957
  },
40954
40958
  success (response, file, fileList) { // 上传成功
40955
40959
  // 重置文件列表, 注意:通过使用splice保持响应性
40956
- fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
40960
+ fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
40957
40961
  if (response.code === 0) {
40958
40962
  const arr = [];
40959
- fileList_box.forEach(i=>{
40963
+ fileList_box.value.forEach(i=>{
40960
40964
  arr.push(i.response.data.src);
40961
40965
  });
40962
40966
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -40969,7 +40973,7 @@ const hdl = {
40969
40973
  },
40970
40974
  deleteAll () { // 删除全部已上传文件
40971
40975
  // 重置文件列表, 注意:通过使用splice保持响应性
40972
- fileList_box.splice(0, fileList_box.length);
40976
+ fileList_box.value.splice(0, fileList_box.value.length);
40973
40977
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
40974
40978
  emit("update:modelValue", []);
40975
40979
  }
@@ -40982,8 +40986,8 @@ return (_ctx, _cache) => {
40982
40986
  return (openBlock(), createElementBlock("div", null, [
40983
40987
  createVNode(_component_el_upload, {
40984
40988
  action: myProps_box.uploadUrl,
40985
- "file-list": fileList_box,
40986
- "onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box) = $event)),
40989
+ "file-list": fileList_box.value,
40990
+ "onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box).value = $event)),
40987
40991
  "list-type": "text",
40988
40992
  "before-upload": hdl.beforeUpload,
40989
40993
  "on-preview": hdl.preview,
@@ -41007,10 +41011,10 @@ return (_ctx, _cache) => {
41007
41011
  ]),
41008
41012
  _: 1 /* STABLE */
41009
41013
  }, 8 /* PROPS */, ["action", "file-list", "before-upload", "on-preview", "on-remove", "on-success", "limit"]),
41010
- (fileList_box.length>0)
41011
- ? (openBlock(), createElementBlock("div", _hoisted_2$b, toDisplayString("已上传"+fileList_box.length+"个文件"), 1 /* TEXT */))
41014
+ (fileList_box.value.length>0)
41015
+ ? (openBlock(), createElementBlock("div", _hoisted_2$b, toDisplayString("已上传"+fileList_box.value.length+"个文件"), 1 /* TEXT */))
41012
41016
  : createCommentVNode("v-if", true),
41013
- (fileList_box.length>0)
41017
+ (fileList_box.value.length>0)
41014
41018
  ? (openBlock(), createBlock(_component_el_button, {
41015
41019
  key: 1,
41016
41020
  size: "small",
@@ -41057,9 +41061,9 @@ const props = __props;
41057
41061
  const emit = __emit;
41058
41062
 
41059
41063
  const myProps_box = reactive(Object.assign({}, ly0default, props.myProps));
41060
- const fileList_box = reactive([]);
41064
+ const fileList_box = ref([]);
41061
41065
  props.modelValue.forEach((item, index) => {
41062
- fileList_box.push({
41066
+ fileList_box.value.push({
41063
41067
  name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
41064
41068
  url: item,
41065
41069
  response: {
@@ -41115,17 +41119,17 @@ const hdl = {
41115
41119
  remove (file, fileList) { // 文件列表移除文件时的钩子
41116
41120
  // 重置文件列表, 注意:通过使用splice保持响应性
41117
41121
  // 因为只能上传一个图片,移除即清空
41118
- fileList_box.splice(0, fileList_box.length);
41122
+ fileList_box.value.splice(0, fileList_box.value.length);
41119
41123
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
41120
41124
  emit("update:modelValue", []);
41121
41125
  },
41122
41126
  success (response, file, fileList) { // 上传
41123
41127
  // 重置文件列表, 注意:通过使用splice保持响应性
41124
41128
  // 只能上传一个图片
41125
- fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
41129
+ fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
41126
41130
  if (response.code === 0) {
41127
41131
  const arr = [];
41128
- fileList_box.forEach(i=>{
41132
+ fileList_box.value.forEach(i=>{
41129
41133
  arr.push(i.response.data.src);
41130
41134
  });
41131
41135
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -41138,7 +41142,7 @@ const hdl = {
41138
41142
  },
41139
41143
  deleteAll () { // 删除全部已上传文件
41140
41144
  // 重置文件列表, 注意:通过使用splice保持响应性
41141
- fileList_box.splice(0, fileList_box.length);
41145
+ fileList_box.value.splice(0, fileList_box.value.length);
41142
41146
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
41143
41147
  emit("update:modelValue", []);
41144
41148
  }
@@ -41155,8 +41159,8 @@ return (_ctx, _cache) => {
41155
41159
  class: "avatar",
41156
41160
  style: normalizeStyle(style.avatarBox),
41157
41161
  action: myProps_box.uploadUrl,
41158
- "file-list": fileList_box,
41159
- "onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box) = $event)),
41162
+ "file-list": fileList_box.value,
41163
+ "onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box).value = $event)),
41160
41164
  "show-file-list": false,
41161
41165
  "before-upload": hdl.beforeUpload,
41162
41166
  "on-preview": hdl.preview,
@@ -41165,10 +41169,10 @@ return (_ctx, _cache) => {
41165
41169
  limit: 1
41166
41170
  }, {
41167
41171
  default: withCtx(() => [
41168
- (fileList_box.length>0 && fileList_box[0].response && fileList_box[0].response.data && fileList_box[0].response.data.src)
41172
+ (fileList_box.value.length>0 && fileList_box.value[0].response && fileList_box.value[0].response.data && fileList_box.value[0].response.data.src)
41169
41173
  ? (openBlock(), createElementBlock("img", {
41170
41174
  key: 0,
41171
- src: fileList_box[0].response.data.src,
41175
+ src: fileList_box.value[0].response.data.src,
41172
41176
  class: "avatar",
41173
41177
  style: normalizeStyle(style.avatarImage)
41174
41178
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$a))
@@ -41185,7 +41189,7 @@ return (_ctx, _cache) => {
41185
41189
  ]),
41186
41190
  _: 1 /* STABLE */
41187
41191
  }, 8 /* PROPS */, ["style", "action", "file-list", "before-upload", "on-preview", "on-remove", "on-success"]),
41188
- (fileList_box.length>0 && fileList_box[0].response && fileList_box[0].response.data && fileList_box[0].response.data.src)
41192
+ (fileList_box.value.length>0 && fileList_box.value[0].response && fileList_box.value[0].response.data && fileList_box.value[0].response.data.src)
41189
41193
  ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
41190
41194
  createVNode(_component_el_button, {
41191
41195
  size: "small",
@@ -41244,9 +41248,9 @@ const myProps_box = reactive(Object.assign({}, ly0default, {
41244
41248
  }
41245
41249
  }, props.myProps));
41246
41250
 
41247
- const fileList_box = reactive([]);
41251
+ const fileList_box = ref([]);
41248
41252
  props.modelValue.forEach((item, index) => {
41249
- fileList_box.push({
41253
+ fileList_box.value.push({
41250
41254
  name: item.src.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
41251
41255
  url: item.src,
41252
41256
  response: {
@@ -41305,7 +41309,7 @@ const hdl = {
41305
41309
  remove (file, fileList) { // 文件列表移除文件时的钩子
41306
41310
  // 重置文件列表, 注意:通过使用splice保持响应性
41307
41311
  // 因为只能上传一个图片,移除即清空
41308
- fileList_box.splice(0, fileList_box.length);
41312
+ fileList_box.value.splice(0, fileList_box.value.length);
41309
41313
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
41310
41314
  emit("update:modelValue", []);
41311
41315
  }};
@@ -41321,8 +41325,8 @@ return (_ctx, _cache) => {
41321
41325
  class: "avatar",
41322
41326
  style: normalizeStyle(style.avatarBox),
41323
41327
  action: myProps_box.uploadUrl,
41324
- "file-list": fileList_box,
41325
- "onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box) = $event)),
41328
+ "file-list": fileList_box.value,
41329
+ "onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box).value = $event)),
41326
41330
  "show-file-list": false,
41327
41331
  "before-upload": hdl.beforeUpload,
41328
41332
  "on-preview": hdl.preview,
@@ -41331,15 +41335,15 @@ return (_ctx, _cache) => {
41331
41335
  }, {
41332
41336
  default: withCtx(() => [
41333
41337
  (
41334
- fileList_box.length>0 &&
41335
- fileList_box[0].response &&
41336
- fileList_box[0].response.data &&
41337
- fileList_box[0].response.data.src
41338
+ fileList_box.value.length>0 &&
41339
+ fileList_box.value[0].response &&
41340
+ fileList_box.value[0].response.data &&
41341
+ fileList_box.value[0].response.data.src
41338
41342
  )
41339
41343
  ? (openBlock(), createElementBlock("img", {
41340
41344
  key: 0,
41341
41345
  class: "avatar",
41342
- src: _ctx.fileList[0].response.data.src,
41346
+ src: fileList_box.value[0].response.data.src,
41343
41347
  style: normalizeStyle(style.avatarImage())
41344
41348
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$9))
41345
41349
  : (openBlock(), createBlock(_component_el_icon, {
@@ -41356,22 +41360,22 @@ return (_ctx, _cache) => {
41356
41360
  _: 1 /* STABLE */
41357
41361
  }, 8 /* PROPS */, ["style", "action", "file-list", "before-upload", "on-preview", "on-remove", "on-success"]),
41358
41362
  (
41359
- fileList_box.length>0 &&
41360
- fileList_box[0].response &&
41361
- fileList_box[0].response.data &&
41362
- fileList_box[0].response.data.result &&
41363
- fileList_box[0].response.data.result.txt
41363
+ fileList_box.value.length>0 &&
41364
+ fileList_box.value[0].response &&
41365
+ fileList_box.value[0].response.data &&
41366
+ fileList_box.value[0].response.data.result &&
41367
+ fileList_box.value[0].response.data.result.txt
41364
41368
  )
41365
41369
  ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
41366
41370
  _cache[1] || (_cache[1] = createElementVNode("span", null, "车牌识别结果:", -1 /* CACHED */)),
41367
- createElementVNode("span", _hoisted_3$4, toDisplayString(fileList_box[0].response.data.result.txt), 1 /* TEXT */)
41371
+ createElementVNode("span", _hoisted_3$4, toDisplayString(fileList_box.value[0].response.data.result.txt), 1 /* TEXT */)
41368
41372
  ]))
41369
41373
  : createCommentVNode("v-if", true),
41370
41374
  (
41371
- fileList_box.length>0 &&
41372
- fileList_box[0].response &&
41373
- fileList_box[0].response.data &&
41374
- fileList_box[0].response.data.src
41375
+ fileList_box.value.length>0 &&
41376
+ fileList_box.value[0].response &&
41377
+ fileList_box.value[0].response.data &&
41378
+ fileList_box.value[0].response.data.src
41375
41379
  )
41376
41380
  ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
41377
41381
  createVNode(_component_el_button, {
@@ -41425,9 +41429,9 @@ const props = __props;
41425
41429
  const emit = __emit;
41426
41430
 
41427
41431
  const myProps_box = reactive(Object.assign({}, ly0default, props.myProps));
41428
- const fileList_box = reactive([]);
41432
+ const fileList_box = ref([]);
41429
41433
  props.modelValue.forEach((item, index) => {
41430
- fileList_box.push({
41434
+ fileList_box.value.push({
41431
41435
  name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
41432
41436
  url: item,
41433
41437
  response: {
@@ -41458,9 +41462,9 @@ const hdl = {
41458
41462
  },
41459
41463
  remove (file, fileList) { // 文件列表移除文件时的钩子
41460
41464
  // 重置文件列表, 注意:通过使用splice保持响应性
41461
- fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
41465
+ fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
41462
41466
  const arr = [];
41463
- fileList_box.forEach(i=>{
41467
+ fileList_box.value.forEach(i=>{
41464
41468
  arr.push(i.response.data.src);
41465
41469
  });
41466
41470
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -41468,10 +41472,10 @@ const hdl = {
41468
41472
  },
41469
41473
  success (response, file, fileList) { // 上传
41470
41474
  // 重置文件列表, 注意:通过使用splice保持响应性
41471
- fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
41475
+ fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
41472
41476
  if (response.code === 0) {
41473
41477
  const arr = [];
41474
- fileList_box.forEach(i=>{
41478
+ fileList_box.value.forEach(i=>{
41475
41479
  arr.push(i.response.data.src);
41476
41480
  });
41477
41481
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -41484,7 +41488,7 @@ const hdl = {
41484
41488
  },
41485
41489
  deleteAll () { // 删除全部已上传文件
41486
41490
  // 重置文件列表, 注意:通过使用splice保持响应性
41487
- fileList_box.splice(0, fileList_box.length);
41491
+ fileList_box.value.splice(0, fileList_box.value.length);
41488
41492
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
41489
41493
  emit("update:modelValue", []);
41490
41494
  }
@@ -41499,8 +41503,8 @@ return (_ctx, _cache) => {
41499
41503
  return (openBlock(), createElementBlock("div", null, [
41500
41504
  createVNode(_component_el_upload, {
41501
41505
  action: myProps_box.uploadUrl,
41502
- "file-list": fileList_box,
41503
- "onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box) = $event)),
41506
+ "file-list": fileList_box.value,
41507
+ "onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box).value = $event)),
41504
41508
  "list-type": "text",
41505
41509
  "before-upload": hdl.beforeUpload,
41506
41510
  "on-preview": hdl.preview,
@@ -41526,10 +41530,10 @@ return (_ctx, _cache) => {
41526
41530
  ]),
41527
41531
  _: 1 /* STABLE */
41528
41532
  }, 8 /* PROPS */, ["action", "file-list", "before-upload", "on-preview", "on-remove", "on-success", "limit"]),
41529
- (fileList_box.length>0)
41530
- ? (openBlock(), createElementBlock("div", _hoisted_2$8, toDisplayString("已上传"+fileList_box.length+"个文件"), 1 /* TEXT */))
41533
+ (fileList_box.value.length>0)
41534
+ ? (openBlock(), createElementBlock("div", _hoisted_2$8, toDisplayString("已上传"+fileList_box.value.length+"个文件"), 1 /* TEXT */))
41531
41535
  : createCommentVNode("v-if", true),
41532
- (fileList_box.length>0)
41536
+ (fileList_box.value.length>0)
41533
41537
  ? (openBlock(), createBlock(_component_el_button, {
41534
41538
  key: 1,
41535
41539
  size: "small",
@@ -41579,9 +41583,9 @@ const props = __props;
41579
41583
  const emit = __emit;
41580
41584
 
41581
41585
  const myProps_box = reactive(Object.assign({}, ly0default, props.myProps));
41582
- const fileList_box = reactive([]);
41586
+ const fileList_box = ref([]);
41583
41587
  props.modelValue.forEach((item, index) => {
41584
- fileList_box.push({
41588
+ fileList_box.value.push({
41585
41589
  name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
41586
41590
  url: item,
41587
41591
  response: {
@@ -41612,9 +41616,9 @@ const hdl = {
41612
41616
  },
41613
41617
  remove (file, fileList) { // 文件列表移除文件时的钩子
41614
41618
  // 重置文件列表, 注意:通过使用splice保持响应性
41615
- fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
41619
+ fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
41616
41620
  const arr = [];
41617
- fileList_box.forEach(i=>{
41621
+ fileList_box.value.forEach(i=>{
41618
41622
  arr.push(i.response.data.src);
41619
41623
  });
41620
41624
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -41622,10 +41626,10 @@ const hdl = {
41622
41626
  },
41623
41627
  success (response, file, fileList) { // 上传
41624
41628
  // 重置文件列表, 注意:通过使用splice保持响应性
41625
- fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
41629
+ fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
41626
41630
  if (response.code === 0) {
41627
41631
  const arr = [];
41628
- fileList_box.forEach(i=>{
41632
+ fileList_box.value.forEach(i=>{
41629
41633
  arr.push(i.response.data.src);
41630
41634
  });
41631
41635
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -41638,7 +41642,7 @@ const hdl = {
41638
41642
  },
41639
41643
  deleteAll () { // 删除全部已上传图片
41640
41644
  // 重置文件列表, 注意:通过使用splice保持响应性
41641
- fileList_box.splice(0, fileList_box.length);
41645
+ fileList_box.value.splice(0, fileList_box.value.length);
41642
41646
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
41643
41647
  emit("update:modelValue", []);
41644
41648
  }
@@ -41651,8 +41655,8 @@ return (_ctx, _cache) => {
41651
41655
  return (openBlock(), createElementBlock("div", null, [
41652
41656
  createVNode(_component_el_upload, {
41653
41657
  action: myProps_box.uploadUrl,
41654
- "file-list": fileList_box,
41655
- "onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box) = $event)),
41658
+ "file-list": fileList_box.value,
41659
+ "onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box).value = $event)),
41656
41660
  "list-type": "picture",
41657
41661
  "before-upload": hdl.beforeUpload,
41658
41662
  "on-preview": hdl.preview,
@@ -41676,10 +41680,10 @@ return (_ctx, _cache) => {
41676
41680
  ]),
41677
41681
  _: 1 /* STABLE */
41678
41682
  }, 8 /* PROPS */, ["action", "file-list", "before-upload", "on-preview", "on-remove", "on-success", "limit"]),
41679
- (fileList_box.length>0)
41680
- ? (openBlock(), createElementBlock("div", _hoisted_2$7, toDisplayString("已上传"+fileList_box.length+"个图片"), 1 /* TEXT */))
41683
+ (fileList_box.value.length>0)
41684
+ ? (openBlock(), createElementBlock("div", _hoisted_2$7, toDisplayString("已上传"+fileList_box.value.length+"个图片"), 1 /* TEXT */))
41681
41685
  : createCommentVNode("v-if", true),
41682
- (fileList_box.length>0)
41686
+ (fileList_box.value.length>0)
41683
41687
  ? (openBlock(), createBlock(_component_el_button, {
41684
41688
  key: 1,
41685
41689
  size: "small",
@@ -41730,9 +41734,9 @@ const props = __props;
41730
41734
  const emit = __emit;
41731
41735
 
41732
41736
  const myProps_box = reactive(Object.assign({}, ly0default, props.myProps));
41733
- const fileList_box = reactive([]);
41737
+ const fileList_box = ref([]);
41734
41738
  props.modelValue.forEach((item, index) => {
41735
- fileList_box.push({
41739
+ fileList_box.value.push({
41736
41740
  name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
41737
41741
  url: item,
41738
41742
  response: {
@@ -41768,9 +41772,9 @@ const hdl = {
41768
41772
  },
41769
41773
  remove (file, fileList) { // 文件列表移除文件时的钩子
41770
41774
  // 重置文件列表, 注意:通过使用splice保持响应性
41771
- fileList_box.splice(0, fileList_box.length, ...JSON.parse(JSON.stringify(fileList)));
41775
+ fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
41772
41776
  const arr = [];
41773
- fileList_box.forEach(i=>{
41777
+ fileList_box.value.forEach(i=>{
41774
41778
  arr.push(i.response.data.src);
41775
41779
  });
41776
41780
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -41787,8 +41791,8 @@ return (_ctx, _cache) => {
41787
41791
  return (openBlock(), createElementBlock("div", null, [
41788
41792
  createVNode(_component_el_upload, {
41789
41793
  action: myProps_box.uploadUrl,
41790
- "file-list": fileList_box,
41791
- "onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box) = $event)),
41794
+ "file-list": fileList_box.value,
41795
+ "onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box).value = $event)),
41792
41796
  "list-type": "picture-card",
41793
41797
  "before-upload": hdl.beforeUpload,
41794
41798
  "on-preview": hdl.preview,
@@ -41822,10 +41826,10 @@ return (_ctx, _cache) => {
41822
41826
  ]),
41823
41827
  _: 1 /* STABLE */
41824
41828
  }, 8 /* PROPS */, ["modelValue"]),
41825
- (fileList_box.length>0)
41826
- ? (openBlock(), createElementBlock("div", _hoisted_3$3, toDisplayString("已上传"+fileList_box.length+"个图片"), 1 /* TEXT */))
41829
+ (fileList_box.value.length>0)
41830
+ ? (openBlock(), createElementBlock("div", _hoisted_3$3, toDisplayString("已上传"+fileList_box.value.length+"个图片"), 1 /* TEXT */))
41827
41831
  : createCommentVNode("v-if", true),
41828
- (fileList_box.length>0)
41832
+ (fileList_box.value.length>0)
41829
41833
  ? (openBlock(), createBlock(_component_el_button, {
41830
41834
  key: 1,
41831
41835
  size: "small",