@easy-editor/core 0.0.8 → 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.
@@ -119,7 +119,7 @@ export interface FieldExtraProps {
119
119
  /**
120
120
  * set value for field
121
121
  */
122
- setValue?: (target: SettingField, value: any) => void;
122
+ setValue?: (target: SettingField, value: any, oldValue?: any) => void;
123
123
  /**
124
124
  * the field conditional show, is not set always true
125
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
  }