@tmagic/form 1.7.12 → 1.7.13-beta.0

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.
@@ -72,7 +72,7 @@ var FormDialog_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
72
72
  };
73
73
  const save = async () => {
74
74
  try {
75
- const changeRecords = form.value?.changeRecords;
75
+ const changeRecords = [...form.value?.changeRecords || []];
76
76
  emit("submit", await form.value?.submitForm(), { changeRecords });
77
77
  } catch (e) {
78
78
  emit("error", e);
@@ -3610,7 +3610,7 @@
3610
3610
  };
3611
3611
  const save = async () => {
3612
3612
  try {
3613
- const changeRecords = form.value?.changeRecords;
3613
+ const changeRecords = [...form.value?.changeRecords || []];
3614
3614
  emit("submit", await form.value?.submitForm(), { changeRecords });
3615
3615
  } catch (e) {
3616
3616
  emit("error", e);
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.12",
2
+ "version": "1.7.13-beta.0",
3
3
  "name": "@tmagic/form",
4
4
  "type": "module",
5
5
  "sideEffects": [
@@ -52,9 +52,9 @@
52
52
  "peerDependencies": {
53
53
  "vue": "^3.5.33",
54
54
  "typescript": "^6.0.3",
55
- "@tmagic/design": "1.7.12",
56
- "@tmagic/form-schema": "1.7.12",
57
- "@tmagic/utils": "1.7.12"
55
+ "@tmagic/design": "1.7.13-beta.0",
56
+ "@tmagic/form-schema": "1.7.13-beta.0",
57
+ "@tmagic/utils": "1.7.13-beta.0"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "typescript": {
@@ -150,7 +150,7 @@ const closeHandler = () => {
150
150
 
151
151
  const save = async () => {
152
152
  try {
153
- const changeRecords = form.value?.changeRecords;
153
+ const changeRecords = [...(form.value?.changeRecords || [])];
154
154
  const values = await form.value?.submitForm();
155
155
  emit('submit', values, { changeRecords });
156
156
  } catch (e) {