@yoooloo42/joker 1.0.99 → 1.0.100

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
@@ -22523,8 +22523,6 @@ const props = __props;
22523
22523
  // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
22524
22524
  const emit = __emit;
22525
22525
 
22526
- let formData_box = vue.reactive(JSON.parse(JSON.stringify(props.modelValue)));
22527
- vue.reactive(Object.assign({}, props.myProps));
22528
22526
  const scopeThis_box = vue.reactive(Object.assign({}, props.scopeThis));
22529
22527
  const propsItem_box = vue.reactive(Object.assign({}, props.item));
22530
22528
 
@@ -22535,13 +22533,13 @@ const style = vue.ref({
22535
22533
 
22536
22534
  const hdlClick = () => {
22537
22535
  if(propsItem_box.hdlLabelClick){
22538
- propsItem_box.hdlLabelClick({formData: formData_box, scopeThis: scopeThis_box});
22536
+ propsItem_box.hdlLabelClick({formData: props.modelValue, scopeThis: scopeThis_box});
22539
22537
  }
22540
22538
  };
22541
22539
 
22542
22540
  // 表单数据监听
22543
22541
  vue.watch(
22544
- formData_box, // 监听 reactive 对象时,默认是深层监听
22542
+ props.modelValue, // 监听 reactive 对象时,默认是深层监听
22545
22543
  (newVal, oldVal) => {
22546
22544
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
22547
22545
  emit("update:modelValue", newVal);
@@ -22617,14 +22615,10 @@ var script$g = {
22617
22615
  default: () => ({})
22618
22616
  }
22619
22617
  },
22620
- emits: ['update:modelValue', 'change'],
22621
- setup(__props, { emit: __emit }) {
22618
+ setup(__props) {
22622
22619
 
22623
22620
  const props = __props;
22624
- // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
22625
- const emit = __emit;
22626
22621
 
22627
- let formData_box = vue.reactive(JSON.parse(JSON.stringify(props.modelValue)));
22628
22622
  const formProps_box = vue.reactive(Object.assign({}, props.myProps));
22629
22623
  const scopeThis_box = vue.reactive(Object.assign({}, props.scopeThis));
22630
22624
  const propsItem_box = vue.reactive(Object.assign({}, props.item));
@@ -22633,7 +22627,7 @@ const input = vue.reactive({
22633
22627
  placeholder: propsItem_box.placeholder || formProps_box.para.placeholder.input,
22634
22628
  showPassword: !!propsItem_box.showPassword,
22635
22629
  hdlCannotInput: value => { // 解决偶发不能输入的问题
22636
- formData_box[propsItem_box.fieldName] = value;
22630
+ props.modelValue[propsItem_box.fieldName] = value;
22637
22631
  }
22638
22632
  });
22639
22633
 
@@ -22643,12 +22637,12 @@ const select = vue.reactive({
22643
22637
  if (propsItem_box.items) {
22644
22638
  return propsItem_box.items
22645
22639
  } else if (propsItem_box.hdlGetItems) {
22646
- return propsItem_box.hdlGetItems({formData: formData_box, scopeThis: scopeThis_box})
22640
+ return propsItem_box.hdlGetItems({formData: props.modelValue, scopeThis: scopeThis_box})
22647
22641
  }
22648
22642
  }),
22649
22643
  hdlChange: value => {
22650
22644
  if (propsItem_box.hdlChange) {
22651
- propsItem_box.hdlChange({formData: formData_box, scopeThis: scopeThis_box, value});
22645
+ propsItem_box.hdlChange({formData: props.modelValue, scopeThis: scopeThis_box, value});
22652
22646
  }
22653
22647
  }
22654
22648
  });
@@ -22680,7 +22674,7 @@ const datePicker = vue.reactive({
22680
22674
  }),
22681
22675
  hdlChange: value => {
22682
22676
  if (propsItem_box.hdlChange) {
22683
- propsItem_box.hdlChange({formData: formData_box, scopeThis: scopeThis_box, value});
22677
+ propsItem_box.hdlChange({formData: props.modelValue, scopeThis: scopeThis_box, value});
22684
22678
  }
22685
22679
  }
22686
22680
  });
@@ -22688,7 +22682,7 @@ const datePicker = vue.reactive({
22688
22682
  const ly0switch = vue.reactive({
22689
22683
  hdlChange: value => {
22690
22684
  if (propsItem_box.hdlChange) {
22691
- propsItem_box.hdlChange({formData: formData_box, scopeThis: scopeThis_box, value});
22685
+ propsItem_box.hdlChange({formData: props.modelValue, scopeThis: scopeThis_box, value});
22692
22686
  }
22693
22687
  }
22694
22688
  });
@@ -22696,7 +22690,7 @@ const ly0switch = vue.reactive({
22696
22690
  const radioGroup = vue.reactive({
22697
22691
  hdlChange: value => {
22698
22692
  if (propsItem_box.hdlChange) {
22699
- propsItem_box.hdlChange({formData: formData_box, scopeThis: scopeThis_box, value});
22693
+ propsItem_box.hdlChange({formData: props.modelValue, scopeThis: scopeThis_box, value});
22700
22694
  }
22701
22695
  }
22702
22696
  });
@@ -22705,20 +22699,20 @@ const image = vue.reactive({
22705
22699
  getSrc: vue.computed(() => {
22706
22700
  if (
22707
22701
  propsItem_box.imageDelete &&
22708
- formData_box[propsItem_box.imageDelete] &&
22709
- (formData_box[propsItem_box.imageDelete] === true ||
22710
- formData_box[propsItem_box.imageDelete] === 'true') // 图片已删除
22702
+ props.modelValue[propsItem_box.imageDelete] &&
22703
+ (props.modelValue[propsItem_box.imageDelete] === true ||
22704
+ props.modelValue[propsItem_box.imageDelete] === 'true') // 图片已删除
22711
22705
  ) {
22712
22706
  return ['']
22713
22707
  }
22714
- if (formData_box[propsItem_box.fieldName]) {
22715
- return formData_box[propsItem_box.fieldName]
22708
+ if (props.modelValue[propsItem_box.fieldName]) {
22709
+ return props.modelValue[propsItem_box.fieldName]
22716
22710
  }
22717
22711
  return ['']
22718
22712
  }),
22719
22713
  delete: ()=>{
22720
- formData_box[propsItem_box.imageDelete] =
22721
- !formData_box[propsItem_box.imageDelete];
22714
+ props.modelValue[propsItem_box.imageDelete] =
22715
+ !props.modelValue[propsItem_box.imageDelete];
22722
22716
  }
22723
22717
  });
22724
22718
 
@@ -22726,32 +22720,32 @@ const images = vue.reactive({
22726
22720
  getSrc: (itemImages, indexImages) => {
22727
22721
  if (
22728
22722
  !propsItem_box.imageDelete ||
22729
- !formData_box[propsItem_box.imageDelete].includes(itemImages)
22723
+ !props.modelValue[propsItem_box.imageDelete].includes(itemImages)
22730
22724
  ) {
22731
22725
  return itemImages
22732
22726
  }
22733
22727
  return ''
22734
22728
  },
22735
22729
  delete: (itemImages, indexImages) => {
22736
- if (!formData_box[propsItem_box.imageDelete].includes(itemImages)) {
22737
- formData_box[propsItem_box.imageDelete].push(itemImages);
22730
+ if (!props.modelValue[propsItem_box.imageDelete].includes(itemImages)) {
22731
+ props.modelValue[propsItem_box.imageDelete].push(itemImages);
22738
22732
  return
22739
22733
  }
22740
22734
 
22741
- formData_box[propsItem_box.imageDelete] = formData_box[propsItem_box.imageDelete].filter(i => {
22735
+ props.modelValue[propsItem_box.imageDelete] = props.modelValue[propsItem_box.imageDelete].filter(i => {
22742
22736
  return i !== itemImages
22743
22737
  });
22744
22738
  },
22745
22739
  show: vue.computed(()=>{
22746
22740
  let result = [];
22747
22741
  if (!propsItem_box.imageDelete) {
22748
- formData_box[propsItem_box.fieldName].forEach(i => {
22742
+ props.modelValue[propsItem_box.fieldName].forEach(i => {
22749
22743
  result.push(i);
22750
22744
  });
22751
22745
  } else {
22752
- formData_box[propsItem_box.fieldName]
22746
+ props.modelValue[propsItem_box.fieldName]
22753
22747
  .filter(i => {
22754
- return !formData_box[propsItem_box.imageDelete].includes(i)
22748
+ return !props.modelValue[propsItem_box.imageDelete].includes(i)
22755
22749
  })
22756
22750
  .forEach(i => {
22757
22751
  result.push(i);
@@ -22769,49 +22763,49 @@ const video = vue.reactive({
22769
22763
  src: vue.computed(()=>{
22770
22764
  if (
22771
22765
  propsItem_box.videoDelete &&
22772
- formData_box[propsItem_box.videoDelete] &&
22773
- (formData_box[propsItem_box.videoDelete] === true ||
22774
- formData_box[propsItem_box.videoDelete] === 'true') // 图片已删除
22766
+ props.modelValue[propsItem_box.videoDelete] &&
22767
+ (props.modelValue[propsItem_box.videoDelete] === true ||
22768
+ props.modelValue[propsItem_box.videoDelete] === 'true') // 图片已删除
22775
22769
  ) {
22776
22770
  return ''
22777
22771
  }
22778
- if (formData_box[propsItem_box.fieldName]) {
22779
- return formData_box[propsItem_box.fieldName]
22772
+ if (props.modelValue[propsItem_box.fieldName]) {
22773
+ return props.modelValue[propsItem_box.fieldName]
22780
22774
  }
22781
22775
  return ''
22782
22776
  }),
22783
22777
  poster: vue.computed(()=>{
22784
22778
  if (
22785
22779
  propsItem_box.videoDelete &&
22786
- formData_box[propsItem_box.videoDelete] &&
22787
- (formData_box[propsItem_box.videoDelete] === true ||
22788
- formData_box[propsItem_box.videoDelete] === 'true') // 图片已删除
22780
+ props.modelValue[propsItem_box.videoDelete] &&
22781
+ (props.modelValue[propsItem_box.videoDelete] === true ||
22782
+ props.modelValue[propsItem_box.videoDelete] === 'true') // 图片已删除
22789
22783
  ) {
22790
22784
  return ''
22791
22785
  }
22792
- if (formData_box[propsItem_box.poster]) {
22793
- return formData_box[propsItem_box.poster]
22786
+ if (props.modelValue[propsItem_box.poster]) {
22787
+ return props.modelValue[propsItem_box.poster]
22794
22788
  }
22795
22789
  return ''
22796
22790
  }),
22797
22791
  delete: ()=>{
22798
- formData_box[propsItem_box.videoDelete] =
22799
- !formData_box[propsItem_box.videoDelete];
22792
+ props.modelValue[propsItem_box.videoDelete] =
22793
+ !props.modelValue[propsItem_box.videoDelete];
22800
22794
  },
22801
22795
  });
22802
22796
 
22803
22797
  const download = vue.reactive({
22804
22798
  fileName: propsItem_box.downloadFileName || formProps_box.para.download.fileName,
22805
22799
  downloadLabel: vue.computed(() => {
22806
- if (!formData_box[propsItem_box.fieldName]) {
22800
+ if (!props.modelValue[propsItem_box.fieldName]) {
22807
22801
  return formProps_box.para.download.downloadLabelNoSrc
22808
22802
  }
22809
22803
  if (propsItem_box.hdlGetDownloadLabel) {
22810
- return propsItem_box.hdlGetDownloadLabel({formData: formData_box, scopeThis: scopeThis_box})
22804
+ return propsItem_box.hdlGetDownloadLabel({formData: props.modelValue, scopeThis: scopeThis_box})
22811
22805
  }
22812
22806
  return formProps_box.para.download.downloadLabel
22813
22807
  }),
22814
- downloadSrc: formData_box[propsItem_box.fieldName] || ''
22808
+ downloadSrc: props.modelValue[propsItem_box.fieldName] || ''
22815
22809
  });
22816
22810
 
22817
22811
  const upload = vue.reactive({
@@ -22836,22 +22830,6 @@ const style = vue.reactive({
22836
22830
  download: vue.computed(()=>styleModule.input.download()),
22837
22831
  });
22838
22832
 
22839
- // 表单数据监听
22840
- vue.watch(
22841
- formData_box, // 监听 reactive 对象时,默认是深层监听
22842
- (newVal, oldVal) => {
22843
-
22844
- console.log('测试 000 监听', newVal);
22845
- console.log('测试 111 监听', oldVal);
22846
-
22847
- // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
22848
- emit("update:modelValue", newVal);
22849
- },
22850
- {
22851
- deep: true,
22852
- }
22853
- );
22854
-
22855
22833
  return (_ctx, _cache) => {
22856
22834
  const _component_el_input = vue.resolveComponent("el-input");
22857
22835
  const _component_el_option = vue.resolveComponent("el-option");
@@ -22889,34 +22867,34 @@ return (_ctx, _cache) => {
22889
22867
  ? (vue.openBlock(), vue.createElementBlock("div", {
22890
22868
  key: 0,
22891
22869
  style: vue.normalizeStyle(style.text(propsItem_box, formProps_box))
22892
- }, vue.toDisplayString(vue.unref(formData_box)[propsItem_box.fieldName] ? vue.unref(formData_box)[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22870
+ }, vue.toDisplayString(props.modelValue[propsItem_box.fieldName] ? props.modelValue[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22893
22871
  : vue.createCommentVNode("v-if", true),
22894
22872
  (propsItem_box.inputType === 'text0')
22895
22873
  ? (vue.openBlock(), vue.createElementBlock("div", {
22896
22874
  key: 1,
22897
22875
  style: vue.normalizeStyle(style.text0(propsItem_box))
22898
- }, vue.toDisplayString(vue.unref(formData_box)[propsItem_box.fieldName] ? vue.unref(formData_box)[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22876
+ }, vue.toDisplayString(props.modelValue[propsItem_box.fieldName] ? props.modelValue[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22899
22877
  : vue.createCommentVNode("v-if", true),
22900
22878
  (!propsItem_box.inputType)
22901
22879
  ? (vue.openBlock(), vue.createElementBlock("div", {
22902
22880
  key: 2,
22903
22881
  style: vue.normalizeStyle(style.text(propsItem_box, formProps_box))
22904
- }, vue.toDisplayString(vue.unref(formData_box)[propsItem_box.fieldName] ? vue.unref(formData_box)[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22882
+ }, vue.toDisplayString(props.modelValue[propsItem_box.fieldName] ? props.modelValue[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22905
22883
  : vue.createCommentVNode("v-if", true),
22906
22884
  (propsItem_box.inputType === 'expression')
22907
22885
  ? (vue.openBlock(), vue.createElementBlock("div", {
22908
22886
  key: 3,
22909
22887
  style: vue.normalizeStyle(style.text(propsItem_box, formProps_box))
22910
- }, vue.toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: vue.unref(formData_box), scopeThis: __props.scopeThis})
22911
- ? propsItem_box.hdlExpression({formData: vue.unref(formData_box), scopeThis: scopeThis_box})
22888
+ }, vue.toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: props.modelValue, scopeThis: __props.scopeThis})
22889
+ ? propsItem_box.hdlExpression({formData: props.modelValue, scopeThis: scopeThis_box})
22912
22890
  : ' '), 5 /* TEXT, STYLE */))
22913
22891
  : vue.createCommentVNode("v-if", true),
22914
22892
  (propsItem_box.inputType === 'expression0')
22915
22893
  ? (vue.openBlock(), vue.createElementBlock("div", {
22916
22894
  key: 4,
22917
22895
  style: vue.normalizeStyle(style.text0(propsItem_box))
22918
- }, vue.toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: vue.unref(formData_box), scopeThis: scopeThis_box})
22919
- ? propsItem_box.hdlExpression({formData: vue.unref(formData_box), scopeThis: scopeThis_box})
22896
+ }, vue.toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: props.modelValue, scopeThis: scopeThis_box})
22897
+ ? propsItem_box.hdlExpression({formData: props.modelValue, scopeThis: scopeThis_box})
22920
22898
  : ' '), 5 /* TEXT, STYLE */))
22921
22899
  : vue.createCommentVNode("v-if", true),
22922
22900
  (propsItem_box.inputType === 'line')
@@ -22929,8 +22907,8 @@ return (_ctx, _cache) => {
22929
22907
  (propsItem_box.inputType === 'input')
22930
22908
  ? (vue.openBlock(), vue.createBlock(_component_el_input, {
22931
22909
  key: 6,
22932
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
22933
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
22910
+ modelValue: props.modelValue[propsItem_box.fieldName],
22911
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
22934
22912
  placeholder: input.placeholder,
22935
22913
  style: vue.normalizeStyle(style.input(propsItem_box, formProps_box)),
22936
22914
  onInput: input.hdlCannotInput,
@@ -22941,8 +22919,8 @@ return (_ctx, _cache) => {
22941
22919
  ? (vue.openBlock(), vue.createBlock(_component_el_select, {
22942
22920
  key: 7,
22943
22921
  class: "deep-input",
22944
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
22945
- "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
22922
+ modelValue: props.modelValue[propsItem_box.fieldName],
22923
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
22946
22924
  placeholder: select.placeholder,
22947
22925
  filterable: "",
22948
22926
  style: vue.normalizeStyle(style.input(propsItem_box, formProps_box)),
@@ -22964,8 +22942,8 @@ return (_ctx, _cache) => {
22964
22942
  ? (vue.openBlock(), vue.createBlock(_component_el_date_picker, {
22965
22943
  key: 8,
22966
22944
  class: "deep-input",
22967
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
22968
- "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
22945
+ modelValue: props.modelValue[propsItem_box.fieldName],
22946
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
22969
22947
  type: propsItem_box.type ? propsItem_box.type : 'datetime',
22970
22948
  placeholder: datePicker.placeholder,
22971
22949
  format: datePicker.format,
@@ -22976,8 +22954,8 @@ return (_ctx, _cache) => {
22976
22954
  (propsItem_box.inputType === 'input-number')
22977
22955
  ? (vue.openBlock(), vue.createBlock(_component_el_input_number, {
22978
22956
  key: 9,
22979
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
22980
- "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
22957
+ modelValue: props.modelValue[propsItem_box.fieldName],
22958
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
22981
22959
  size: style.input_number(propsItem_box).facade.size,
22982
22960
  min: 'min' in propsItem_box ? propsItem_box.min : 1,
22983
22961
  max: 'max' in propsItem_box ? propsItem_box.max : 100,
@@ -22988,8 +22966,8 @@ return (_ctx, _cache) => {
22988
22966
  (propsItem_box.inputType === 'switch')
22989
22967
  ? (vue.openBlock(), vue.createBlock(_component_el_switch, {
22990
22968
  key: 10,
22991
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
22992
- "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
22969
+ modelValue: props.modelValue[propsItem_box.fieldName],
22970
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
22993
22971
  "active-text": propsItem_box.activeText,
22994
22972
  "inactive-text": propsItem_box.inactiveText,
22995
22973
  "active-value": propsItem_box.activeValue,
@@ -23002,8 +22980,8 @@ return (_ctx, _cache) => {
23002
22980
  (propsItem_box.inputType === 'radio-group')
23003
22981
  ? (vue.openBlock(), vue.createBlock(_component_el_radio_group, {
23004
22982
  key: 11,
23005
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23006
- "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
22983
+ modelValue: props.modelValue[propsItem_box.fieldName],
22984
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23007
22985
  disabled: !!propsItem_box.disabled,
23008
22986
  onChange: radioGroup.hdlChange
23009
22987
  }, {
@@ -23048,7 +23026,7 @@ return (_ctx, _cache) => {
23048
23026
  plain: style.button_group(propsItem_box, item0, item1).button.facade.plain,
23049
23027
  round: style.button_group(propsItem_box, item0, item1).button.facade.round,
23050
23028
  circle: style.button_group(propsItem_box, item0, item1).button.facade.circle,
23051
- onClick: $event => (item1.hdlClick ? item1.hdlClick({formData: vue.unref(formData_box), scopeThis: scopeThis_box}) : null),
23029
+ onClick: $event => (item1.hdlClick ? item1.hdlClick({formData: props.modelValue, scopeThis: scopeThis_box}) : null),
23052
23030
  key: index1
23053
23031
  }, {
23054
23032
  default: vue.withCtx(() => [
@@ -23082,15 +23060,15 @@ return (_ctx, _cache) => {
23082
23060
  }, null, 8 /* PROPS */, ["style", "src", "preview-src-list"])
23083
23061
  ]),
23084
23062
  vue.createCommentVNode(" 设置了图片删除功能,同时图片不为空 "),
23085
- (!!propsItem_box.imageDelete && !!vue.unref(formData_box)[propsItem_box.fieldName])
23063
+ (!!propsItem_box.imageDelete && !!props.modelValue[propsItem_box.fieldName])
23086
23064
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$4, [
23087
23065
  vue.createVNode(_component_el_button, {
23088
23066
  size: "small",
23089
- icon: !vue.unref(formData_box)[propsItem_box.imageDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
23067
+ icon: !props.modelValue[propsItem_box.imageDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
23090
23068
  onClick: image.delete
23091
23069
  }, {
23092
23070
  default: vue.withCtx(() => [
23093
- vue.createTextVNode(vue.toDisplayString(vue.unref(formData_box)[propsItem_box.imageDelete] ? '图片已删除,恢复' : '删除'), 1 /* TEXT */)
23071
+ vue.createTextVNode(vue.toDisplayString(props.modelValue[propsItem_box.imageDelete] ? '图片已删除,恢复' : '删除'), 1 /* TEXT */)
23094
23072
  ]),
23095
23073
  _: 1 /* STABLE */
23096
23074
  }, 8 /* PROPS */, ["icon", "onClick"])
@@ -23101,7 +23079,7 @@ return (_ctx, _cache) => {
23101
23079
  vue.createCommentVNode(" 多个图片 "),
23102
23080
  (propsItem_box.inputType === 'images')
23103
23081
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$1, [
23104
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(formData_box)[propsItem_box.fieldName], (itemImages, indexImages) => {
23082
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.modelValue[propsItem_box.fieldName], (itemImages, indexImages) => {
23105
23083
  return (vue.openBlock(), vue.createElementBlock("div", {
23106
23084
  key: indexImages,
23107
23085
  style: vue.normalizeStyle(style.images(propsItem_box, formProps_box).itemBox)
@@ -23121,7 +23099,7 @@ return (_ctx, _cache) => {
23121
23099
  onClick: $event => (images.delete(itemImages, indexImages))
23122
23100
  }, {
23123
23101
  default: vue.withCtx(() => [
23124
- vue.createTextVNode(vue.toDisplayString(vue.unref(formData_box)[propsItem_box.imageDelete].includes(itemImages) ? '恢复' : '删除'), 1 /* TEXT */)
23102
+ vue.createTextVNode(vue.toDisplayString(props.modelValue[propsItem_box.imageDelete].includes(itemImages) ? '恢复' : '删除'), 1 /* TEXT */)
23125
23103
  ]),
23126
23104
  _: 2 /* DYNAMIC */
23127
23105
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"])
@@ -23138,8 +23116,8 @@ return (_ctx, _cache) => {
23138
23116
  style: vue.normalizeStyle(style.richtext(propsItem_box, formProps_box))
23139
23117
  }, [
23140
23118
  vue.createVNode(_component_ly0Richtext, {
23141
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23142
- "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23119
+ modelValue: props.modelValue[propsItem_box.fieldName],
23120
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23143
23121
  myProps: richtextProps.value
23144
23122
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23145
23123
  ], 4 /* STYLE */))
@@ -23148,7 +23126,7 @@ return (_ctx, _cache) => {
23148
23126
  (propsItem_box.inputType === 'richtextShow')
23149
23127
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
23150
23128
  vue.createElementVNode("div", {
23151
- innerHTML: vue.unref(formData_box)[propsItem_box.fieldName]
23129
+ innerHTML: props.modelValue[propsItem_box.fieldName]
23152
23130
  }, null, 8 /* PROPS */, _hoisted_8)
23153
23131
  ]))
23154
23132
  : vue.createCommentVNode("v-if", true),
@@ -23180,15 +23158,15 @@ return (_ctx, _cache) => {
23180
23158
  ], 8 /* PROPS */, _hoisted_10)
23181
23159
  ]),
23182
23160
  vue.createCommentVNode(" 设置了视频删除功能,同时视频不为空 "),
23183
- (!!propsItem_box.videoDelete && !!vue.unref(formData_box)[propsItem_box.fieldName])
23161
+ (!!propsItem_box.videoDelete && !!props.modelValue[propsItem_box.fieldName])
23184
23162
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
23185
23163
  vue.createVNode(_component_el_button, {
23186
23164
  size: "small",
23187
- icon: !vue.unref(formData_box)[propsItem_box.videoDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
23165
+ icon: !props.modelValue[propsItem_box.videoDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
23188
23166
  onClick: video.delete
23189
23167
  }, {
23190
23168
  default: vue.withCtx(() => [
23191
- vue.createTextVNode(vue.toDisplayString(!!vue.unref(formData_box)[propsItem_box.videoDelete] ? '视频已删除,恢复' : '删除'), 1 /* TEXT */)
23169
+ vue.createTextVNode(vue.toDisplayString(!!props.modelValue[propsItem_box.videoDelete] ? '视频已删除,恢复' : '删除'), 1 /* TEXT */)
23192
23170
  ]),
23193
23171
  _: 1 /* STABLE */
23194
23172
  }, 8 /* PROPS */, ["icon", "onClick"])
@@ -23200,7 +23178,7 @@ return (_ctx, _cache) => {
23200
23178
  vue.createCommentVNode(" 下载 "),
23201
23179
  (propsItem_box.inputType === 'download')
23202
23180
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_15, [
23203
- (vue.unref(formData_box)[propsItem_box.fieldName])
23181
+ (props.modelValue[propsItem_box.fieldName])
23204
23182
  ? (vue.openBlock(), vue.createElementBlock("a", {
23205
23183
  key: 0,
23206
23184
  style: vue.normalizeStyle(style.download.style),
@@ -23219,8 +23197,8 @@ return (_ctx, _cache) => {
23219
23197
  (propsItem_box.inputType === 'upload')
23220
23198
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
23221
23199
  vue.createVNode(_component_ly0Upload, {
23222
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23223
- "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23200
+ modelValue: props.modelValue[propsItem_box.fieldName],
23201
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23224
23202
  myProps: {uploadUrl: upload.uploadUrl}
23225
23203
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23226
23204
  ]))
@@ -23229,8 +23207,8 @@ return (_ctx, _cache) => {
23229
23207
  (propsItem_box.inputType === 'upload-drag')
23230
23208
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, [
23231
23209
  vue.createVNode(_component_ly0Upload_drag, {
23232
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23233
- "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23210
+ modelValue: props.modelValue[propsItem_box.fieldName],
23211
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23234
23212
  myProps: {uploadUrl: upload.uploadUrl}
23235
23213
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23236
23214
  ]))
@@ -23239,8 +23217,8 @@ return (_ctx, _cache) => {
23239
23217
  (propsItem_box.inputType === 'upload-picture')
23240
23218
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
23241
23219
  vue.createVNode(_component_ly0Upload_picture, {
23242
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23243
- "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23220
+ modelValue: props.modelValue[propsItem_box.fieldName],
23221
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23244
23222
  myProps: {uploadUrl: upload.uploadUrl_image}
23245
23223
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23246
23224
  ]))
@@ -23249,8 +23227,8 @@ return (_ctx, _cache) => {
23249
23227
  (propsItem_box.inputType === 'upload-picture-card')
23250
23228
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20, [
23251
23229
  vue.createVNode(_component_ly0Upload_pictureCard, {
23252
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23253
- "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23230
+ modelValue: props.modelValue[propsItem_box.fieldName],
23231
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23254
23232
  myProps: {uploadUrl: upload.uploadUrl_image}
23255
23233
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23256
23234
  ]))
@@ -23259,8 +23237,8 @@ return (_ctx, _cache) => {
23259
23237
  (propsItem_box.inputType === 'upload-avatar')
23260
23238
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_21, [
23261
23239
  vue.createVNode(_component_ly0Upload_avatar, {
23262
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23263
- "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23240
+ modelValue: props.modelValue[propsItem_box.fieldName],
23241
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23264
23242
  myProps: {uploadUrl: upload.uploadUrl_image}
23265
23243
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23266
23244
  ]))
@@ -23269,8 +23247,8 @@ return (_ctx, _cache) => {
23269
23247
  (propsItem_box.inputType === 'upload-carplate')
23270
23248
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_22, [
23271
23249
  vue.createVNode(_component_ly0Upload_carplate, {
23272
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23273
- "onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23250
+ modelValue: props.modelValue[propsItem_box.fieldName],
23251
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23274
23252
  myProps: {uploadUrl: upload.uploadUrl_carplate}
23275
23253
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23276
23254
  ]))
@@ -23279,8 +23257,8 @@ return (_ctx, _cache) => {
23279
23257
  (propsItem_box.inputType === 'd3gbt2260')
23280
23258
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_23, [
23281
23259
  vue.createVNode(_component_ly0gbt2260, {
23282
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23283
- "onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23260
+ modelValue: props.modelValue[propsItem_box.fieldName],
23261
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23284
23262
  myProps: {readOnly: propsItem_box.readOnly}
23285
23263
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23286
23264
  ]))
@@ -23289,8 +23267,8 @@ return (_ctx, _cache) => {
23289
23267
  (propsItem_box.inputType === 'd7group')
23290
23268
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_24, [
23291
23269
  vue.createVNode(_component_ly0d7group, {
23292
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23293
- "onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23270
+ modelValue: props.modelValue[propsItem_box.fieldName],
23271
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23294
23272
  myProps: {readOnly: propsItem_box.readOnly}
23295
23273
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23296
23274
  ]))
@@ -23299,8 +23277,8 @@ return (_ctx, _cache) => {
23299
23277
  (propsItem_box.inputType === 'd7postal')
23300
23278
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_25, [
23301
23279
  vue.createVNode(_component_ly0d7postal, {
23302
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23303
- "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23280
+ modelValue: props.modelValue[propsItem_box.fieldName],
23281
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23304
23282
  myProps: {readOnly: propsItem_box.readOnly}
23305
23283
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23306
23284
  ]))
@@ -23309,8 +23287,8 @@ return (_ctx, _cache) => {
23309
23287
  (propsItem_box.inputType === 'd7price')
23310
23288
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26, [
23311
23289
  vue.createVNode(_component_ly0d7price, {
23312
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23313
- "onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23290
+ modelValue: props.modelValue[propsItem_box.fieldName],
23291
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23314
23292
  myProps: {readOnly: propsItem_box.readOnly}
23315
23293
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23316
23294
  ]))
@@ -23319,8 +23297,8 @@ return (_ctx, _cache) => {
23319
23297
  (propsItem_box.inputType === 'd7size')
23320
23298
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_27, [
23321
23299
  vue.createVNode(_component_ly0d7size, {
23322
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23323
- "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((vue.unref(formData_box)[propsItem_box.fieldName]) = $event)),
23300
+ modelValue: props.modelValue[propsItem_box.fieldName],
23301
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23324
23302
  myProps: {readOnly: propsItem_box.readOnly}
23325
23303
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23326
23304
  ]))
@@ -23329,8 +23307,8 @@ return (_ctx, _cache) => {
23329
23307
  (propsItem_box.inputType === 'd7thumb')
23330
23308
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_28, [
23331
23309
  vue.createVNode(_component_ly0d7thumb, {
23332
- modelValue: vue.unref(formData_box),
23333
- "onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23310
+ modelValue: props.modelValue,
23311
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = $event => ((props.modelValue) = $event)),
23334
23312
  myProps: {
23335
23313
  thumb: {
23336
23314
  fieldName: propsItem_box.thumb.fieldName || formProps_box.para.ly0d7thumb.thumb.fieldName,
@@ -23380,14 +23358,10 @@ var script$f = {
23380
23358
  default: () => ({})
23381
23359
  }
23382
23360
  },
23383
- emits: ['update:modelValue', 'change'],
23384
- setup(__props, { emit: __emit }) {
23361
+ setup(__props) {
23385
23362
 
23386
23363
  const props = __props;
23387
- // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
23388
- const emit = __emit;
23389
23364
 
23390
- let formData_box = vue.reactive(JSON.parse(JSON.stringify(props.modelValue)));
23391
23365
  const formProps_box = vue.reactive(Object.assign({}, props.myProps));
23392
23366
  const scopeThis_box = vue.reactive(Object.assign({}, props.scopeThis));
23393
23367
 
@@ -23405,7 +23379,7 @@ const hdl = {
23405
23379
  if(formProps_box.submit.handle){
23406
23380
  // 执行用户句柄
23407
23381
  const result = await formProps_box.submit.handle({
23408
- formData: formData_box,
23382
+ formData: props.modelValue,
23409
23383
  scopeThis: scopeThis_box
23410
23384
  });
23411
23385
  if(result.code !== 0){
@@ -23417,7 +23391,7 @@ const hdl = {
23417
23391
  if(formProps_box.submit.url){
23418
23392
  const result = await request.ly0.ly0request({
23419
23393
  url: formProps_box.submit.url,
23420
- data: formData_box
23394
+ data: props.modelValue
23421
23395
  });
23422
23396
  if(result.code !== 0){
23423
23397
  return
@@ -23428,7 +23402,7 @@ const hdl = {
23428
23402
  if(formProps_box.submit.storpro){
23429
23403
  const result = await request.ly0.storpro({
23430
23404
  storproName: formProps_box.submit.storpro,
23431
- data: formData_box
23405
+ data: props.modelValue
23432
23406
  });
23433
23407
  if(result.code !== 0){
23434
23408
  return
@@ -23441,26 +23415,10 @@ const hdl = {
23441
23415
  }
23442
23416
 
23443
23417
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
23444
- emit("update:modelValue", formData_box);
23418
+ emit("update:modelValue", props.modelValue);
23445
23419
  }
23446
23420
  };
23447
23421
 
23448
- // 表单数据监听
23449
- vue.watch(
23450
- formData_box, // 监听 reactive 对象时,默认是深层监听
23451
- (newVal, oldVal) => {
23452
-
23453
- console.log('测试 222 监听', newVal);
23454
- console.log('测试 333 监听', oldVal);
23455
-
23456
- // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
23457
- emit("update:modelValue", newVal);
23458
- },
23459
- {
23460
- deep: true,
23461
- }
23462
- );
23463
-
23464
23422
  return (_ctx, _cache) => {
23465
23423
  const _component_ly0Menu = vue.resolveComponent("ly0Menu");
23466
23424
  const _component_el_collapse_item = vue.resolveComponent("el-collapse-item");
@@ -23486,7 +23444,7 @@ return (_ctx, _cache) => {
23486
23444
  vue.createElementVNode("tbody", null, [
23487
23445
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.items, (item0, index0) => {
23488
23446
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index0 }, [
23489
- (item0.hdlVisible ? item0.hdlVisible({formData: vue.unref(formData_box), scopeThis: scopeThis_box}) : true)
23447
+ (item0.hdlVisible ? item0.hdlVisible({formData: props.modelValue, scopeThis: scopeThis_box}) : true)
23490
23448
  ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_1$c, [
23491
23449
  (!!item0.label)
23492
23450
  ? (vue.openBlock(), vue.createElementBlock("td", {
@@ -23494,8 +23452,8 @@ return (_ctx, _cache) => {
23494
23452
  style: vue.normalizeStyle(style.field_box.left)
23495
23453
  }, [
23496
23454
  vue.createVNode(script$h, {
23497
- modelValue: vue.unref(formData_box),
23498
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23455
+ modelValue: props.modelValue,
23456
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((props.modelValue) = $event)),
23499
23457
  myProps: formProps_box,
23500
23458
  scopeThis: scopeThis_box,
23501
23459
  item: item0
@@ -23520,7 +23478,7 @@ return (_ctx, _cache) => {
23520
23478
  default: vue.withCtx(() => [
23521
23479
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item0.items, (item1, index1) => {
23522
23480
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index1 }, [
23523
- (item1.hdlVisible ? item1.hdlVisible({formData: vue.unref(formData_box), scopeThis: scopeThis_box}) : true)
23481
+ (item1.hdlVisible ? item1.hdlVisible({formData: props.modelValue, scopeThis: scopeThis_box}) : true)
23524
23482
  ? (vue.openBlock(), vue.createBlock(_component_el_collapse_item, {
23525
23483
  key: 0,
23526
23484
  title: item1.title,
@@ -23534,7 +23492,7 @@ return (_ctx, _cache) => {
23534
23492
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
23535
23493
  (
23536
23494
  item2.hdlVisible
23537
- ? item2.hdlVisible({formData: vue.unref(formData_box), scopeThis: scopeThis_box})
23495
+ ? item2.hdlVisible({formData: props.modelValue, scopeThis: scopeThis_box})
23538
23496
  : true
23539
23497
  )
23540
23498
  ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_3$5, [
@@ -23544,8 +23502,8 @@ return (_ctx, _cache) => {
23544
23502
  style: vue.normalizeStyle(style.field_box.left)
23545
23503
  }, [
23546
23504
  vue.createVNode(script$h, {
23547
- modelValue: vue.unref(formData_box),
23548
- "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23505
+ modelValue: props.modelValue,
23506
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((props.modelValue) = $event)),
23549
23507
  myProps: formProps_box,
23550
23508
  scopeThis: scopeThis_box,
23551
23509
  item: item2
@@ -23557,8 +23515,8 @@ return (_ctx, _cache) => {
23557
23515
  colspan: style.no_field_label(item2)
23558
23516
  }, [
23559
23517
  vue.createVNode(script$g, {
23560
- modelValue: vue.unref(formData_box),
23561
- "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23518
+ modelValue: props.modelValue,
23519
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((props.modelValue) = $event)),
23562
23520
  myProps: formProps_box,
23563
23521
  scopeThis: scopeThis_box,
23564
23522
  item: item2
@@ -23580,8 +23538,8 @@ return (_ctx, _cache) => {
23580
23538
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["accordion", "modelValue", "onUpdate:modelValue", "style"]))
23581
23539
  : vue.createCommentVNode("v-if", true),
23582
23540
  vue.createVNode(script$g, {
23583
- modelValue: vue.unref(formData_box),
23584
- "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23541
+ modelValue: props.modelValue,
23542
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((props.modelValue) = $event)),
23585
23543
  myProps: formProps_box,
23586
23544
  scopeThis: scopeThis_box,
23587
23545
  item: item0
@@ -23643,33 +23601,13 @@ var script$e = {
23643
23601
  default: () => ({})
23644
23602
  }
23645
23603
  },
23646
- emits: ['update:modelValue', 'change'],
23647
- setup(__props, { emit: __emit }) {
23604
+ setup(__props) {
23648
23605
 
23649
23606
  const props = __props;
23650
- // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
23651
- const emit = __emit;
23652
23607
 
23653
- let formData_box = vue.reactive(JSON.parse(JSON.stringify(props.modelValue)));
23654
23608
  const formProps_box = vue.reactive(Object.assign({}, ly0default$2.myProps, props.myProps));
23655
23609
  const scopeThis_box = vue.reactive(Object.assign({}, props.scopeThis));
23656
23610
 
23657
- // 表单数据监听
23658
- vue.watch(
23659
- formData_box, // 监听 reactive 对象时,默认是深层监听
23660
- (newVal, oldVal) => {
23661
-
23662
- console.log('测试 444 监听', newVal);
23663
- console.log('测试 555 监听', oldVal);
23664
-
23665
- // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
23666
- emit("update:modelValue", newVal);
23667
- },
23668
- {
23669
- deep: true,
23670
- }
23671
- );
23672
-
23673
23611
  return (_ctx, _cache) => {
23674
23612
  const _component_el_dialog = vue.resolveComponent("el-dialog");
23675
23613
 
@@ -23688,8 +23626,8 @@ return (_ctx, _cache) => {
23688
23626
  }, {
23689
23627
  default: vue.withCtx(() => [
23690
23628
  vue.createVNode(script$f, {
23691
- modelValue: vue.unref(formData_box),
23692
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23629
+ modelValue: props.modelValue,
23630
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((props.modelValue) = $event)),
23693
23631
  myProps: formProps_box,
23694
23632
  scopeThis: scopeThis_box
23695
23633
  }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"])
@@ -23698,8 +23636,8 @@ return (_ctx, _cache) => {
23698
23636
  }, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
23699
23637
  : (vue.openBlock(), vue.createBlock(script$f, {
23700
23638
  key: 1,
23701
- modelValue: vue.unref(formData_box),
23702
- "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (vue.isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23639
+ modelValue: props.modelValue,
23640
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((props.modelValue) = $event)),
23703
23641
  myProps: formProps_box,
23704
23642
  scopeThis: scopeThis_box
23705
23643
  }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]))