@yoooloo42/joker 1.0.100 → 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
@@ -1,5 +1,5 @@
1
1
  import { useRouter } from 'vue-router';
2
- import { reactive, ref, watch, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString, computed, resolveComponent, createBlock, withCtx, renderList, createTextVNode, createVNode, defineComponent, h, onMounted, onBeforeUnmount, nextTick as nextTick$1, unref } from 'vue';
2
+ import { reactive, ref, watch, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString, computed, resolveComponent, createBlock, unref, withCtx, renderList, createTextVNode, createVNode, isRef, defineComponent, h, onMounted, onBeforeUnmount, nextTick as nextTick$1 } from 'vue';
3
3
  import { ElMessage } from 'element-plus';
4
4
 
5
5
  function _mergeNamespaces(n, m) {
@@ -22611,10 +22611,14 @@ var script$g = {
22611
22611
  default: () => ({})
22612
22612
  }
22613
22613
  },
22614
- setup(__props) {
22614
+ emits: ['update:modelValue', 'change'],
22615
+ setup(__props, { emit: __emit }) {
22615
22616
 
22616
22617
  const props = __props;
22618
+ // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
22619
+ const emit = __emit;
22617
22620
 
22621
+ let formData_box = reactive(props.modelValue);
22618
22622
  const formProps_box = reactive(Object.assign({}, props.myProps));
22619
22623
  const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
22620
22624
  const propsItem_box = reactive(Object.assign({}, props.item));
@@ -22623,7 +22627,7 @@ const input = reactive({
22623
22627
  placeholder: propsItem_box.placeholder || formProps_box.para.placeholder.input,
22624
22628
  showPassword: !!propsItem_box.showPassword,
22625
22629
  hdlCannotInput: value => { // 解决偶发不能输入的问题
22626
- props.modelValue[propsItem_box.fieldName] = value;
22630
+ formData_box[propsItem_box.fieldName] = value;
22627
22631
  }
22628
22632
  });
22629
22633
 
@@ -22633,12 +22637,12 @@ const select = reactive({
22633
22637
  if (propsItem_box.items) {
22634
22638
  return propsItem_box.items
22635
22639
  } else if (propsItem_box.hdlGetItems) {
22636
- return propsItem_box.hdlGetItems({formData: props.modelValue, scopeThis: scopeThis_box})
22640
+ return propsItem_box.hdlGetItems({formData: formData_box, scopeThis: scopeThis_box})
22637
22641
  }
22638
22642
  }),
22639
22643
  hdlChange: value => {
22640
22644
  if (propsItem_box.hdlChange) {
22641
- propsItem_box.hdlChange({formData: props.modelValue, scopeThis: scopeThis_box, value});
22645
+ propsItem_box.hdlChange({formData: formData_box, scopeThis: scopeThis_box, value});
22642
22646
  }
22643
22647
  }
22644
22648
  });
@@ -22670,7 +22674,7 @@ const datePicker = reactive({
22670
22674
  }),
22671
22675
  hdlChange: value => {
22672
22676
  if (propsItem_box.hdlChange) {
22673
- propsItem_box.hdlChange({formData: props.modelValue, scopeThis: scopeThis_box, value});
22677
+ propsItem_box.hdlChange({formData: formData_box, scopeThis: scopeThis_box, value});
22674
22678
  }
22675
22679
  }
22676
22680
  });
