@yoooloo42/joker 1.0.124 → 1.0.126

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
@@ -43524,7 +43524,7 @@ var script = {
43524
43524
  props: {
43525
43525
  // modelValue: 外部 v-model 绑定的值
43526
43526
  modelValue: {
43527
- type: Array,
43527
+ type: Object,
43528
43528
  default: () => ({})
43529
43529
  },
43530
43530
  myProps: {
@@ -43578,8 +43578,9 @@ const hdl = {
43578
43578
  popup.visible = true;
43579
43579
  },
43580
43580
  submit() {
43581
- // 这里不能使用JSON.parse(JSON.stringify()),否则会切断modelValue_box的响应性
43582
- Object.assign(modelValue_box, popup.formData);
43581
+ modelValue_box[props.myProps.thumb.fieldName] = popup.formData.thumb;
43582
+ modelValue_box[props.myProps.name.fieldName] = popup.formData.name;
43583
+ modelValue_box[props.myProps.number.fieldName] = popup.formData.number;
43583
43584
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
43584
43585
  emit("update:modelValue", modelValue_box);
43585
43586
  popup.visible = false;