@easy-editor/core 0.0.7 → 0.0.9

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.
@@ -82,6 +82,10 @@ export interface FieldConfig {
82
82
  * the name of this setting field, the name can refer to the props of the component, such as `title` or `obj.a` ...
83
83
  */
84
84
  name?: PropKey;
85
+ /**
86
+ * the field key, for group items
87
+ */
88
+ key?: string;
85
89
  /**
86
90
  * the field title, for configure tooltip
87
91
  */
@@ -115,7 +119,7 @@ export interface FieldExtraProps {
115
119
  /**
116
120
  * set value for field
117
121
  */
118
- setValue?: (target: SettingField, value: any) => void;
122
+ setValue?: (target: SettingField, value: any, oldValue?: any) => void;
119
123
  /**
120
124
  * the field conditional show, is not set always true
121
125
  */
@@ -9802,7 +9802,7 @@ class SettingPropEntry {
9802
9802
  } = this.extraProps;
9803
9803
  if (setValue && !extraOptions?.disableMutator) {
9804
9804
  try {
9805
- setValue(this, val);
9805
+ setValue(this, val, oldValue);
9806
9806
  } catch (e) {
9807
9807
  console.warn(e);
9808
9808
  }