@yoooloo42/joker 1.0.90 → 1.0.92

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) {
@@ -22519,7 +22519,7 @@ const props = __props;
22519
22519
  // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
22520
22520
  const emit = __emit;
22521
22521
 
22522
- const formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
22522
+ let formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
22523
22523
  reactive(Object.assign({}, props.myProps));
22524
22524
  const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
22525
22525
  const propsItem_box = reactive(Object.assign({}, props.item));
@@ -22620,7 +22620,7 @@ const props = __props;
22620
22620
  // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
22621
22621
  const emit = __emit;
22622
22622
 
22623
- const formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
22623
+ let formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
22624
22624
  const formProps_box = reactive(Object.assign({}, props.myProps));
22625
22625
  const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
22626
22626
  const propsItem_box = reactive(Object.assign({}, props.item));
@@ -22878,34 +22878,34 @@ return (_ctx, _cache) => {
22878
22878
  ? (openBlock(), createElementBlock("div", {
22879
22879
  key: 0,
22880
22880
  style: normalizeStyle(style.text(propsItem_box, formProps_box))
22881
- }, toDisplayString(formData_box[propsItem_box.fieldName] ? formData_box[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22881
+ }, toDisplayString(unref(formData_box)[propsItem_box.fieldName] ? unref(formData_box)[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22882
22882
  : createCommentVNode("v-if", true),
22883
22883
  (propsItem_box.inputType === 'text0')
22884
22884
  ? (openBlock(), createElementBlock("div", {
22885
22885
  key: 1,
22886
22886
  style: normalizeStyle(style.text0(propsItem_box))
22887
- }, toDisplayString(formData_box[propsItem_box.fieldName] ? formData_box[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22887
+ }, toDisplayString(unref(formData_box)[propsItem_box.fieldName] ? unref(formData_box)[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22888
22888
  : createCommentVNode("v-if", true),
22889
22889
  (!propsItem_box.inputType)
22890
22890
  ? (openBlock(), createElementBlock("div", {
22891
22891
  key: 2,
22892
22892
  style: normalizeStyle(style.text(propsItem_box, formProps_box))
22893
- }, toDisplayString(formData_box[propsItem_box.fieldName] ? formData_box[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22893
+ }, toDisplayString(unref(formData_box)[propsItem_box.fieldName] ? unref(formData_box)[propsItem_box.fieldName] : ' '), 5 /* TEXT, STYLE */))
22894
22894
  : createCommentVNode("v-if", true),
22895
22895
  (propsItem_box.inputType === 'expression')
22896
22896
  ? (openBlock(), createElementBlock("div", {
22897
22897
  key: 3,
22898
22898
  style: normalizeStyle(style.text(propsItem_box, formProps_box))
22899
- }, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: formData_box, scopeThis: __props.scopeThis})
22900
- ? propsItem_box.hdlExpression({formData: formData_box, scopeThis: scopeThis_box})
22899
+ }, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: unref(formData_box), scopeThis: __props.scopeThis})
22900
+ ? propsItem_box.hdlExpression({formData: unref(formData_box), scopeThis: scopeThis_box})
22901
22901
  : ' '), 5 /* TEXT, STYLE */))
22902
22902
  : createCommentVNode("v-if", true),
22903
22903
  (propsItem_box.inputType === 'expression0')
22904
22904
  ? (openBlock(), createElementBlock("div", {
22905
22905
  key: 4,
22906
22906
  style: normalizeStyle(style.text0(propsItem_box))
22907
- }, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: formData_box, scopeThis: scopeThis_box})
22908
- ? propsItem_box.hdlExpression({formData: formData_box, scopeThis: scopeThis_box})
22907
+ }, toDisplayString(propsItem_box.hdlExpression && propsItem_box.hdlExpression({formData: unref(formData_box), scopeThis: scopeThis_box})
22908
+ ? propsItem_box.hdlExpression({formData: unref(formData_box), scopeThis: scopeThis_box})
22909
22909
  : ' '), 5 /* TEXT, STYLE */))
22910
22910
  : createCommentVNode("v-if", true),
22911
22911
  (propsItem_box.inputType === 'line')
@@ -22918,8 +22918,8 @@ return (_ctx, _cache) => {
22918
22918
  (propsItem_box.inputType === 'input')
22919
22919
  ? (openBlock(), createBlock(_component_el_input, {
22920
22920
  key: 6,
22921
- modelValue: formData_box[propsItem_box.fieldName],
22922
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
22921
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
22922
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22923
22923
  placeholder: input.placeholder,
22924
22924
  style: normalizeStyle(style.input(propsItem_box, formProps_box)),
22925
22925
  onInput: input.hdlCannotInput,
@@ -22930,8 +22930,8 @@ return (_ctx, _cache) => {
22930
22930
  ? (openBlock(), createBlock(_component_el_select, {
22931
22931
  key: 7,
22932
22932
  class: "deep-input",
22933
- modelValue: formData_box[propsItem_box.fieldName],
22934
- "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
22933
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
22934
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22935
22935
  placeholder: select.placeholder,
22936
22936
  filterable: "",
22937
22937
  style: normalizeStyle(style.input(propsItem_box, formProps_box)),
@@ -22953,8 +22953,8 @@ return (_ctx, _cache) => {
22953
22953
  ? (openBlock(), createBlock(_component_el_date_picker, {
22954
22954
  key: 8,
22955
22955
  class: "deep-input",
22956
- modelValue: formData_box[propsItem_box.fieldName],
22957
- "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
22956
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
22957
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22958
22958
  type: propsItem_box.type ? propsItem_box.type : 'datetime',
22959
22959
  placeholder: datePicker.placeholder,
22960
22960
  format: datePicker.format,
@@ -22965,8 +22965,8 @@ return (_ctx, _cache) => {
22965
22965
  (propsItem_box.inputType === 'input-number')
22966
22966
  ? (openBlock(), createBlock(_component_el_input_number, {
22967
22967
  key: 9,
22968
- modelValue: formData_box[propsItem_box.fieldName],
22969
- "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
22968
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
22969
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22970
22970
  size: style.input_number(propsItem_box).facade.size,
22971
22971
  min: 'min' in propsItem_box ? propsItem_box.min : 1,
22972
22972
  max: 'max' in propsItem_box ? propsItem_box.max : 100,
@@ -22977,8 +22977,8 @@ return (_ctx, _cache) => {
22977
22977
  (propsItem_box.inputType === 'switch')
22978
22978
  ? (openBlock(), createBlock(_component_el_switch, {
22979
22979
  key: 10,
22980
- modelValue: formData_box[propsItem_box.fieldName],
22981
- "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
22980
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
22981
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22982
22982
  "active-text": propsItem_box.activeText,
22983
22983
  "inactive-text": propsItem_box.inactiveText,
22984
22984
  "active-value": propsItem_box.activeValue,
@@ -22991,8 +22991,8 @@ return (_ctx, _cache) => {
22991
22991
  (propsItem_box.inputType === 'radio-group')
22992
22992
  ? (openBlock(), createBlock(_component_el_radio_group, {
22993
22993
  key: 11,
22994
- modelValue: formData_box[propsItem_box.fieldName],
22995
- "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
22994
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
22995
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
22996
22996
  disabled: !!propsItem_box.disabled,
22997
22997
  onChange: radioGroup.hdlChange
22998
22998
  }, {
@@ -23037,7 +23037,7 @@ return (_ctx, _cache) => {
23037
23037
  plain: style.button_group(propsItem_box, item0, item1).button.facade.plain,
23038
23038
  round: style.button_group(propsItem_box, item0, item1).button.facade.round,
23039
23039
  circle: style.button_group(propsItem_box, item0, item1).button.facade.circle,
23040
- onClick: $event => (item1.hdlClick ? item1.hdlClick({formData: formData_box, scopeThis: scopeThis_box}) : null),
23040
+ onClick: $event => (item1.hdlClick ? item1.hdlClick({formData: unref(formData_box), scopeThis: scopeThis_box}) : null),
23041
23041
  key: index1
23042
23042
  }, {
23043
23043
  default: withCtx(() => [
@@ -23071,15 +23071,15 @@ return (_ctx, _cache) => {
23071
23071
  }, null, 8 /* PROPS */, ["style", "src", "preview-src-list"])
23072
23072
  ]),
23073
23073
  createCommentVNode(" 设置了图片删除功能,同时图片不为空 "),
23074
- (!!propsItem_box.imageDelete && !!formData_box[propsItem_box.fieldName])
23074
+ (!!propsItem_box.imageDelete && !!unref(formData_box)[propsItem_box.fieldName])
23075
23075
  ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
23076
23076
  createVNode(_component_el_button, {
23077
23077
  size: "small",
23078
- icon: !formData_box[propsItem_box.imageDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
23078
+ icon: !unref(formData_box)[propsItem_box.imageDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
23079
23079
  onClick: image.delete
23080
23080
  }, {
23081
23081
  default: withCtx(() => [
23082
- createTextVNode(toDisplayString(formData_box[propsItem_box.imageDelete] ? '图片已删除,恢复' : '删除'), 1 /* TEXT */)
23082
+ createTextVNode(toDisplayString(unref(formData_box)[propsItem_box.imageDelete] ? '图片已删除,恢复' : '删除'), 1 /* TEXT */)
23083
23083
  ]),
23084
23084
  _: 1 /* STABLE */
23085
23085
  }, 8 /* PROPS */, ["icon", "onClick"])
@@ -23090,7 +23090,7 @@ return (_ctx, _cache) => {
23090
23090
  createCommentVNode(" 多个图片 "),
23091
23091
  (propsItem_box.inputType === 'images')
23092
23092
  ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
23093
- (openBlock(true), createElementBlock(Fragment, null, renderList(formData_box[propsItem_box.fieldName], (itemImages, indexImages) => {
23093
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(formData_box)[propsItem_box.fieldName], (itemImages, indexImages) => {
23094
23094
  return (openBlock(), createElementBlock("div", {
23095
23095
  key: indexImages,
23096
23096
  style: normalizeStyle(style.images(propsItem_box, formProps_box).itemBox)
@@ -23110,7 +23110,7 @@ return (_ctx, _cache) => {
23110
23110
  onClick: $event => (images.delete(itemImages, indexImages))
23111
23111
  }, {
23112
23112
  default: withCtx(() => [
23113
- createTextVNode(toDisplayString(formData_box[propsItem_box.imageDelete].includes(itemImages) ? '恢复' : '删除'), 1 /* TEXT */)
23113
+ createTextVNode(toDisplayString(unref(formData_box)[propsItem_box.imageDelete].includes(itemImages) ? '恢复' : '删除'), 1 /* TEXT */)
23114
23114
  ]),
23115
23115
  _: 2 /* DYNAMIC */
23116
23116
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"])
@@ -23127,8 +23127,8 @@ return (_ctx, _cache) => {
23127
23127
  style: normalizeStyle(style.richtext(propsItem_box, formProps_box))
23128
23128
  }, [
23129
23129
  createVNode(_component_ly0Richtext, {
23130
- modelValue: formData_box[propsItem_box.fieldName],
23131
- "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
23130
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23131
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23132
23132
  myProps: richtextProps.value
23133
23133
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23134
23134
  ], 4 /* STYLE */))
@@ -23137,7 +23137,7 @@ return (_ctx, _cache) => {
23137
23137
  (propsItem_box.inputType === 'richtextShow')
23138
23138
  ? (openBlock(), createElementBlock("div", _hoisted_7, [
23139
23139
  createElementVNode("div", {
23140
- innerHTML: formData_box[propsItem_box.fieldName]
23140
+ innerHTML: unref(formData_box)[propsItem_box.fieldName]
23141
23141
  }, null, 8 /* PROPS */, _hoisted_8)
23142
23142
  ]))
23143
23143
  : createCommentVNode("v-if", true),
@@ -23169,15 +23169,15 @@ return (_ctx, _cache) => {
23169
23169
  ], 8 /* PROPS */, _hoisted_10)
23170
23170
  ]),
23171
23171
  createCommentVNode(" 设置了视频删除功能,同时视频不为空 "),
23172
- (!!propsItem_box.videoDelete && !!formData_box[propsItem_box.fieldName])
23172
+ (!!propsItem_box.videoDelete && !!unref(formData_box)[propsItem_box.fieldName])
23173
23173
  ? (openBlock(), createElementBlock("div", _hoisted_14, [
23174
23174
  createVNode(_component_el_button, {
23175
23175
  size: "small",
23176
- icon: !formData_box[propsItem_box.videoDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
23176
+ icon: !unref(formData_box)[propsItem_box.videoDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
23177
23177
  onClick: video.delete
23178
23178
  }, {
23179
23179
  default: withCtx(() => [
23180
- createTextVNode(toDisplayString(!!formData_box[propsItem_box.videoDelete] ? '视频已删除,恢复' : '删除'), 1 /* TEXT */)
23180
+ createTextVNode(toDisplayString(!!unref(formData_box)[propsItem_box.videoDelete] ? '视频已删除,恢复' : '删除'), 1 /* TEXT */)
23181
23181
  ]),
23182
23182
  _: 1 /* STABLE */
23183
23183
  }, 8 /* PROPS */, ["icon", "onClick"])
@@ -23189,7 +23189,7 @@ return (_ctx, _cache) => {
23189
23189
  createCommentVNode(" 下载 "),
23190
23190
  (propsItem_box.inputType === 'download')
23191
23191
  ? (openBlock(), createElementBlock("div", _hoisted_15, [
23192
- (formData_box[propsItem_box.fieldName])
23192
+ (unref(formData_box)[propsItem_box.fieldName])
23193
23193
  ? (openBlock(), createElementBlock("a", {
23194
23194
  key: 0,
23195
23195
  style: normalizeStyle(style.download.style),
@@ -23208,8 +23208,8 @@ return (_ctx, _cache) => {
23208
23208
  (propsItem_box.inputType === 'upload')
23209
23209
  ? (openBlock(), createElementBlock("div", _hoisted_17, [
23210
23210
  createVNode(_component_ly0Upload, {
23211
- modelValue: formData_box[propsItem_box.fieldName],
23212
- "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
23211
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23212
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23213
23213
  myProps: {uploadUrl: upload.uploadUrl}
23214
23214
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23215
23215
  ]))
@@ -23218,8 +23218,8 @@ return (_ctx, _cache) => {
23218
23218
  (propsItem_box.inputType === 'upload-drag')
23219
23219
  ? (openBlock(), createElementBlock("div", _hoisted_18, [
23220
23220
  createVNode(_component_ly0Upload_drag, {
23221
- modelValue: formData_box[propsItem_box.fieldName],
23222
- "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
23221
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23222
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23223
23223
  myProps: {uploadUrl: upload.uploadUrl}
23224
23224
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23225
23225
  ]))
@@ -23228,8 +23228,8 @@ return (_ctx, _cache) => {
23228
23228
  (propsItem_box.inputType === 'upload-picture')
23229
23229
  ? (openBlock(), createElementBlock("div", _hoisted_19, [
23230
23230
  createVNode(_component_ly0Upload_picture, {
23231
- modelValue: formData_box[propsItem_box.fieldName],
23232
- "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
23231
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23232
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23233
23233
  myProps: {uploadUrl: upload.uploadUrl_image}
23234
23234
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23235
23235
  ]))
@@ -23238,8 +23238,8 @@ return (_ctx, _cache) => {
23238
23238
  (propsItem_box.inputType === 'upload-picture-card')
23239
23239
  ? (openBlock(), createElementBlock("div", _hoisted_20, [
23240
23240
  createVNode(_component_ly0Upload_pictureCard, {
23241
- modelValue: formData_box[propsItem_box.fieldName],
23242
- "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
23241
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23242
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23243
23243
  myProps: {uploadUrl: upload.uploadUrl_image}
23244
23244
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23245
23245
  ]))
@@ -23248,8 +23248,8 @@ return (_ctx, _cache) => {
23248
23248
  (propsItem_box.inputType === 'upload-avatar')
23249
23249
  ? (openBlock(), createElementBlock("div", _hoisted_21, [
23250
23250
  createVNode(_component_ly0Upload_avatar, {
23251
- modelValue: formData_box[propsItem_box.fieldName],
23252
- "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
23251
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23252
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23253
23253
  myProps: {uploadUrl: upload.uploadUrl_image}
23254
23254
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23255
23255
  ]))
@@ -23258,8 +23258,8 @@ return (_ctx, _cache) => {
23258
23258
  (propsItem_box.inputType === 'upload-carplate')
23259
23259
  ? (openBlock(), createElementBlock("div", _hoisted_22, [
23260
23260
  createVNode(_component_ly0Upload_carplate, {
23261
- modelValue: formData_box[propsItem_box.fieldName],
23262
- "onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
23261
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23262
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23263
23263
  myProps: {uploadUrl: upload.uploadUrl_carplate}
23264
23264
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23265
23265
  ]))
@@ -23268,8 +23268,8 @@ return (_ctx, _cache) => {
23268
23268
  (propsItem_box.inputType === 'd3gbt2260')
23269
23269
  ? (openBlock(), createElementBlock("div", _hoisted_23, [
23270
23270
  createVNode(_component_ly0gbt2260, {
23271
- modelValue: formData_box[propsItem_box.fieldName],
23272
- "onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
23271
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23272
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23273
23273
  myProps: {readOnly: propsItem_box.readOnly}
23274
23274
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23275
23275
  ]))
@@ -23278,8 +23278,8 @@ return (_ctx, _cache) => {
23278
23278
  (propsItem_box.inputType === 'd7group')
23279
23279
  ? (openBlock(), createElementBlock("div", _hoisted_24, [
23280
23280
  createVNode(_component_ly0d7group, {
23281
- modelValue: formData_box[propsItem_box.fieldName],
23282
- "onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
23281
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23282
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23283
23283
  myProps: {readOnly: propsItem_box.readOnly}
23284
23284
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23285
23285
  ]))
@@ -23288,8 +23288,8 @@ return (_ctx, _cache) => {
23288
23288
  (propsItem_box.inputType === 'd7postal')
23289
23289
  ? (openBlock(), createElementBlock("div", _hoisted_25, [
23290
23290
  createVNode(_component_ly0d7postal, {
23291
- modelValue: formData_box[propsItem_box.fieldName],
23292
- "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
23291
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23292
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23293
23293
  myProps: {readOnly: propsItem_box.readOnly}
23294
23294
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23295
23295
  ]))
@@ -23298,8 +23298,8 @@ return (_ctx, _cache) => {
23298
23298
  (propsItem_box.inputType === 'd7price')
23299
23299
  ? (openBlock(), createElementBlock("div", _hoisted_26, [
23300
23300
  createVNode(_component_ly0d7price, {
23301
- modelValue: formData_box[propsItem_box.fieldName],
23302
- "onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
23301
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23302
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23303
23303
  myProps: {readOnly: propsItem_box.readOnly}
23304
23304
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23305
23305
  ]))
@@ -23308,8 +23308,8 @@ return (_ctx, _cache) => {
23308
23308
  (propsItem_box.inputType === 'd7size')
23309
23309
  ? (openBlock(), createElementBlock("div", _hoisted_27, [
23310
23310
  createVNode(_component_ly0d7size, {
23311
- modelValue: formData_box[propsItem_box.fieldName],
23312
- "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((formData_box[propsItem_box.fieldName]) = $event)),
23311
+ modelValue: unref(formData_box)[propsItem_box.fieldName],
23312
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => ((unref(formData_box)[propsItem_box.fieldName]) = $event)),
23313
23313
  myProps: {readOnly: propsItem_box.readOnly}
23314
23314
  }, null, 8 /* PROPS */, ["modelValue", "myProps"])
23315
23315
  ]))
@@ -23318,8 +23318,8 @@ return (_ctx, _cache) => {
23318
23318
  (propsItem_box.inputType === 'd7thumb')
23319
23319
  ? (openBlock(), createElementBlock("div", _hoisted_28, [
23320
23320
  createVNode(_component_ly0d7thumb, {
23321
- modelValue: formData_box,
23322
- "onUpdate:modelValue": _cache[18] || (_cache[18] = $event => ((formData_box) = $event)),
23321
+ modelValue: unref(formData_box),
23322
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23323
23323
  myProps: {
23324
23324
  thumb: {
23325
23325
  fieldName: propsItem_box.thumb.fieldName || formProps_box.para.ly0d7thumb.thumb.fieldName,
@@ -23376,7 +23376,7 @@ const props = __props;
23376
23376
  // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
23377
23377
  const emit = __emit;
23378
23378
 
23379
- const formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
23379
+ let formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
23380
23380
  const formProps_box = reactive(Object.assign({}, props.myProps));
23381
23381
  const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
23382
23382
 
@@ -23459,7 +23459,7 @@ return (_ctx, _cache) => {
23459
23459
  createElementVNode("tbody", null, [
23460
23460
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.items, (item0, index0) => {
23461
23461
  return (openBlock(), createElementBlock(Fragment, { key: index0 }, [
23462
- (item0.hdlVisible ? item0.hdlVisible({formData: formData_box, scopeThis: scopeThis_box}) : true)
23462
+ (item0.hdlVisible ? item0.hdlVisible({formData: unref(formData_box), scopeThis: scopeThis_box}) : true)
23463
23463
  ? (openBlock(), createElementBlock("tr", _hoisted_1$c, [
23464
23464
  (!!item0.label)
23465
23465
  ? (openBlock(), createElementBlock("td", {
@@ -23467,8 +23467,8 @@ return (_ctx, _cache) => {
23467
23467
  style: normalizeStyle(style.field_box.left)
23468
23468
  }, [
23469
23469
  createVNode(script$h, {
23470
- modelValue: formData_box,
23471
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((formData_box) = $event)),
23470
+ modelValue: unref(formData_box),
23471
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23472
23472
  myProps: formProps_box,
23473
23473
  scopeThis: scopeThis_box,
23474
23474
  item: item0
@@ -23493,7 +23493,7 @@ return (_ctx, _cache) => {
23493
23493
  default: withCtx(() => [
23494
23494
  (openBlock(true), createElementBlock(Fragment, null, renderList(item0.items, (item1, index1) => {
23495
23495
  return (openBlock(), createElementBlock(Fragment, { key: index1 }, [
23496
- (item1.hdlVisible ? item1.hdlVisible({formData: formData_box, scopeThis: scopeThis_box}) : true)
23496
+ (item1.hdlVisible ? item1.hdlVisible({formData: unref(formData_box), scopeThis: scopeThis_box}) : true)
23497
23497
  ? (openBlock(), createBlock(_component_el_collapse_item, {
23498
23498
  key: 0,
23499
23499
  title: item1.title,
@@ -23507,7 +23507,7 @@ return (_ctx, _cache) => {
23507
23507
  return (openBlock(), createElementBlock(Fragment, { key: index2 }, [
23508
23508
  (
23509
23509
  item2.hdlVisible
23510
- ? item2.hdlVisible({formData: formData_box, scopeThis: scopeThis_box})
23510
+ ? item2.hdlVisible({formData: unref(formData_box), scopeThis: scopeThis_box})
23511
23511
  : true
23512
23512
  )
23513
23513
  ? (openBlock(), createElementBlock("tr", _hoisted_3$5, [
@@ -23517,8 +23517,8 @@ return (_ctx, _cache) => {
23517
23517
  style: normalizeStyle(style.field_box.left)
23518
23518
  }, [
23519
23519
  createVNode(script$h, {
23520
- modelValue: formData_box,
23521
- "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((formData_box) = $event)),
23520
+ modelValue: unref(formData_box),
23521
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23522
23522
  myProps: formProps_box,
23523
23523
  scopeThis: scopeThis_box,
23524
23524
  item: item2
@@ -23530,8 +23530,8 @@ return (_ctx, _cache) => {
23530
23530
  colspan: style.no_field_label(item2)
23531
23531
  }, [
23532
23532
  createVNode(script$g, {
23533
- modelValue: formData_box,
23534
- "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((formData_box) = $event)),
23533
+ modelValue: unref(formData_box),
23534
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23535
23535
  myProps: formProps_box,
23536
23536
  scopeThis: scopeThis_box,
23537
23537
  item: item2
@@ -23553,8 +23553,8 @@ return (_ctx, _cache) => {
23553
23553
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["accordion", "modelValue", "onUpdate:modelValue", "style"]))
23554
23554
  : createCommentVNode("v-if", true),
23555
23555
  createVNode(script$g, {
23556
- modelValue: formData_box,
23557
- "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((formData_box) = $event)),
23556
+ modelValue: unref(formData_box),
23557
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23558
23558
  myProps: formProps_box,
23559
23559
  scopeThis: scopeThis_box,
23560
23560
  item: item0
@@ -23623,7 +23623,7 @@ const props = __props;
23623
23623
  // 遵循 Vue 3 v-model 规范,使用 update:modelValue 事件
23624
23624
  const emit = __emit;
23625
23625
 
23626
- const formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
23626
+ let formData_box = reactive(JSON.parse(JSON.stringify(props.modelValue)));
23627
23627
  const formProps_box = reactive(Object.assign({}, ly0default$2.myProps, props.myProps));
23628
23628
  const scopeThis_box = reactive(Object.assign({}, props.scopeThis));
23629
23629
 
@@ -23654,8 +23654,8 @@ return (_ctx, _cache) => {
23654
23654
  }, {
23655
23655
  default: withCtx(() => [
23656
23656
  createVNode(script$f, {
23657
- modelValue: formData_box,
23658
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((formData_box) = $event)),
23657
+ modelValue: unref(formData_box),
23658
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23659
23659
  myProps: formProps_box,
23660
23660
  scopeThis: scopeThis_box
23661
23661
  }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"])
@@ -23664,8 +23664,8 @@ return (_ctx, _cache) => {
23664
23664
  }, 8 /* PROPS */, ["modelValue", "title", "width", "top"]))
23665
23665
  : (openBlock(), createBlock(script$f, {
23666
23666
  key: 1,
23667
- modelValue: formData_box,
23668
- "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((formData_box) = $event)),
23667
+ modelValue: unref(formData_box),
23668
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
23669
23669
  myProps: formProps_box,
23670
23670
  scopeThis: scopeThis_box
23671
23671
  }, null, 8 /* PROPS */, ["modelValue", "myProps", "scopeThis"]))