@tmagic/editor 1.7.14-beta.0 → 1.7.14-beta.1

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.
@@ -58,7 +58,8 @@ var Index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
58
58
  const collapseValue = shallowRef(Array(list.length).fill(1).map((x, i) => `${i}`));
59
59
  const change = (v, eventData) => {
60
60
  eventData.changeRecords?.forEach((record) => {
61
- record.propPath = `${props.name}.${record.propPath}`;
61
+ if (props.prop) record.propPath = `${props.prop}.${record.propPath}`;
62
+ else if (props.name) record.propPath = `${props.name}.${record.propPath}`;
62
63
  });
63
64
  emit("change", v, eventData);
64
65
  };
@@ -18627,7 +18627,8 @@
18627
18627
  const collapseValue = (0, vue.shallowRef)(Array(list.length).fill(1).map((x, i) => `${i}`));
18628
18628
  const change = (v, eventData) => {
18629
18629
  eventData.changeRecords?.forEach((record) => {
18630
- record.propPath = `${props.name}.${record.propPath}`;
18630
+ if (props.prop) record.propPath = `${props.prop}.${record.propPath}`;
18631
+ else if (props.name) record.propPath = `${props.name}.${record.propPath}`;
18631
18632
  });
18632
18633
  emit("change", v, eventData);
18633
18634
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.14-beta.0",
2
+ "version": "1.7.14-beta.1",
3
3
  "name": "@tmagic/editor",
4
4
  "type": "module",
5
5
  "sideEffects": [
@@ -58,11 +58,11 @@
58
58
  "moveable": "^0.53.0",
59
59
  "serialize-javascript": "^7.0.0",
60
60
  "sortablejs": "^1.15.6",
61
- "@tmagic/design": "1.7.14-beta.0",
62
- "@tmagic/form": "1.7.14-beta.0",
63
- "@tmagic/table": "1.7.14-beta.0",
64
- "@tmagic/stage": "1.7.14-beta.0",
65
- "@tmagic/utils": "1.7.14-beta.0"
61
+ "@tmagic/design": "1.7.14-beta.1",
62
+ "@tmagic/form": "1.7.14-beta.1",
63
+ "@tmagic/table": "1.7.14-beta.1",
64
+ "@tmagic/stage": "1.7.14-beta.1",
65
+ "@tmagic/utils": "1.7.14-beta.1"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/events": "^3.0.3",
@@ -76,7 +76,7 @@
76
76
  "type-fest": "^5.2.0",
77
77
  "typescript": "^6.0.3",
78
78
  "vue": "^3.5.33",
79
- "@tmagic/core": "1.7.14-beta.0"
79
+ "@tmagic/core": "1.7.14-beta.1"
80
80
  },
81
81
  "peerDependenciesMeta": {
82
82
  "typescript": {
@@ -74,7 +74,11 @@ const collapseValue = shallowRef(
74
74
 
75
75
  const change = (v: any, eventData: ContainerChangeEventData) => {
76
76
  eventData.changeRecords?.forEach((record) => {
77
- record.propPath = `${props.name}.${record.propPath}`;
77
+ if (props.prop) {
78
+ record.propPath = `${props.prop}.${record.propPath}`;
79
+ } else if (props.name) {
80
+ record.propPath = `${props.name}.${record.propPath}`;
81
+ }
78
82
  });
79
83
  emit('change', v, eventData);
80
84
  };