@yoooloo42/joker 1.0.98 → 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,19 +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
-
22852
22833
  return (_ctx, _cache) => {
22853
22834
  const _component_el_input = vue.resolveComponent("el-input");
22854
22835
  const _component_el_option = vue.resolveComponent("el-option");
@@ -22886,34 +22867,34 @@ return (_ctx, _cache) => {
22886
22867
  ? (vue.openBlock(), vue.createElementBlock("div", {
22887
22868
  key: 0,
22888
22869
  style: vue.normalizeStyle(style.text(propsItem_box, formProps_box))
22889
- }, 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 */))
22890
22871
  : vue.createCommentVNode("v-if", true),
22891
22872
  (propsItem_box.inputType === 'text0')
22892
22873
  ? (vue.openBlock(), vue.createElementBlock("div", {
22893
22874
  key: 1,
22894
22875
  style: vue.normalizeStyle(style.text0(propsItem_box))
22895
- }, 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 */))
22896
22877
  : vue.createCommentVNode("v-if", true),
22897
22878
  (!propsItem_box.inputType)
22898
22879
  ? (vue.openBlock(), vue.createElementBlock("div", {
22899
22880
  key: 2,
22900
22881
  style: vue.normalizeStyle(style.text(propsItem_box, formProps_box))
22901
- }, 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 */))
22902
22883
  : vue.createCommentVNode("v-if", true),
22903
22884
  (propsItem_box.inputType === 'expression')
22904
22885
  ? (vue.openBlock(), vue.createElementBlock("div", {
22905
22886
  key: 3,
22906
22887
  style: vue.normalizeStyle(style.text(propsItem_box, formProps_box))
22907
- }, vue.toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: vue.unref(formData_box), scopeThis: __props.scopeThis})
22908
- ? 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})
22909
22890
  : ' '), 5 /* TEXT, STYLE */))
22910
22891
  : vue.createCommentVNode("v-if", true),
22911
22892
  (propsItem_box.inputType === 'expression0')
22912
22893
  ? (vue.openBlock(), vue.createElementBlock("div", {
22913
22894
  key: 4,
22914
22895
  style: vue.normalizeStyle(style.text0(propsItem_box))
22915
- }, vue.toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: vue.unref(formData_box), scopeThis: scopeThis_box})
22916
- ? 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})
22917
22898
  : ' '), 5 /* TEXT, STYLE */))
22918
22899
  : vue.createCommentVNode("v-if", true),
22919
22900
  (propsItem_box.inputType === 'line')
