@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.cjs.js CHANGED
@@ -21964,7 +21964,8 @@ const {
21964
21964
 
21965
21965
  const router = vueRouter.useRouter();
21966
21966
  const domainPara = 'http://127.0.0.1:443';
21967
- const upload$1 = '/ly0/upload-req/image';
21967
+ const upload$1 = '/ly0/upload-req/file';
21968
+ const upload_image = '/ly0/upload-req/image';
21968
21969
  const upload_carplate = '/ly0/upload-req/carplate';
21969
21970
 
21970
21971
  // 后端请求
@@ -22123,6 +22124,7 @@ function ly0sessionLoseWithUsertbl(usertbl) {
22123
22124
  var ly0request$1 = {
22124
22125
  domain: domainPara,
22125
22126
  upload: upload$1,
22127
+ upload_image,
22126
22128
  upload_carplate,
22127
22129
  request: request$1,
22128
22130
  ly0request,
@@ -22169,8 +22171,9 @@ var ly0default$2 = {
22169
22171
  // 后台提交 - URL地址
22170
22172
  storpro: '' // 后台提交 - 存储过程
22171
22173
  },
22172
- uploadUrl: ly0request$1.upload,
22173
- uploadUrl_carplate: ly0request$1.upload_carplate,
22174
+ uploadUrl: ly0request$1.domain + ly0request$1.upload,
22175
+ uploadUrl_image: ly0request$1.domain + ly0request$1.upload_image,
22176
+ uploadUrl_carplate: ly0request$1.domain + ly0request$1.upload_carplate,
22174
22177
  para: {
22175
22178
  inputWidth: '200px',
22176
22179
  placeholder: {
@@ -22762,6 +22765,7 @@ const download = vue.reactive({
22762
22765
 
22763
22766
  const upload = vue.reactive({
22764
22767
  uploadUrl: formProps.para.uploadUrl,
22768
+ uploadUrl_image: formProps.para.uploadUrl_image,
22765
22769
  uploadUrl_carplate: formProps.para.uploadUrl_carplate
22766
22770
  });
22767
22771
 
@@ -23170,7 +23174,7 @@ return (_ctx, _cache) => {
23170
23174
  vue.createVNode(_component_ly0Upload_picture, {
23171
23175
  modelValue: vue.unref(formData)[__props.item.fieldName],
23172
23176
  "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((vue.unref(formData)[__props.item.fieldName]) = $event)),
23173
- myProps: {uploadUrl: upload.uploadUrl}
23177
+ myProps: {uploadUrl: upload.uploadUrl_image}
23174
23178
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23175
23179
  ]))
23176
23180
  : vue.createCommentVNode("v-if", true),
@@ -23180,7 +23184,7 @@ return (_ctx, _cache) => {
23180
23184
  vue.createVNode(_component_ly0Upload_pictureCard, {
23181
23185
  modelValue: vue.unref(formData)[__props.item.fieldName],
23182
23186
  "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((vue.unref(formData)[__props.item.fieldName]) = $event)),
23183
- myProps: {uploadUrl: upload.uploadUrl}
23187
+ myProps: {uploadUrl: upload.uploadUrl_image}
23184
23188
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23185
23189
  ]))
23186
23190
  : vue.createCommentVNode("v-if", true),
@@ -23190,7 +23194,7 @@ return (_ctx, _cache) => {
23190
23194
  vue.createVNode(_component_ly0Upload_avatar, {
23191
23195
  modelValue: vue.unref(formData)[__props.item.fieldName],
23192
23196
  "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((vue.unref(formData)[__props.item.fieldName]) = $event)),
23193
- myProps: {uploadUrl: upload.uploadUrl}
23197
+ myProps: {uploadUrl: upload.uploadUrl_image}
23194
23198
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23195
23199
  ]))
23196
23200
  : vue.createCommentVNode("v-if", true),
@@ -40914,9 +40918,9 @@ const props = __props;
40914
40918
  const emit = __emit;
40915
40919
 
40916
40920
  const myProps_box = vue.reactive(Object.assign({}, ly0default, props.myProps));
40917
- const fileList_box = vue.reactive([]);
40921
+ const fileList_box = vue.ref([]);
40918
40922
  props.modelValue.forEach((item, index) => {
40919
- fileList_box.push({
40923
+ fileList_box.value.push({
40920
40924
  name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
40921
40925
  url: item,
40922
40926
  response: {
@@ -40947,9 +40951,9 @@ const hdl = {
40947
40951
  },
40948
40952
  remove (file, fileList) { // 文件列表移除文件时的钩子
40949
40953
  // 重置文件列表, 注意:通过使用splice保持响应性
40950
- 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)));
40951
40955
  const arr = [];
40952
- fileList_box.forEach(i=>{
40956
+ fileList_box.value.forEach(i=>{
40953
40957
  arr.push(i.response.data.src);
40954
40958
  });
40955
40959
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -40957,10 +40961,10 @@ const hdl = {
40957
40961
  },
40958
40962
  success (response, file, fileList) { // 上传成功
40959
40963
  // 重置文件列表, 注意:通过使用splice保持响应性
40960
- 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)));
40961
40965
  if (response.code === 0) {
40962
40966
  const arr = [];
40963
- fileList_box.forEach(i=>{
40967
+ fileList_box.value.forEach(i=>{
40964
40968
  arr.push(i.response.data.src);
40965
40969
  });
40966
40970
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -40973,7 +40977,7 @@ const hdl = {
40973
40977
  },
40974
40978
  deleteAll () { // 删除全部已上传文件
40975
40979
  // 重置文件列表, 注意:通过使用splice保持响应性
40976
- fileList_box.splice(0, fileList_box.length);
40980
+ fileList_box.value.splice(0, fileList_box.value.length);
40977
40981
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
40978
40982
  emit("update:modelValue", []);
40979
40983
  }
@@ -40986,8 +40990,8 @@ return (_ctx, _cache) => {
40986
40990
  return (vue.openBlock(), vue.createElementBlock("div", null, [
40987
40991
  vue.createVNode(_component_el_upload, {
40988
40992
  action: myProps_box.uploadUrl,
40989
- "file-list": fileList_box,
40990
- "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)),
40991
40995
  "list-type": "text",
40992
40996
  "before-upload": hdl.beforeUpload,
40993
40997
  "on-preview": hdl.preview,
@@ -41011,10 +41015,10 @@ return (_ctx, _cache) => {
41011
41015
  ]),
41012
41016
  _: 1 /* STABLE */
41013
41017
  }, 8 /* PROPS */, ["action", "file-list", "before-upload", "on-preview", "on-remove", "on-success", "limit"]),
41014
- (fileList_box.length>0)
41015
- ? (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 */))
41016
41020
  : vue.createCommentVNode("v-if", true),
41017
- (fileList_box.length>0)
41021
+ (fileList_box.value.length>0)
41018
41022
  ? (vue.openBlock(), vue.createBlock(_component_el_button, {
41019
41023
  key: 1,
41020
41024
  size: "small",
@@ -41061,9 +41065,9 @@ const props = __props;
41061
41065
  const emit = __emit;
41062
41066
 
41063
41067
  const myProps_box = vue.reactive(Object.assign({}, ly0default, props.myProps));
41064
- const fileList_box = vue.reactive([]);
41068
+ const fileList_box = vue.ref([]);
41065
41069
  props.modelValue.forEach((item, index) => {
41066
- fileList_box.push({
41070
+ fileList_box.value.push({
41067
41071
  name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
41068
41072
  url: item,
41069
41073
  response: {
@@ -41119,17 +41123,17 @@ const hdl = {
41119
41123
  remove (file, fileList) { // 文件列表移除文件时的钩子
41120
41124
  // 重置文件列表, 注意:通过使用splice保持响应性
41121
41125
  // 因为只能上传一个图片,移除即清空
41122
- fileList_box.splice(0, fileList_box.length);
41126
+ fileList_box.value.splice(0, fileList_box.value.length);
41123
41127
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
41124
41128
  emit("update:modelValue", []);
41125
41129
  },
41126
41130
  success (response, file, fileList) { // 上传
41127
41131
  // 重置文件列表, 注意:通过使用splice保持响应性
41128
41132
  // 只能上传一个图片
41129
- 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)));
41130
41134
  if (response.code === 0) {
41131
41135
  const arr = [];
41132
- fileList_box.forEach(i=>{
41136
+ fileList_box.value.forEach(i=>{
41133
41137
  arr.push(i.response.data.src);
41134
41138
  });
41135
41139
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -41142,7 +41146,7 @@ const hdl = {
41142
41146
  },
41143
41147
  deleteAll () { // 删除全部已上传文件
41144
41148
  // 重置文件列表, 注意:通过使用splice保持响应性
41145
- fileList_box.splice(0, fileList_box.length);
41149
+ fileList_box.value.splice(0, fileList_box.value.length);
41146
41150
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
41147
41151
  emit("update:modelValue", []);
41148
41152
  }
@@ -41159,8 +41163,8 @@ return (_ctx, _cache) => {
41159
41163
  class: "avatar",
41160
41164
  style: vue.normalizeStyle(style.avatarBox),
41161
41165
  action: myProps_box.uploadUrl,
41162
- "file-list": fileList_box,
41163
- "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)),
41164
41168
  "show-file-list": false,
41165
41169
  "before-upload": hdl.beforeUpload,
41166
41170
  "on-preview": hdl.preview,
@@ -41169,10 +41173,10 @@ return (_ctx, _cache) => {
41169
41173
  limit: 1
41170
41174
  }, {
41171
41175
  default: vue.withCtx(() => [
41172
- (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)
41173
41177
  ? (vue.openBlock(), vue.createElementBlock("img", {
41174
41178
  key: 0,
41175
- src: fileList_box[0].response.data.src,
41179
+ src: fileList_box.value[0].response.data.src,
41176
41180
  class: "avatar",
41177
41181
  style: vue.normalizeStyle(style.avatarImage)
41178
41182
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$a))
@@ -41189,7 +41193,7 @@ return (_ctx, _cache) => {
41189
41193
  ]),
41190
41194
  _: 1 /* STABLE */
41191
41195
  }, 8 /* PROPS */, ["style", "action", "file-list", "before-upload", "on-preview", "on-remove", "on-success"]),
41192
- (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)
41193
41197
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$a, [
41194
41198
  vue.createVNode(_component_el_button, {
41195
41199
  size: "small",
@@ -41248,9 +41252,9 @@ const myProps_box = vue.reactive(Object.assign({}, ly0default, {
41248
41252
  }
41249
41253
  }, props.myProps));
41250
41254
 
41251
- const fileList_box = vue.reactive([]);
41255
+ const fileList_box = vue.ref([]);
41252
41256
  props.modelValue.forEach((item, index) => {
41253
- fileList_box.push({
41257
+ fileList_box.value.push({
41254
41258
  name: item.src.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
41255
41259
  url: item.src,
41256
41260
  response: {
@@ -41309,7 +41313,7 @@ const hdl = {
41309
41313
  remove (file, fileList) { // 文件列表移除文件时的钩子
41310
41314
  // 重置文件列表, 注意:通过使用splice保持响应性
41311
41315
  // 因为只能上传一个图片,移除即清空
41312
- fileList_box.splice(0, fileList_box.length);
41316
+ fileList_box.value.splice(0, fileList_box.value.length);
41313
41317
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
41314
41318
  emit("update:modelValue", []);
41315
41319
  }};
@@ -41325,8 +41329,8 @@ return (_ctx, _cache) => {
41325
41329
  class: "avatar",
41326
41330
  style: vue.normalizeStyle(style.avatarBox),
41327
41331
  action: myProps_box.uploadUrl,
41328
- "file-list": fileList_box,
41329
- "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)),
41330
41334
  "show-file-list": false,
41331
41335
  "before-upload": hdl.beforeUpload,
41332
41336
  "on-preview": hdl.preview,
@@ -41335,15 +41339,15 @@ return (_ctx, _cache) => {
41335
41339
  }, {
41336
41340
  default: vue.withCtx(() => [
41337
41341
  (
41338
- fileList_box.length>0 &&
41339
- fileList_box[0].response &&
41340
- fileList_box[0].response.data &&
41341
- 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
41342
41346
  )
41343
41347
  ? (vue.openBlock(), vue.createElementBlock("img", {
41344
41348
  key: 0,
41345
41349
  class: "avatar",
41346
- src: _ctx.fileList[0].response.data.src,
41350
+ src: fileList_box.value[0].response.data.src,
41347
41351
  style: vue.normalizeStyle(style.avatarImage())
41348
41352
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$9))
41349
41353
  : (vue.openBlock(), vue.createBlock(_component_el_icon, {
@@ -41360,22 +41364,22 @@ return (_ctx, _cache) => {
41360
41364
  _: 1 /* STABLE */
41361
41365
  }, 8 /* PROPS */, ["style", "action", "file-list", "before-upload", "on-preview", "on-remove", "on-success"]),
41362
41366
  (
41363
- fileList_box.length>0 &&
41364
- fileList_box[0].response &&
41365
- fileList_box[0].response.data &&
41366
- fileList_box[0].response.data.result &&
41367
- 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
41368
41372
  )
41369
41373
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$9, [
41370
41374
  _cache[1] || (_cache[1] = vue.createElementVNode("span", null, "车牌识别结果:", -1 /* CACHED */)),
41371
- 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 */)
41372
41376
  ]))
41373
41377
  : vue.createCommentVNode("v-if", true),
41374
41378
  (
41375
- fileList_box.length>0 &&
41376
- fileList_box[0].response &&
41377
- fileList_box[0].response.data &&
41378
- 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
41379
41383
  )
41380
41384
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, [
41381
41385
  vue.createVNode(_component_el_button, {
@@ -41429,9 +41433,9 @@ const props = __props;
41429
41433
  const emit = __emit;
41430
41434
 
41431
41435
  const myProps_box = vue.reactive(Object.assign({}, ly0default, props.myProps));
41432
- const fileList_box = vue.reactive([]);
41436
+ const fileList_box = vue.ref([]);
41433
41437
  props.modelValue.forEach((item, index) => {
41434
- fileList_box.push({
41438
+ fileList_box.value.push({
41435
41439
  name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
41436
41440
  url: item,
41437
41441
  response: {
@@ -41462,9 +41466,9 @@ const hdl = {
41462
41466
  },
41463
41467
  remove (file, fileList) { // 文件列表移除文件时的钩子
41464
41468
  // 重置文件列表, 注意:通过使用splice保持响应性
41465
- 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)));
41466
41470
  const arr = [];
41467
- fileList_box.forEach(i=>{
41471
+ fileList_box.value.forEach(i=>{
41468
41472
  arr.push(i.response.data.src);
41469
41473
  });
41470
41474
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -41472,10 +41476,10 @@ const hdl = {
41472
41476
  },
41473
41477
  success (response, file, fileList) { // 上传
41474
41478
  // 重置文件列表, 注意:通过使用splice保持响应性
41475
- 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)));
41476
41480
  if (response.code === 0) {
41477
41481
  const arr = [];
41478
- fileList_box.forEach(i=>{
41482
+ fileList_box.value.forEach(i=>{
41479
41483
  arr.push(i.response.data.src);
41480
41484
  });
41481
41485
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -41488,7 +41492,7 @@ const hdl = {
41488
41492
  },
41489
41493
  deleteAll () { // 删除全部已上传文件
41490
41494
  // 重置文件列表, 注意:通过使用splice保持响应性
41491
- fileList_box.splice(0, fileList_box.length);
41495
+ fileList_box.value.splice(0, fileList_box.value.length);
41492
41496
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
41493
41497
  emit("update:modelValue", []);
41494
41498
  }
@@ -41503,8 +41507,8 @@ return (_ctx, _cache) => {
41503
41507
  return (vue.openBlock(), vue.createElementBlock("div", null, [
41504
41508
  vue.createVNode(_component_el_upload, {
41505
41509
  action: myProps_box.uploadUrl,
41506
- "file-list": fileList_box,
41507
- "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)),
41508
41512
  "list-type": "text",
41509
41513
  "before-upload": hdl.beforeUpload,
41510
41514
  "on-preview": hdl.preview,
@@ -41530,10 +41534,10 @@ return (_ctx, _cache) => {
41530
41534
  ]),
41531
41535
  _: 1 /* STABLE */
41532
41536
  }, 8 /* PROPS */, ["action", "file-list", "before-upload", "on-preview", "on-remove", "on-success", "limit"]),
41533
- (fileList_box.length>0)
41534
- ? (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 */))
41535
41539
  : vue.createCommentVNode("v-if", true),
41536
- (fileList_box.length>0)
41540
+ (fileList_box.value.length>0)
41537
41541
  ? (vue.openBlock(), vue.createBlock(_component_el_button, {
41538
41542
  key: 1,
41539
41543
  size: "small",
@@ -41583,9 +41587,9 @@ const props = __props;
41583
41587
  const emit = __emit;
41584
41588
 
41585
41589
  const myProps_box = vue.reactive(Object.assign({}, ly0default, props.myProps));
41586
- const fileList_box = vue.reactive([]);
41590
+ const fileList_box = vue.ref([]);
41587
41591
  props.modelValue.forEach((item, index) => {
41588
- fileList_box.push({
41592
+ fileList_box.value.push({
41589
41593
  name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
41590
41594
  url: item,
41591
41595
  response: {
@@ -41616,9 +41620,9 @@ const hdl = {
41616
41620
  },
41617
41621
  remove (file, fileList) { // 文件列表移除文件时的钩子
41618
41622
  // 重置文件列表, 注意:通过使用splice保持响应性
41619
- 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)));
41620
41624
  const arr = [];
41621
- fileList_box.forEach(i=>{
41625
+ fileList_box.value.forEach(i=>{
41622
41626
  arr.push(i.response.data.src);
41623
41627
  });
41624
41628
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -41626,10 +41630,10 @@ const hdl = {
41626
41630
  },
41627
41631
  success (response, file, fileList) { // 上传
41628
41632
  // 重置文件列表, 注意:通过使用splice保持响应性
41629
- 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)));
41630
41634
  if (response.code === 0) {
41631
41635
  const arr = [];
41632
- fileList_box.forEach(i=>{
41636
+ fileList_box.value.forEach(i=>{
41633
41637
  arr.push(i.response.data.src);
41634
41638
  });
41635
41639
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -41642,7 +41646,7 @@ const hdl = {
41642
41646
  },
41643
41647
  deleteAll () { // 删除全部已上传图片
41644
41648
  // 重置文件列表, 注意:通过使用splice保持响应性
41645
- fileList_box.splice(0, fileList_box.length);
41649
+ fileList_box.value.splice(0, fileList_box.value.length);
41646
41650
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
41647
41651
  emit("update:modelValue", []);
41648
41652
  }
@@ -41655,8 +41659,8 @@ return (_ctx, _cache) => {
41655
41659
  return (vue.openBlock(), vue.createElementBlock("div", null, [
41656
41660
  vue.createVNode(_component_el_upload, {
41657
41661
  action: myProps_box.uploadUrl,
41658
- "file-list": fileList_box,
41659
- "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)),
41660
41664
  "list-type": "picture",
41661
41665
  "before-upload": hdl.beforeUpload,
41662
41666
  "on-preview": hdl.preview,
@@ -41680,10 +41684,10 @@ return (_ctx, _cache) => {
41680
41684
  ]),
41681
41685
  _: 1 /* STABLE */
41682
41686
  }, 8 /* PROPS */, ["action", "file-list", "before-upload", "on-preview", "on-remove", "on-success", "limit"]),
41683
- (fileList_box.length>0)
41684
- ? (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 */))
41685
41689
  : vue.createCommentVNode("v-if", true),
41686
- (fileList_box.length>0)
41690
+ (fileList_box.value.length>0)
41687
41691
  ? (vue.openBlock(), vue.createBlock(_component_el_button, {
41688
41692
  key: 1,
41689
41693
  size: "small",
@@ -41734,9 +41738,9 @@ const props = __props;
41734
41738
  const emit = __emit;
41735
41739
 
41736
41740
  const myProps_box = vue.reactive(Object.assign({}, ly0default, props.myProps));
41737
- const fileList_box = vue.reactive([]);
41741
+ const fileList_box = vue.ref([]);
41738
41742
  props.modelValue.forEach((item, index) => {
41739
- fileList_box.push({
41743
+ fileList_box.value.push({
41740
41744
  name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
41741
41745
  url: item,
41742
41746
  response: {
@@ -41772,9 +41776,9 @@ const hdl = {
41772
41776
  },
41773
41777
  remove (file, fileList) { // 文件列表移除文件时的钩子
41774
41778
  // 重置文件列表, 注意:通过使用splice保持响应性
41775
- 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)));
41776
41780
  const arr = [];
41777
- fileList_box.forEach(i=>{
41781
+ fileList_box.value.forEach(i=>{
41778
41782
  arr.push(i.response.data.src);
41779
41783
  });
41780
41784
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
@@ -41791,8 +41795,8 @@ return (_ctx, _cache) => {
41791
41795
  return (vue.openBlock(), vue.createElementBlock("div", null, [
41792
41796
  vue.createVNode(_component_el_upload, {
41793
41797
  action: myProps_box.uploadUrl,
41794
- "file-list": fileList_box,
41795
- "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)),
41796
41800
  "list-type": "picture-card",
41797
41801
  "before-upload": hdl.beforeUpload,
41798
41802
  "on-preview": hdl.preview,
@@ -41826,10 +41830,10 @@ return (_ctx, _cache) => {
41826
41830
  ]),
41827
41831
  _: 1 /* STABLE */
41828
41832
  }, 8 /* PROPS */, ["modelValue"]),
41829
- (fileList_box.length>0)
41830
- ? (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 */))
41831
41835
  : vue.createCommentVNode("v-if", true),
41832
- (fileList_box.length>0)
41836
+ (fileList_box.value.length>0)
41833
41837
  ? (vue.openBlock(), vue.createBlock(_component_el_button, {
41834
41838
  key: 1,
41835
41839
  size: "small",