@@ -22678,7 +22682,7 @@ const datePicker = reactive({
22678
22682
  const ly0switch = reactive({
22679
22683
  hdlChange: value => {
22680
22684
  if (propsItem_box.hdlChange) {
22681
- propsItem_box.hdlChange({formData: props.modelValue, scopeThis: scopeThis_box, value});
22685
+ propsItem_box.hdlChange({formData: formData_box, scopeThis: scopeThis_box, value});
22682
22686
  }
22683
22687
  }
22684
22688
  });
@@ -22686,7 +22690,7 @@ const ly0switch = reactive({
22686
22690
  const radioGroup = reactive({
22687
22691
  hdlChange: value => {
22688
22692
  if (propsItem_box.hdlChange) {
22689
- propsItem_box.hdlChange({formData: props.modelValue, scopeThis: scopeThis_box, value});
22693
+ propsItem_box.hdlChange({formData: formData_box, scopeThis: scopeThis_box, value});
22690
22694
  }
22691
22695
  }
22692
22696
  });
@@ -22695,20 +22699,20 @@ const image = reactive({
22695
22699
  getSrc: computed(() => {
22696
22700
  if (
22697
22701
  propsItem_box.imageDelete &&
22698
- props.modelValue[propsItem_box.imageDelete] &&
22699
- (props.modelValue[propsItem_box.imageDelete] === true ||
22700
- props.modelValue[propsItem_box.imageDelete] === 'true') // 图片已删除
22702
+ formData_box[propsItem_box.imageDelete] &&
22703
+ (formData_box[propsItem_box.imageDelete] === true ||
22704
+ formData_box[propsItem_box.imageDelete] === 'true') // 图片已删除
22701
22705
  ) {
22702
22706
  return ['']
22703
22707
  }
22704
- if (props.modelValue[propsItem_box.fieldName]) {
22705
- return props.modelValue[propsItem_box.fieldName]
22708
+ if (formData_box[propsItem_box.fieldName]) {
22709
+ return formData_box[propsItem_box.fieldName]
22706
22710
  }
22707
22711
  return ['']
22708
22712
  }),
22709
22713
  delete: ()=>{
22710
- props.modelValue[propsItem_box.imageDelete] =
22711
- !props.modelValue[propsItem_box.imageDelete];
22714
+ formData_box[propsItem_box.imageDelete] =
22715
+ !formData_box[propsItem_box.imageDelete];
22712
22716
  }
22713
22717
  });
22714
22718
 
@@ -22716,32 +22720,32 @@ const images = reactive({
22716
22720
  getSrc: (itemImages, indexImages) => {
22717
22721
  if (
22718
22722
  !propsItem_box.imageDelete ||
22719
- !props.modelValue[propsItem_box.imageDelete].includes(itemImages)
22723
+ !formData_box[propsItem_box.imageDelete].includes(itemImages)
22720
22724
  ) {
22721
22725
  return itemImages
22722
22726
  }
22723
22727
  return ''
22724
22728
  },
22725
22729
  delete: (itemImages, indexImages) => {
22726
- if (!props.modelValue[propsItem_box.imageDelete].includes(itemImages)) {
22727
- props.modelValue[propsItem_box.imageDelete].push(itemImages);
22730
+ if (!formData_box[propsItem_box.imageDelete].includes(itemImages)) {
22731
+ formData_box[propsItem_box.imageDelete].push(itemImages);
22728
22732
  return
22729
22733
  }
22730
22734
 
22731
- props.modelValue[propsItem_box.imageDelete] = props.modelValue[propsItem_box.imageDelete].filter(i => {
22735
+ formData_box[propsItem_box.imageDelete] = formData_box[propsItem_box.imageDelete].filter(i => {
22732
22736
  return i !== itemImages
22733
22737
  });
22734
22738
  },
22735
22739
  show: computed(()=>{
22736
22740
  let result = [];
22737
22741
  if (!propsItem_box.imageDelete) {
22738
- props.modelValue[propsItem_box.fieldName].forEach(i => {
22742
+ formData_box[propsItem_box.fieldName].forEach(i => {
22739
22743
  result.push(i);
22740
22744
  });
22741
22745
  } else {
22742
- props.modelValue[propsItem_box.fieldName]
22746
+ formData_box[propsItem_box.fieldName]
22743
22747
  .filter(i => {
22744
- return !props.modelValue[propsItem_box.imageDelete].includes(i)
22748
+ return !formData_box[propsItem_box.imageDelete].includes(i)
22745
22749
  })
22746
22750
  .forEach(i => {
22747
22751
  result.push(i);
@@ -22759,49 +22763,49 @@ const video = reactive({
22759
22763
  src: computed(()=>{
22760
22764
  if (
22761
22765
  propsItem_box.videoDelete &&
22762
- props.modelValue[propsItem_box.videoDelete] &&
22763
- (props.modelValue[propsItem_box.videoDelete] === true ||
22764
- props.modelValue[propsItem_box.videoDelete] === 'true') // 图片已删除
22766
+ formData_box[propsItem_box.videoDelete] &&
22767
+ (formData_box[propsItem_box.videoDelete] === true ||
22768
+ formData_box[propsItem_box.videoDelete] === 'true') // 图片已删除
22765
22769
  ) {
22766
22770
  return ''
22767
22771
  }
22768
- if (props.modelValue[propsItem_box.fieldName]) {
22769
- return props.modelValue[propsItem_box.fieldName]
22772
+ if (formData_box[propsItem_box.fieldName]) {
22773
+ return formData_box[propsItem_box.fieldName]
22770
22774
  }
22771
22775
  return ''
22772
22776
  }),
22773
22777
  poster: computed(()=>{
22774
22778
  if (
22775
22779
  propsItem_box.videoDelete &&
22776
- props.modelValue[propsItem_box.videoDelete] &&
22777
- (props.modelValue[propsItem_box.videoDelete] === true ||
22778
- props.modelValue[propsItem_box.videoDelete] === 'true') // 图片已删除
22780
+ formData_box[propsItem_box.videoDelete] &&
22781
+ (formData_box[propsItem_box.videoDelete] === true ||
22782
+ formData_box[propsItem_box.videoDelete] === 'true') // 图片已删除
22779
22783
  ) {
22780
22784
  return ''
22781
22785
  }
22782
- if (props.modelValue[propsItem_box.poster]) {
22783
- return props.modelValue[propsItem_box.poster]
22786
+ if (formData_box[propsItem_box.poster]) {
22787
+ return formData_box[propsItem_box.poster]
22784
22788
  }
22785
22789
  return ''
22786
22790
  }),
22787
22791
  delete: ()=>{
22788
- props.modelValue[propsItem_box.videoDelete] =
22789
- !props.modelValue[propsItem_box.videoDelete];
22792
+ formData_box[propsItem_box.videoDelete] =
22793
+ !formData_box[propsItem_box.videoDelete];
22790
22794
  },
22791
22795
  });
22792
22796
 
22793
22797
  const download = reactive({
22794
22798
  fileName: propsItem_box.downloadFileName || formProps_box.para.download.fileName,
22795
22799
  downloadLabel: computed(() => {
22796
- if (!props.modelValue[propsItem_box.fieldName]) {
22800
+ if (!formData_box[propsItem_box.fieldName]) {
22797
22801
  return formProps_box.para.download.downloadLabelNoSrc
22798
22802
  }
22799
22803
  if (propsItem_box.hdlGetDownloadLabel) {
22800
- return propsItem_box.hdlGetDownloadLabel({formData: props.modelValue, scopeThis: scopeThis_box})
22804
+ return propsItem_box.hdlGetDownloadLabel({formData: formData_box, scopeThis: scopeThis_box})
22801
22805
  }
22802
22806
  return formProps_box.para.download.downloadLabel
22803
22807
  }),
22804
- downloadSrc: props.modelValue[propsItem_box.fieldName] || ''
22808
+ downloadSrc: formData_box[propsItem_box.fieldName] || ''
22805
22809
  });
22806
22810
 
22807
22811
  const upload = reactive({
@@ -22826,6 +22830,22 @@ const style = reactive({
22826
22830
  download: computed(()=>styleModule.input.download()),
22827
22831
  });
22828
22832
 
22833
+ // 表单数据监听
22834
+ watch(
22835
+ formData_box,
22836
+ (newVal, oldVal) => {
22837
+
22838
+ console.log('测试 000 监听', newVal);
22839
+ console.log('测试 111 监听', oldVal);
22840
+
22841
+ // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
22842
+ emit("update:modelValue", newVal);
22843
+ },
22844
+ {
22845
+ deep: true, // 深层监听
22846
+ }
22847
+ );
22848
+
22829
22849
  return (_ctx, _cache) => {
22830
22850
  const _component_el_input = resolveComponent("el-input");
22831
22851
  const _component_el_option = resolveComponent("el-option");
@@ -22863,34 +22883,34 @@ return (_ctx, _cache) => {
22863
22883
  ? (openBlock(), createElementBlock("div", {
22864
22884
  key: 0,
22865
22885
  style: normalizeStyle(style.text(propsItem_box, formProps_box))
22866
- }, toDisplayString(props.modelValue[propsItem_box.fieldName] ? props.modelValue[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22886
+ }, toDisplayString(unref(formData_box)[propsItem_box.fieldName] ? unref(formData_box)[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22867
22887
  : createCommentVNode("v-if", true),
22868
22888
  (propsItem_box.inputType === 'text0')
22869
22889
  ? (openBlock(), createElementBlock("div", {
22870
22890
  key: 1,
22871
22891
  style: normalizeStyle(style.text0(propsItem_box))
22872
- }, toDisplayString(props.modelValue[propsItem_box.fieldName] ? props.modelValue[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22892
+ }, toDisplayString(unref(formData_box)[propsItem_box.fieldName] ? unref(formData_box)[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22873
22893
  : createCommentVNode("v-if", true),
22874
22894
  (!propsItem_box.inputType)
22875
22895
  ? (openBlock(), createElementBlock("div", {
22876
22896
  key: 2,
22877
22897
  style: normalizeStyle(style.text(propsItem_box, formProps_box))
22878
- }, toDisplayString(props.modelValue[propsItem_box.fieldName] ? props.modelValue[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22898
+ }, toDisplayString(unref(formData_box)[propsItem_box.fieldName] ? unref(formData_box)[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22879
22899
  : createCommentVNode("v-if", true),
22880
22900
  (propsItem_box.inputType === 'expression')
22881
22901
  ? (openBlock(), createElementBlock("div", {
22882
22902
  key: 3,
22883
22903
  style: normalizeStyle(style.text(propsItem_box, formProps_box))
22884
- }, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: props.modelValue, scopeThis: __props.scopeThis})
22885
- ? propsItem_box.hdlExpression({formData: props.modelValue, scopeThis: scopeThis_box})
22904
+ }, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: unref(formData_box), scopeThis: __props.scopeThis})
22905
+ ? propsItem_box.hdlExpression({formData: unref(formData_box), scopeThis: scopeThis_box})
22886
22906
  : ' '), 5 /* TEXT, STYLE */))
22887
22907
  : createCommentVNode("v-if", true),
22888
22908
  (propsItem_box.inputType === 'expression0')
22889
22909
  ? (openBlock(), createElementBlock("div", {
22890
22910
  key: 4,
22891
22911
  style: normalizeStyle(style.text0(propsItem_box))
22892
- }, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: props.modelValue, scopeThis: scopeThis_box})
22893
- ? propsItem_box.hdlExpression({formData: props.modelValue, scopeThis: scopeThis_box})
22912
+ }, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: unref(formData_box), scopeThis: scopeThis_box})
22913
+ ? propsItem_box.hdlExpression({formData: unref(formData_box), scopeThis: scopeThis_box})
22894
22914
  : ' '), 5 /* TEXT, STYLE */))
22895
22915
  : createCommentVNode("v-if", true),
22896
22916
  (propsItem_box.inputType === 'line')
@@ -22903,8 +22923,8 @@ return (_ctx, _cache) => {
22903
22923
  (propsItem_box.inputType === 'input')
22904
22924
  ? (openBlock(), createBlock(_component_el_input, {
22905
22925
  key: 6,
22906
- modelValue: props.modelValue[propsItem_box.fieldName],
22907
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
22926
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
22927
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22908
22928
  placeholder: input.placeholder,
22909
22929
  style: normalizeStyle(style.input(propsItem_box, formProps_box)),
22910
22930
  onInput: input.hdlCannotInput,
@@ -22915,8 +22935,8 @@ return (_ctx, _cache) => {
22915
22935
  ? (openBlock(), createBlock(_component_el_select, {
22916
22936
  key: 7,
22917
22937
  class: "deep-input",
22918
- modelValue: props.modelValue[propsItem_box.fieldName],
22919
- "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
22938
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
22939
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22920
22940
  placeholder: select.placeholder,
22921
22941
  filterable: "",
22922
22942
  style: normalizeStyle(style.input(propsItem_box, formProps_box)),
@@ -22938,8 +22958,8 @@ return (_ctx, _cache) => {
22938
22958
  ? (openBlock(), createBlock(_component_el_date_picker, {
22939
22959
  key: 8,
22940
22960
  class: "deep-input",
22941
- modelValue: props.modelValue[propsItem_box.fieldName],
22942
- "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
22961
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
22962
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22943
22963
  type: propsItem_box.type ? propsItem_box.type : 'datetime',
22944
22964
  placeholder: datePicker.placeholder,
22945
22965
  format: datePicker.format,
@@ -22950,8 +22970,8 @@ return (_ctx, _cache) => {
22950
22970
  (propsItem_box.inputType === 'input-number')
22951
22971
  ? (openBlock(), createBlock(_component_el_input_number, {
22952
22972
  key: 9,
22953
- modelValue: props.modelValue[propsItem_box.fieldName],
22954
- "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
22973
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
22974
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22955
22975
  size: style.input_number(propsItem_box).facade.size,
22956
22976
  min: 'min' in propsItem_box ? propsItem_box.min : 1,
22957
22977
  max: 'max' in propsItem_box ? propsItem_box.max : 100,
@@ -22962,8 +22982,8 @@ return (_ctx, _cache) => {
22962
22982
  (propsItem_box.inputType === 'switch')
22963
22983
  ? (openBlock(), createBlock(_component_el_switch, {
22964
22984
  key: 10,
22965
- modelValue: props.modelValue[propsItem_box.fieldName],
22966
- "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
22985
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
22986
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22967
22987
  "active-text": propsItem_box.activeText,
22968
22988
  "inactive-text": propsItem_box.inactiveText,
22969
22989
  "active-value": propsItem_box.activeValue,
@@ -22976,8 +22996,8 @@ return (_ctx, _cache) => {
22976
22996
  (propsItem_box.inputType === 'radio-group')
22977
22997
  ? (openBlock(), createBlock(_component_el_radio_group, {
22978
22998
  key: 11,
22979
- modelValue: props.modelValue[propsItem_box.fieldName],
22980
- "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
22999
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23000
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22981
23001
  disabled: !!propsItem_box.disabled,
22982
23002
  onChange: radioGroup.hdlChange
22983
23003
  }, {
@@ -23022,7 +23042,7 @@ return (_ctx, _cache) => {
23022
23042
  plain: style.button_group(propsItem_box, item0, item1).button.facade.plain,
23023
23043
  round: style.button_group(propsItem_box, item0, item1).button.facade.round,
23024
23044
  circle: style.button_group(propsItem_box, item0, item1).button.facade.circle,
23025
- onClick: $event => (item1.hdlClick ? item1.hdlClick({formData: props.modelValue, scopeThis: scopeThis_box}) : null),
23045
+ onClick: $event => (item1.hdlClick ? item1.hdlClick({formData: unref(formData_box), scopeThis: scopeThis_box}) : null),
23026
23046
  key: index1
23027
23047
  }, {
23028
23048
  default: withCtx(() => [
@@ -23056,15 +23076,15 @@ return (_ctx, _cache) => {
23056
23076
  }, null, 8 /* PROPS */, ["style", "src", "preview-src-list"])
23057
23077
  ]),
23058
23078
  createCommentVNode(" 设置了图片删除功能,同时图片不为空 "),
23059
- (!!propsItem_box.imageDelete && !!props.modelValue[propsItem_box.fieldName])
23079
+ (!!propsItem_box.imageDelete && !!unref(formData_box)[propsItem_box.fieldName])
23060
23080
  ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
23061
23081
  createVNode(_component_el_button, {
23062
23082
  size: "small",
23063
- icon: !props.modelValue[propsItem_box.imageDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
23083
+ icon: !unref(formData_box)[propsItem_box.imageDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
23064
23084
  onClick: image.delete
23065
23085
  }, {
23066
23086
  default: withCtx(() => [
23067
- createTextVNode(toDisplayString(props.modelValue[propsItem_box.imageDelete] ? '图片已删除,恢复' : '删除'), 1 /* TEXT */)
23087
+ createTextVNode(toDisplayString(unref(formData_box)[propsItem_box.imageDelete] ? '图片已删除,恢复' : '删除'), 1 /* TEXT */)
23068
23088
  ]),
23069
23089
  _: 1 /* STABLE */
23070
23090
  }, 8 /* PROPS */, ["icon", "onClick"])
@@ -23075,7 +23095,7 @@ return (_ctx, _cache) => {
23075
23095
  createCommentVNode(" 多个图片 "),
23076
23096
  (propsItem_box.inputType === 'images')
23077
23097
  ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
23078
- (openBlock(true), createElementBlock(Fragment, null, renderList(props.modelValue[propsItem_box.fieldName], (itemImages, indexImages) => {
23098
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(formData_box)[propsItem_box.fieldName], (itemImages, indexImages) => {
23079
23099
  return (openBlock(), createElementBlock("div", {
23080
23100
  key: indexImages,
23081
23101
  style: normalizeStyle(style.images(propsItem_box, formProps_box).itemBox)
@@ -23095,7 +23115,7 @@ return (_ctx, _cache) => {
23095
23115
  onClick: $event => (images.delete(itemImages, indexImages))
23096
23116
  }, {
23097
23117
  default: withCtx(() => [
23098
- createTextVNode(toDisplayString(props.modelValue[propsItem_box.imageDelete].includes(itemImages) ? '恢复' : '删除'), 1 /* TEXT */)
23118
+ createTextVNode(toDisplayString(unref(formData_box)[propsItem_box.imageDelete].includes(itemImages) ? '恢复' : '删除'), 1 /* TEXT */)
23099
23119
  ]),
23100
23120
  _: 2 /* DYNAMIC */
23101
23121
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"])
@@ -23112,8 +23132,8 @@ return (_ctx, _cache) => {
23112
23132
  style: normalizeStyle(style.richtext(propsItem_box, formProps_box))
23113
23133
  }, [
23114
23134
  createVNode(_component_ly0Richtext, {
23115
- modelValue: props.modelValue[propsItem_box.fieldName],
23116
- "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23135
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23136
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23117
23137
  myProps: richtextProps.value
23118
23138
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23119
23139
  ], 4 /* STYLE */))
@@ -23122,7 +23142,7 @@ return (_ctx, _cache) => {
23122
23142
  (propsItem_box.inputType === 'richtextShow')
23123
23143
  ? (openBlock(), createElementBlock("div", _hoisted_7, [
23124
23144
  createElementVNode("div", {
23125
- innerHTML: props.modelValue[propsItem_box.fieldName]
23145
+ innerHTML: unref(formData_box)[propsItem_box.fieldName]
23126
23146
  }, null, 8 /* PROPS */, _hoisted_8)
23127
23147
  ]))
23128
23148
  : createCommentVNode("v-if", true),
@@ -23154,15 +23174,15 @@ return (_ctx, _cache) => {
23154
23174
  ], 8 /* PROPS */, _hoisted_10)
23155
23175
  ]),
23156
23176
  createCommentVNode(" 设置了视频删除功能,同时视频不为空 "),
23157
- (!!propsItem_box.videoDelete && !!props.modelValue[propsItem_box.fieldName])
23177
+ (!!propsItem_box.videoDelete && !!unref(formData_box)[propsItem_box.fieldName])
23158
23178
  ? (openBlock(), createElementBlock("div", _hoisted_14, [
23159
23179
  createVNode(_component_el_button, {
23160
23180
  size: "small",
23161
- icon: !props.modelValue[propsItem_box.videoDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
23181
+ icon: !unref(formData_box)[propsItem_box.videoDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
23162
23182
  onClick: video.delete
23163
23183
  }, {
23164
23184
  default: withCtx(() => [
23165
- createTextVNode(toDisplayString(!!props.modelValue[propsItem_box.videoDelete] ? '视频已删除,恢复' : '删除'), 1 /* TEXT */)
23185
+ createTextVNode(toDisplayString(!!unref(formData_box)[propsItem_box.videoDelete] ? '视频已删除,恢复' : '删除'), 1 /* TEXT */)
23166
23186
  ]),
23167
23187
  _: 1 /* STABLE */
23168
23188
  }, 8 /* PROPS */, ["icon", "onClick"])
@@ -23174,7 +23194,7 @@ return (_ctx, _cache) => {
23174
23194
  createCommentVNode(" 下载 "),
23175
23195
  (propsItem_box.inputType === 'download')
23176
23196
  ? (openBlock(), createElementBlock("div", _hoisted_15, [
23177
- (props.modelValue[propsItem_box.fieldName])
23197
+ (unref(formData_box)[propsItem_box.fieldName])
23178
23198
  ? (openBlock(), createElementBlock("a", {
23179
23199
  key: 0,
23180
23200
  style: normalizeStyle(style.download.style),
@@ -23193,8 +23213,8 @@ return (_ctx, _cache) => {
23193
23213
  (propsItem_box.inputType === 'upload')
23194
23214
  ? (openBlock(), createElementBlock("div", _hoisted_17, [
23195
23215
  createVNode(_component_ly0Upload, {
23196
- modelValue: props.modelValue[propsItem_box.fieldName],
23197
- "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23216
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23217
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23198
23218
  myProps: {uploadUrl: upload.uploadUrl}
23199
23219
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23200
23220
  ]))
@@ -23203,8 +23223,8 @@ return (_ctx, _cache) => {
23203
23223
  (propsItem_box.inputType === 'upload-drag')
23204
23224
  ? (openBlock(), createElementBlock("div", _hoisted_18, [
23205
23225
  createVNode(_component_ly0Upload_drag, {
23206
- modelValue: props.modelValue[propsItem_box.fieldName],
23207
- "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23226
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23227
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23208
23228
  myProps: {uploadUrl: upload.uploadUrl}
23209
23229
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23210
23230
  ]))
@@ -23213,8 +23233,8 @@ return (_ctx, _cache) => {
23213
23233
  (propsItem_box.inputType === 'upload-picture')
23214
23234
  ? (openBlock(), createElementBlock("div", _hoisted_19, [
23215
23235
  createVNode(_component_ly0Upload_picture, {
23216
- modelValue: props.modelValue[propsItem_box.fieldName],
23217
- "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23236
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23237
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23218
23238
  myProps: {uploadUrl: upload.uploadUrl_image}
23219
23239
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23220
23240
  ]))
@@ -23223,8 +23243,8 @@ return (_ctx, _cache) => {
23223
23243
  (propsItem_box.inputType === 'upload-picture-card')
23224
23244
  ? (openBlock(), createElementBlock("div", _hoisted_20, [
23225
23245
  createVNode(_component_ly0Upload_pictureCard, {
23226
- modelValue: props.modelValue[propsItem_box.fieldName],
23227
- "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23246
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23247
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23228
23248
  myProps: {uploadUrl: upload.uploadUrl_image}
23229
23249
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23230
23250
  ]))
@@ -23233,8 +23253,8 @@ return (_ctx, _cache) => {
23233
23253
  (propsItem_box.inputType === 'upload-avatar')
23234
23254
  ? (openBlock(), createElementBlock("div", _hoisted_21, [
23235
23255
  createVNode(_component_ly0Upload_avatar, {
23236
- modelValue: props.modelValue[propsItem_box.fieldName],
23237
- "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23256
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23257
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23238
23258
  myProps: {uploadUrl: upload.uploadUrl_image}
23239
23259
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23240
23260
  ]))
@@ -23243,8 +23263,8 @@ return (_ctx, _cache) => {
23243
23263
  (propsItem_box.inputType === 'upload-carplate')
23244
23264
  ? (openBlock(), createElementBlock("div", _hoisted_22, [
23245
23265
  createVNode(_component_ly0Upload_carplate, {
23246
- modelValue: props.modelValue[propsItem_box.fieldName],
23247
- "onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23266
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23267
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23248
23268
  myProps: {uploadUrl: upload.uploadUrl_carplate}
23249
23269
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23250
23270
  ]))
@@ -23253,8 +23273,8 @@ return (_ctx, _cache) => {
23253
23273
  (propsItem_box.inputType === 'd3gbt2260')
23254
23274
  ? (openBlock(), createElementBlock("div", _hoisted_23, [
23255
23275
  createVNode(_component_ly0gbt2260, {
23256
- modelValue: props.modelValue[propsItem_box.fieldName],
23257
- "onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23276
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23277
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23258
23278
  myProps: {readOnly: propsItem_box.readOnly}
23259
23279
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23260
23280
  ]))
@@ -23263,8 +23283,8 @@ return (_ctx, _cache) => {
23263
23283
  (propsItem_box.inputType === 'd7group')
23264
23284
  ? (openBlock(), createElementBlock("div", _hoisted_24, [
23265
23285
  createVNode(_component_ly0d7group, {
23266
- modelValue: props.modelValue[propsItem_box.fieldName],
23267
- "onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23286
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23287
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23268
23288
  myProps: {readOnly: propsItem_box.readOnly}
23269
23289
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23270
23290
  ]))
@@ -23273,8 +23293,8 @@ return (_ctx, _cache) => {
23273
23293
  (propsItem_box.inputType === 'd7postal')
23274
23294
  ? (openBlock(), createElementBlock("div", _hoisted_25, [
23275
23295
  createVNode(_component_ly0d7postal, {
23276
- modelValue: props.modelValue[propsItem_box.fieldName],
23277
- "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23296
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23297
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23278
23298
  myProps: {readOnly: propsItem_box.readOnly}
23279
23299
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23280
23300
  ]))
@@ -23283,8 +23303,8 @@ return (_ctx, _cache) => {
23283
23303
  (propsItem_box.inputType === 'd7price')
23284
23304
  ? (openBlock(), createElementBlock("div", _hoisted_26, [
23285
23305
  createVNode(_component_ly0d7price, {
23286
- modelValue: props.modelValue[propsItem_box.fieldName],
23287
- "onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23306
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23307
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23288
23308
  myProps: {readOnly: propsItem_box.readOnly}
23289
23309
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23290
23310
  ]))
@@ -23293,8 +23313,8 @@ return (_ctx, _cache) => {
23293
23313
  (propsItem_box.inputType === 'd7size')
23294
23314
  ? (openBlock(), createElementBlock("div", _hoisted_27, [
23295
23315
  createVNode(_component_ly0d7size, {
23296
- modelValue: props.modelValue[propsItem_box.fieldName],
23297
- "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((props.modelValue[propsItem_box.fieldName]) = $event)),
23316
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23317
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23298
23318
  myProps: {readOnly: propsItem_box.readOnly}
23299
23319
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23300
23320
  ]))
@@ -23303,8 +23323,8 @@ return (_ctx, _cache) => {
23303
23323
  (propsItem_box.inputType === 'd7thumb')
23304
23324
  ? (openBlock(), createElementBlock("div", _hoisted_28, [
23305
23325
  createVNode(_component_ly0d7thumb, {
23306
- modelValue: props.modelValue,
23307
- "onUpdate:modelValue": _cache[18] || (_cache[18] = $event => ((props.modelValue) = $event)),
23326
+ modelValue: unref(formData_box),
23327
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23308
23328
  myProps: {
23309
23329
  thumb: {
23310
23330
  fieldName: propsItem_box.thumb.fieldName || formProps_box.para.ly0d7thumb.thumb.fieldName,
@@ -23354,10 +23374,14 @@ var script$f = {
23354
23374
  default: () => ({})
23355
23375
  }
23356
23376
  },
23357
- setup(__props) {
23377
+ emits: ['update:modelValue', 'change'],
23378
+ setup(__props, { emit: __emit }) {
23358
23379
 
23359
23380
  const props = __props;
23381
+ // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
23382
+ const emit = __emit;
23360
23383
 
23384
+ let formData_box = reactive(props.modelValue);
23361
23385
  const formProps_box = reactive(Object.assign({}, props.myProps));
23362
23386
  const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
23363
23387
 
@@ -23375,7 +23399,7 @@ const hdl = {
23375
23399
  if(formProps_box.submit.handle){
23376
23400
  // 执行用户句柄
23377
23401
  const result = await formProps_box.submit.handle({
23378
- formData: props.modelValue,
23402
+ formData: formData_box,
23379
23403
  scopeThis: scopeThis_box
23380
23404
  });
23381
23405
  if(result.code !== 0){
@@ -23387,7 +23411,7 @@ const hdl = {
23387
23411
  if(formProps_box.submit.url){
23388
23412
  const result = await request.ly0.ly0request({
23389
23413
  url: formProps_box.submit.url,
23390
- data: props.modelValue
23414
+ data: formData_box
23391
23415
  });
23392
23416
  if(result.code !== 0){
23393
23417
  return
@@ -23398,7 +23422,7 @@ const hdl = {
23398
23422
  if(formProps_box.submit.storpro){
23399
23423
  const result = await request.ly0.storpro({
23400
23424
  storproName: formProps_box.submit.storpro,
23401
- data: props.modelValue
23425
+ data: formData_box
23402
23426
  });
23403
23427
  if(result.code !== 0){
23404
23428
  return
@@ -23411,10 +23435,26 @@ const hdl = {
23411
23435
  }
23412
23436
 
23413
23437
  // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
23414
- emit("update:modelValue", props.modelValue);
23438
+ emit("update:modelValue", formData_box);
23415
23439
  }
23416
23440
  };
23417
23441
 
23442
+ // 表单数据监听
23443
+ watch(
23444
+ formData_box,
23445
+ (newVal, oldVal) => {
23446
+
23447
+ console.log('测试 222 监听', newVal);
23448
+ console.log('测试 333 监听', oldVal);
23449
+
23450
+ // 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
23451
+ emit("update:modelValue", newVal);
23452
+ },
23453
+ {
23454
+ deep: true, // 深层监听
23455
+ }
23456
+ );
23457
+
23418
23458
  return (_ctx, _cache) => {
23419
23459
  const _component_ly0Menu = resolveComponent("ly0Menu");
23420
23460
  const _component_el_collapse_item = resolveComponent("el-collapse-item");
@@ -23440,7 +23480,7 @@ return (_ctx, _cache) => {
23440
23480
  createElementVNode("tbody", null, [
23441
23481
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.items, (item0, index0) => {
23442
23482
  return (openBlock(), createElementBlock(Fragment, { key: index0 }, [
23443
- (item0.hdlVisible ? item0.hdlVisible({formData: props.modelValue, scopeThis: scopeThis_box}) : true)
23483
+ (item0.hdlVisible ? item0.hdlVisible({formData: unref(formData_box), scopeThis: scopeThis_box}) : true)
23444
23484
  ? (openBlock(), createElementBlock("tr", _hoisted_1$c, [
23445
23485
  (!!item0.label)
23446
23486
  ? (openBlock(), createElementBlock("td", {
@@ -23448,8 +23488,8 @@ return (_ctx, _cache) => {
23448
23488
  style: normalizeStyle(style.field_box.left)
23449
23489
  }, [
23450
23490
  createVNode(script$h, {
23451
- modelValue: props.modelValue,
23452
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((props.modelValue) = $event)),
23491
+ modelValue: unref(formData_box),
23492
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23453
23493
  myProps: formProps_box,
23454
23494
  scopeThis: scopeThis_box,
23455
23495
  item: item0
@@ -23474,7 +23514,7 @@ return (_ctx, _cache) => {
23474
23514
  default: withCtx(() => [
23475
23515
  (openBlock(true), createElementBlock(Fragment, null, renderList(item0.items, (item1, index1) => {
23476
23516
  return (openBlock(), createElementBlock(Fragment, { key: index1 }, [
23477
- (item1.hdlVisible ? item1.hdlVisible({formData: props.modelValue, scopeThis: scopeThis_box}) : true)
23517
+ (item1.hdlVisible ? item1.hdlVisible({formData: unref(formData_box), scopeThis: scopeThis_box}) : true)
23478
23518
  ? (openBlock(), createBlock(_component_el_collapse_item, {
23479
23519
  key: 0,
23480
23520
  title: item1.title,
@@ -23488,7 +23528,7 @@ return (_ctx, _cache) => {
23488
23528
  return (openBlock(), createElementBlock(Fragment, { key: index2 }, [
23489
23529
  (
23490
23530
  item2.hdlVisible
23491
- ? item2.hdlVisible({formData: props.modelValue, scopeThis: scopeThis_box})
23531
+ ? item2.hdlVisible({formData: unref(formData_box), scopeThis: scopeThis_box})
23492
23532
  : true
23493
23533
  )
23494
23534
  ? (openBlock(), createElementBlock("tr", _hoisted_3$5, [
@@ -23498,8 +23538,8 @@ return (_ctx, _cache) => {
23498
23538
  style: normalizeStyle(style.field_box.left)
23499
23539
  }, [
23500
23540
  createVNode(script$h, {
23501
- modelValue: props.modelValue,
23502
- "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((props.modelValue) = $event)),
23541
+ modelValue: unref(formData_box),
23542
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23503
23543
  myProps: formProps_box,
23504
23544
  scopeThis: scopeThis_box,
23505
23545
  item: item2
@@ -23511,8 +23551,8 @@ return (_ctx, _cache) => {
23511
23551
  colspan: style.no_field_label(item2)
23512
23552
  }, [
23513
23553
  createVNode(script$g, {
23514
- modelValue: props.modelValue,
23515
- "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((props.modelValue) = $event)),
23554
+ modelValue: unref(formData_box),
23555
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23516
23556
  myProps: formProps_box,
23517
23557
  scopeThis: scopeThis_box,
23518
23558
  item: item2
@@ -23534,8 +23574,8 @@ return (_ctx, _cache) => {
23534
23574
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["accordion", "modelValue", "onUpdate:modelValue", "style"]))
23535
23575
  : createCommentVNode("v-if", true),
23536
23576
  createVNode(script$g, {
23537
- modelValue: props.modelValue,
23538
- "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((props.modelValue) = $event)),
23577
+ modelValue: unref(formData_box),
23578
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23539
23579
  myProps: formProps_box,
23540
23580
  scopeThis: scopeThis_box,
23541
23581
  item: item0
@@ -23597,13 +23637,33 @@ var script$e = {
23597
23637
  default: () => ({})
23598
23638
  }
23599
23639
  },
23600
- setup(__props) {
23640
+ emits: ['update:modelValue', 'change'],
23641
+ setup(__props, { emit: __emit }) {
23601
23642
 
23602
23643
  const props = __props;
23644
+ // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
23645
+ const emit = __emit;
23603
23646
 
23647
+ let formData_box = reactive(props.modelValue);
23604
23648
  const formProps_box = reactive(Object.assign({}, ly0default$2.myProps, props.myProps));
23605
23649
  const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
23606
23650
 
23651
+ // 表单数据监听
23652
+ watch(
23653
+ formData_box,
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
+ deep: true, // 深层监听
23664
+ }
23665
+ );
23666
+
23607
23667
  return (_ctx, _cache) => {
23608
23668
  const _component_el_dialog = resolveComponent("el-dialog");
23609
23669
 
@@ -23622,8 +23682,8 @@ return (_ctx, _cache) => {
23622
23682
  }, {
23623
23683
  default: withCtx(() => [
23624
23684
  createVNode(script$f, {
23625
- modelValue: props.modelValue,
23626
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((props.modelValue) = $event)),
23685
+ modelValue: unref(formData_box),
23686
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23627
23687
  myProps: formProps_box,
23628
23688
  scopeThis: scopeThis_box
23629
23689
  }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"])
@@ -23632,8 +23692,8 @@ return (_ctx, _cache) => {
23632
23692
  }, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
23633
23693
  : (openBlock(), createBlock(script$f, {
23634
23694
  key: 1,
23635
- modelValue: props.modelValue,
23636
- "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((props.modelValue) = $event)),
23695
+ modelValue: unref(formData_box),
23696
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23637
23697
  myProps: formProps_box,
23638
23698
  scopeThis: scopeThis_box
23639
23699
  }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]))