@@ -22926,8 +22907,8 @@ return (_ctx, _cache) => {
22926
22907
  (propsItem_box.inputType === 'input')
22927
22908
  ? (vue.openBlock(), vue.createBlock(_component_el_input, {
22928
22909
  key: 6,
22929
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
22930
- "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)),
22931
22912
  placeholder: input.placeholder,
22932
22913
  style: vue.normalizeStyle(style.input(propsItem_box, formProps_box)),
22933
22914
  onInput: input.hdlCannotInput,
@@ -22938,8 +22919,8 @@ return (_ctx, _cache) => {
22938
22919
  ? (vue.openBlock(), vue.createBlock(_component_el_select, {
22939
22920
  key: 7,
22940
22921
  class: "deep-input",
22941
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
22942
- "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)),
22943
22924
  placeholder: select.placeholder,
22944
22925
  filterable: "",
22945
22926
  style: vue.normalizeStyle(style.input(propsItem_box, formProps_box)),
@@ -22961,8 +22942,8 @@ return (_ctx, _cache) => {
22961
22942
  ? (vue.openBlock(), vue.createBlock(_component_el_date_picker, {
22962
22943
  key: 8,
22963
22944
  class: "deep-input",
22964
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
22965
- "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)),
22966
22947
  type: propsItem_box.type ? propsItem_box.type : 'datetime',
22967
22948
  placeholder: datePicker.placeholder,
22968
22949
  format: datePicker.format,
@@ -22973,8 +22954,8 @@ return (_ctx, _cache) => {
22973
22954
  (propsItem_box.inputType === 'input-number')
22974
22955
  ? (vue.openBlock(), vue.createBlock(_component_el_input_number, {
22975
22956
  key: 9,
22976
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
22977
- "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)),
22978
22959
  size: style.input_number(propsItem_box).facade.size,
22979
22960
  min: 'min' in propsItem_box ? propsItem_box.min : 1,
22980
22961
  max: 'max' in propsItem_box ? propsItem_box.max : 100,
@@ -22985,8 +22966,8 @@ return (_ctx, _cache) => {
22985
22966
  (propsItem_box.inputType === 'switch')
22986
22967
  ? (vue.openBlock(), vue.createBlock(_component_el_switch, {
22987
22968
  key: 10,
22988
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
22989
- "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)),
22990
22971
  "active-text": propsItem_box.activeText,
22991
22972
  "inactive-text": propsItem_box.inactiveText,
22992
22973
  "active-value": propsItem_box.activeValue,
@@ -22999,8 +22980,8 @@ return (_ctx, _cache) => {
22999
22980
  (propsItem_box.inputType === 'radio-group')
23000
22981
  ? (vue.openBlock(), vue.createBlock(_component_el_radio_group, {
23001
22982
  key: 11,
23002
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23003
- "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)),
23004
22985
  disabled: !!propsItem_box.disabled,
23005
22986
  onChange: radioGroup.hdlChange
23006
22987
  }, {
@@ -23045,7 +23026,7 @@ return (_ctx, _cache) => {
23045
23026
  plain: style.button_group(propsItem_box, item0, item1).button.facade.plain,
23046
23027
  round: style.button_group(propsItem_box, item0, item1).button.facade.round,
23047
23028
  circle: style.button_group(propsItem_box, item0, item1).button.facade.circle,
23048
- 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),
23049
23030
  key: index1
23050
23031
  }, {
23051
23032
  default: vue.withCtx(() => [
@@ -23079,15 +23060,15 @@ return (_ctx, _cache) => {
23079
23060
  }, null, 8 /* PROPS */, ["style", "src", "preview-src-list"])
23080
23061
  ]),
23081
23062
  vue.createCommentVNode(" 设置了图片删除功能,同时图片不为空 "),
23082
- (!!propsItem_box.imageDelete && !!vue.unref(formData_box)[propsItem_box.fieldName])
23063
+ (!!propsItem_box.imageDelete && !!props.modelValue[propsItem_box.fieldName])
23083
23064
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$4, [
23084
23065
  vue.createVNode(_component_el_button, {
23085
23066
  size: "small",
23086
- 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',
23087
23068
  onClick: image.delete
23088
23069
  }, {
23089
23070
  default: vue.withCtx(() => [
23090
- 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 */)
23091
23072
  ]),
23092
23073
  _: 1 /* STABLE */
23093
23074
  }, 8 /* PROPS */, ["icon", "onClick"])
@@ -23098,7 +23079,7 @@ return (_ctx, _cache) => {
23098
23079
  vue.createCommentVNode(" 多个图片 "),
23099
23080
  (propsItem_box.inputType === 'images')
23100
23081
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$1, [
23101
- (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) => {
23102
23083
  return (vue.openBlock(), vue.createElementBlock("div", {
23103
23084
  key: indexImages,
23104
23085
  style: vue.normalizeStyle(style.images(propsItem_box, formProps_box).itemBox)
@@ -23118,7 +23099,7 @@ return (_ctx, _cache) => {
23118
23099
  onClick: $event => (images.delete(itemImages, indexImages))
23119
23100
  }, {
23120
23101
  default: vue.withCtx(() => [
23121
- 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 */)
23122
23103
  ]),
23123
23104
  _: 2 /* DYNAMIC */
23124
23105
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"])
@@ -23135,8 +23116,8 @@ return (_ctx, _cache) => {
23135
23116
  style: vue.normalizeStyle(style.richtext(propsItem_box, formProps_box))
23136
23117
  }, [
23137
23118
  vue.createVNode(_component_ly0Richtext, {
23138
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23139
- "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)),
23140
23121
  myProps: richtextProps.value
23141
23122
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23142
23123
  ], 4 /* STYLE */))
@@ -23145,7 +23126,7 @@ return (_ctx, _cache) => {
23145
23126
  (propsItem_box.inputType === 'richtextShow')
23146
23127
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
23147
23128
  vue.createElementVNode("div", {
23148
- innerHTML: vue.unref(formData_box)[propsItem_box.fieldName]
23129
+ innerHTML: props.modelValue[propsItem_box.fieldName]
23149
23130
  }, null, 8 /* PROPS */, _hoisted_8)
23150
23131
  ]))
23151
23132
  : vue.createCommentVNode("v-if", true),
@@ -23177,15 +23158,15 @@ return (_ctx, _cache) => {
23177
23158
  ], 8 /* PROPS */, _hoisted_10)
23178
23159
  ]),
23179
23160
  vue.createCommentVNode(" 设置了视频删除功能,同时视频不为空 "),
23180
- (!!propsItem_box.videoDelete && !!vue.unref(formData_box)[propsItem_box.fieldName])
23161
+ (!!propsItem_box.videoDelete && !!props.modelValue[propsItem_box.fieldName])
23181
23162
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
23182
23163
  vue.createVNode(_component_el_button, {
23183
23164
  size: "small",
23184
- 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',
23185
23166
  onClick: video.delete
23186
23167
  }, {
23187
23168
  default: vue.withCtx(() => [
23188
- 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 */)
23189
23170
  ]),
23190
23171
  _: 1 /* STABLE */
23191
23172
  }, 8 /* PROPS */, ["icon", "onClick"])
@@ -23197,7 +23178,7 @@ return (_ctx, _cache) => {
23197
23178
  vue.createCommentVNode(" 下载 "),
23198
23179
  (propsItem_box.inputType === 'download')
23199
23180
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_15, [
23200
- (vue.unref(formData_box)[propsItem_box.fieldName])
23181
+ (props.modelValue[propsItem_box.fieldName])
23201
23182
  ? (vue.openBlock(), vue.createElementBlock("a", {
23202
23183
  key: 0,
23203
23184
  style: vue.normalizeStyle(style.download.style),
@@ -23216,8 +23197,8 @@ return (_ctx, _cache) => {
23216
23197
  (propsItem_box.inputType === 'upload')
23217
23198
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
23218
23199
  vue.createVNode(_component_ly0Upload, {
23219
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23220
- "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)),
23221
23202
  myProps: {uploadUrl: upload.uploadUrl}
23222
23203
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23223
23204
  ]))
@@ -23226,8 +23207,8 @@ return (_ctx, _cache) => {
23226
23207
  (propsItem_box.inputType === 'upload-drag')
23227
23208
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, [
23228
23209
  vue.createVNode(_component_ly0Upload_drag, {
23229
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23230
- "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)),
23231
23212
  myProps: {uploadUrl: upload.uploadUrl}
23232
23213
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23233
23214
  ]))
@@ -23236,8 +23217,8 @@ return (_ctx, _cache) => {
23236
23217
  (propsItem_box.inputType === 'upload-picture')
23237
23218
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
23238
23219
  vue.createVNode(_component_ly0Upload_picture, {
23239
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23240
- "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)),
23241
23222
  myProps: {uploadUrl: upload.uploadUrl_image}
23242
23223
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23243
23224
  ]))
@@ -23246,8 +23227,8 @@ return (_ctx, _cache) => {
23246
23227
  (propsItem_box.inputType === 'upload-picture-card')
23247
23228
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20, [
23248
23229
  vue.createVNode(_component_ly0Upload_pictureCard, {
23249
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23250
- "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)),
23251
23232
  myProps: {uploadUrl: upload.uploadUrl_image}
23252
23233
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23253
23234
  ]))
@@ -23256,8 +23237,8 @@ return (_ctx, _cache) => {
23256
23237
  (propsItem_box.inputType === 'upload-avatar')
23257
23238
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_21, [
23258
23239
  vue.createVNode(_component_ly0Upload_avatar, {
23259
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23260
- "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)),
23261
23242
  myProps: {uploadUrl: upload.uploadUrl_image}
23262
23243
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23263
23244
  ]))
@@ -23266,8 +23247,8 @@ return (_ctx, _cache) => {
23266
23247
  (propsItem_box.inputType === 'upload-carplate')
23267
23248
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_22, [
23268
23249
  vue.createVNode(_component_ly0Upload_carplate, {
23269
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23270
- "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)),
23271
23252
  myProps: {uploadUrl: upload.uploadUrl_carplate}
23272
23253
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23273
23254
  ]))
@@ -23276,8 +23257,8 @@ return (_ctx, _cache) => {
23276
23257
  (propsItem_box.inputType === 'd3gbt2260')
23277
23258
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_23, [
23278
23259
  vue.createVNode(_component_ly0gbt2260, {
23279
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23280
- "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)),
23281
23262
  myProps: {readOnly: propsItem_box.readOnly}
23282
23263
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23283
23264
  ]))
@@ -23286,8 +23267,8 @@ return (_ctx, _cache) => {
23286
23267
  (propsItem_box.inputType === 'd7group')
23287
23268
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_24, [
23288
23269
  vue.createVNode(_component_ly0d7group, {
23289
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23290
- "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)),
23291
23272
  myProps: {readOnly: propsItem_box.readOnly}
23292
23273
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23293
23274
  ]))
@@ -23296,8 +23277,8 @@ return (_ctx, _cache) => {
23296
23277
  (propsItem_box.inputType === 'd7postal')
23297
23278
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_25, [
23298
23279
  vue.createVNode(_component_ly0d7postal, {
23299
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23300
- "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)),
23301
23282
  myProps: {readOnly: propsItem_box.readOnly}
23302
23283
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23303
23284
  ]))
@@ -23306,8 +23287,8 @@ return (_ctx, _cache) => {
23306
23287
  (propsItem_box.inputType === 'd7price')
23307
23288
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26, [
23308
23289
  vue.createVNode(_component_ly0d7price, {
23309
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23310
- "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)),
23311
23292
  myProps: {readOnly: propsItem_box.readOnly}
23312
23293
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23313
23294
  ]))
@@ -23316,8 +23297,8 @@ return (_ctx, _cache) => {
23316
23297
  (propsItem_box.inputType === 'd7size')
23317
23298
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_27, [
23318
23299
  vue.createVNode(_component_ly0d7size, {
23319
- modelValue: vue.unref(formData_box)[propsItem_box.fieldName],
23320
- "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)),
23321
23302
  myProps: {readOnly: propsItem_box.readOnly}
23322
23303
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23323
23304
  ]))
@@ -23326,8 +23307,8 @@ return (_ctx, _cache) => {
23326
23307
  (propsItem_box.inputType === 'd7thumb')
23327
23308
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_28, [
23328
23309
  vue.createVNode(_component_ly0d7thumb, {
23329
- modelValue: vue.unref(formData_box),
23330
- "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)),
23331
23312
  myProps: {
23332
23313
  thumb: {
23333
23314
  fieldName: propsItem_box.thumb.fieldName || formProps_box.para.ly0d7thumb.thumb.fieldName,
@@ -23377,14 +23358,10 @@ var script$f = {
23377
23358
  default: () => ({})
23378
23359
  }
23379
23360
  },
23380
- emits: ['update:modelValue', 'change'],
23381
- setup(__props, { emit: __emit }) {
23361
+ setup(__props) {
23382
23362
 
23383
23363
  const props = __props;
23384
- // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
23385
- const emit = __emit;
23386
23364
 
23387
- let formData_box = vue.reactive(JSON.parse(JSON.stringify(props.modelValue)));
23388
23365
  const formProps_box = vue.reactive(Object.assign({}, props.myProps));
23389
23366
  const scopeThis_box = vue.reactive(Object.assign({}, props.scopeThis));
23390
23367
 
@@ -23402,7 +23379,7 @@ const hdl = {
23402
23379
  if(formProps_box.submit.handle){
23403
23380
  // 执行用户句柄
23404
23381
  const result = await formProps_box.submit.handle({
23405
- formData: formData_box,
23382
+ formData: props.modelValue,
23406
23383
  scopeThis: scopeThis_box
23407
23384
  });
23408
23385
  if(result.code !== 0){
@@ -23414,7 +23391,7 @@ const hdl = {
23414
23391
  if(formProps_box.submit.url){
23415
23392
  const result = await request.ly0.ly0request({
23416
23393
  url: formProps_box.submit.url,
23417
- data: formData_box
23394
+ data: props.modelValue
23418
23395
  });
23419
23396
  if(result.code !== 0){
23420
23397
  return
@@ -23425,7 +23402,7 @@ const hdl = {
23425
23402
  if(formProps_box.submit.storpro){
23426
23403
  const result = await request.ly0.storpro({
23427
23404
  storproName: formProps_box.submit.storpro,
23428
- data: formData_box
23405
+ data: props.modelValue
23429
23406
  });
23430
23407
  if(result.code !== 0){
23431
23408
  return
@@ -23438,23 +23415,10 @@ const hdl = {
23438
23415
  }
23439
23416
 
23440
23417
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
23441
- emit("update:modelValue", formData_box);
23418
+ emit("update:modelValue", props.modelValue);
23442
23419
  }
23443
23420
  };
23444
23421
 
23445
- // 表单数据监听
23446
- vue.watch(
23447
- formData_box, // 监听 reactive 对象时,默认是深层监听
23448
- (newVal, oldVal) => {
23449
-
23450
- console.log('测试 222 监听', newVal);
23451
- console.log('测试 333 监听', oldVal);
23452
-
23453
- // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
23454
- emit("update:modelValue", newVal);
23455
- }
23456
- );
23457
-
23458
23422
  return (_ctx, _cache) => {
23459
23423
  const _component_ly0Menu = vue.resolveComponent("ly0Menu");
23460
23424
  const _component_el_collapse_item = vue.resolveComponent("el-collapse-item");
@@ -23480,7 +23444,7 @@ return (_ctx, _cache) => {
23480
23444
  vue.createElementVNode("tbody", null, [
23481
23445
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.items, (item0, index0) => {
23482
23446
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index0 }, [
23483
- (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)
23484
23448
  ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_1$c, [
23485
23449
  (!!item0.label)
23486
23450
  ? (vue.openBlock(), vue.createElementBlock("td", {
@@ -23488,8 +23452,8 @@ return (_ctx, _cache) => {
23488
23452
  style: vue.normalizeStyle(style.field_box.left)
23489
23453
  }, [
23490
23454
  vue.createVNode(script$h, {
23491
- modelValue: vue.unref(formData_box),
23492
- "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)),
23493
23457
  myProps: formProps_box,
23494
23458
  scopeThis: scopeThis_box,
23495
23459
  item: item0
@@ -23514,7 +23478,7 @@ return (_ctx, _cache) => {
23514
23478
  default: vue.withCtx(() => [
23515
23479
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item0.items, (item1, index1) => {
23516
23480
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index1 }, [
23517
- (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)
23518
23482
  ? (vue.openBlock(), vue.createBlock(_component_el_collapse_item, {
23519
23483
  key: 0,
23520
23484
  title: item1.title,
@@ -23528,7 +23492,7 @@ return (_ctx, _cache) => {
23528
23492
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
23529
23493
  (
23530
23494
  item2.hdlVisible
23531
- ? item2.hdlVisible({formData: vue.unref(formData_box), scopeThis: scopeThis_box})
23495
+ ? item2.hdlVisible({formData: props.modelValue, scopeThis: scopeThis_box})
23532
23496
  : true
23533
23497
  )
23534
23498
  ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_3$5, [
@@ -23538,8 +23502,8 @@ return (_ctx, _cache) => {
23538
23502
  style: vue.normalizeStyle(style.field_box.left)
23539
23503
  }, [
23540
23504
  vue.createVNode(script$h, {
23541
- modelValue: vue.unref(formData_box),
23542
- "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)),
23543
23507
  myProps: formProps_box,
23544
23508
  scopeThis: scopeThis_box,
23545
23509
  item: item2
@@ -23551,8 +23515,8 @@ return (_ctx, _cache) => {
23551
23515
  colspan: style.no_field_label(item2)
23552
23516
  }, [
23553
23517
  vue.createVNode(script$g, {
23554
- modelValue: vue.unref(formData_box),
23555
- "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)),
23556
23520
  myProps: formProps_box,
23557
23521
  scopeThis: scopeThis_box,
23558
23522
  item: item2
@@ -23574,8 +23538,8 @@ return (_ctx, _cache) => {
23574
23538
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["accordion", "modelValue", "onUpdate:modelValue", "style"]))
23575
23539
  : vue.createCommentVNode("v-if", true),
23576
23540
  vue.createVNode(script$g, {
23577
- modelValue: vue.unref(formData_box),
23578
- "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)),
23579
23543
  myProps: formProps_box,
23580
23544
  scopeThis: scopeThis_box,
23581
23545
  item: item0
@@ -23637,30 +23601,13 @@ var script$e = {
23637
23601
  default: () => ({})
23638
23602
  }
23639
23603
  },
23640
- emits: ['update:modelValue', 'change'],
23641
- setup(__props, { emit: __emit }) {
23604
+ setup(__props) {
23642
23605
 
23643
23606
  const props = __props;
23644
- // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
23645
- const emit = __emit;
23646
23607
 
23647
- let formData_box = vue.reactive(JSON.parse(JSON.stringify(props.modelValue)));
23648
23608
  const formProps_box = vue.reactive(Object.assign({}, ly0default$2.myProps, props.myProps));
23649
23609
  const scopeThis_box = vue.reactive(Object.assign({}, props.scopeThis));
23650
23610
 
23651
- // 表单数据监听
23652
- vue.watch(
23653
- formData_box, // 监听 reactive 对象时,默认是深层监听
23654
- (newVal, oldVal) => {
23655
-
23656
- console.log('测试 444 监听', newVal);
23657
- console.log('测试 555 监听', oldVal);
23658
-
23659
- // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
23660
- emit("update:modelValue", newVal);
23661
- }
23662
- );
23663
-
23664
23611
  return (_ctx, _cache) => {
23665
23612
  const _component_el_dialog = vue.resolveComponent("el-dialog");
23666
23613
 
@@ -23679,8 +23626,8 @@ return (_ctx, _cache) => {
23679
23626
  }, {
23680
23627
  default: vue.withCtx(() => [
23681
23628
  vue.createVNode(script$f, {
23682
- modelValue: vue.unref(formData_box),
23683
- "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)),
23684
23631
  myProps: formProps_box,
23685
23632
  scopeThis: scopeThis_box
23686
23633
  }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"])
@@ -23689,8 +23636,8 @@ return (_ctx, _cache) => {
23689
23636
  }, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
23690
23637
  : (vue.openBlock(), vue.createBlock(script$f, {
23691
23638
  key: 1,
23692
- modelValue: vue.unref(formData_box),
23693
- "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)),
23694
23641
  myProps: formProps_box,
23695
23642
  scopeThis: scopeThis_box
23696
23643
  }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]))