@yoooloo42/joker 1.0.125 → 1.0.127

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
@@ -41176,6 +41176,9 @@ const hdl = {
41176
41176
  elementPlus.ElMessage.error('上传文件的大小不能超过 ' + myProps_box.size + ' KB');
41177
41177
  return false
41178
41178
  }
41179
+
41180
+ // 因为是单文件上传,所以上传前要清空文件列表
41181
+ fileList_box.value.splice(0, fileList_box.value.length);
41179
41182
  elementPlus.ElMessage('正在上传 ...');
41180
41183
  return true
41181
41184
  },
@@ -41366,6 +41369,9 @@ const hdl = {
41366
41369
  elementPlus.ElMessage.error('上传文件的大小不能超过 ' + myProps_box.size + ' KB');
41367
41370
  return false
41368
41371
  }
41372
+
41373
+ // 因为是单文件上传,所以上传前要清空文件列表
41374
+ fileList_box.value.splice(0, fileList_box.value.length);
41369
41375
  elementPlus.ElMessage('正在上传 ...');
41370
41376
  return true
41371
41377
  },
@@ -43582,8 +43588,9 @@ const hdl = {
43582
43588
  popup.visible = true;
43583
43589
  },
43584
43590
  submit() {
43585
- // 这里不能使用JSON.parse(JSON.stringify()),否则会切断modelValue_box的响应性
43586
- Object.assign(modelValue_box, popup.formData);
43591
+ modelValue_box[props.myProps.thumb.fieldName] = popup.formData.thumb;
43592
+ modelValue_box[props.myProps.name.fieldName] = popup.formData.name;
43593
+ modelValue_box[props.myProps.number.fieldName] = popup.formData.number;
43587
43594
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
43588
43595
  emit("update:modelValue", modelValue_box);
43589
43596
  popup.visible = false;