@yoooloo42/joker 1.0.99 → 1.0.101

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
@@ -22519,8 +22519,6 @@ const props = __props;
22519
22519
  // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
22520
22520
  const emit = __emit;
22521
22521
 
22522
- let formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
22523
- reactive(Object.assign({}, props.myProps));
22524
22522
  const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
22525
22523
  const propsItem_box = reactive(Object.assign({}, props.item));
22526
22524
 
@@ -22531,13 +22529,13 @@ const style = ref({
22531
22529
 
22532
22530
  const hdlClick = () => {
22533
22531
  if(propsItem_box.hdlLabelClick){
22534
- propsItem_box.hdlLabelClick({formData: formData_box, scopeThis: scopeThis_box});
22532
+ propsItem_box.hdlLabelClick({formData: props.modelValue, scopeThis: scopeThis_box});
22535
22533
  }
22536
22534
  };
22537
22535
 
22538
22536
  // 表单数据监听
22539
22537
  watch(
22540
- formData_box, // 监听 reactive 对象时,默认是深层监听
22538
+ props.modelValue, // 监听 reactive 对象时,默认是深层监听
22541
22539
  (newVal, oldVal) => {
22542
22540
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
22543
22541
  emit("update:modelValue", newVal);
@@ -22620,7 +22618,7 @@ const props = __props;
22620
22618
  // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
22621
22619
  const emit = __emit;
22622
22620
 
22623
- let formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
22621
+ let formData_box = reactive(props.modelValue);
22624
22622
  const formProps_box = reactive(Object.assign({}, props.myProps));
22625
22623
  const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
22626
22624
  const propsItem_box = reactive(Object.assign({}, props.item));
@@ -22834,7 +22832,7 @@ const style = reactive({
22834
22832
 
22835
22833
  // 表单数据监听
22836
22834
  watch(
22837
- formData_box, // 监听 reactive 对象时,默认是深层监听
22835
+ formData_box,
22838
22836
  (newVal, oldVal) => {
22839
22837
 
22840
22838
  console.log('测试 000 监听', newVal);
@@ -22844,7 +22842,7 @@ watch(
22844
22842
  emit("update:modelValue", newVal);
22845
22843
  },
22846
22844
  {
22847
- deep: true,
22845
+ deep: true, // 深层监听
22848
22846
  }
22849
22847
  );
22850
22848
 
@@ -23383,7 +23381,7 @@ const props = __props;
23383
23381
  // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
23384
23382
  const emit = __emit;
23385
23383
 
23386
- let formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
23384
+ let formData_box = reactive(props.modelValue);
23387
23385
  const formProps_box = reactive(Object.assign({}, props.myProps));
23388
23386
  const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
23389
23387
 
@@ -23443,7 +23441,7 @@ const hdl = {
23443
23441
 
23444
23442
  // 表单数据监听
23445
23443
  watch(
23446
- formData_box, // 监听 reactive 对象时,默认是深层监听
23444
+ formData_box,
23447
23445
  (newVal, oldVal) => {
23448
23446
 
23449
23447
  console.log('测试 222 监听', newVal);
@@ -23453,7 +23451,7 @@ watch(
23453
23451
  emit("update:modelValue", newVal);
23454
23452
  },
23455
23453
  {
23456
- deep: true,
23454
+ deep: true, // 深层监听
23457
23455
  }
23458
23456
  );
23459
23457
 
@@ -23646,13 +23644,13 @@ const props = __props;
23646
23644
  // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
23647
23645
  const emit = __emit;
23648
23646
 
23649
- let formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
23647
+ let formData_box = reactive(props.modelValue);
23650
23648
  const formProps_box = reactive(Object.assign({}, ly0default$2.myProps, props.myProps));
23651
23649
  const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
23652
23650
 
23653
23651
  // 表单数据监听
23654
23652
  watch(
23655
- formData_box, // 监听 reactive 对象时,默认是深层监听
23653
+ formData_box,
23656
23654
  (newVal, oldVal) => {
23657
23655
 
23658
23656
  console.log('测试 444 监听', newVal);
@@ -23662,7 +23660,7 @@ watch(
23662
23660
  emit("update:modelValue", newVal);
23663
23661
  },
23664
23662
  {
23665
- deep: true,
23663
+ deep: true, // 深层监听
23666
23664
  }
23667
23665
  );
23668
23666