iglooform 2.5.61 → 2.5.62

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.
@@ -179,7 +179,7 @@ var Pages = function Pages(_ref) {
179
179
  }
180
180
 
181
181
  _context2.next = 4;
182
- return handlePrevious(current);
182
+ return handlePrevious(current, form);
183
183
 
184
184
  case 4:
185
185
  setCurrent(current - 1);
package/es/types.d.ts CHANGED
@@ -88,7 +88,7 @@ export interface FormItemExtraConfig extends FormItemProps {
88
88
  showOptional?: boolean;
89
89
  previewFormater?(value: any, form?: FormInstance): any;
90
90
  handleNext?(values: any): any;
91
- handlePrevious?(currentIndex: number): any;
91
+ handlePrevious?(currentIndex: number, form?: FormInstance): any;
92
92
  render?(preview: boolean, form?: FormInstance, value?: any, onChange?: (params: any) => any, setShowStepButton?: IglooComponentProps['setShowStepButton']): any;
93
93
  locales?: {
94
94
  [key: string]: string;
@@ -202,7 +202,7 @@ var Pages = function Pages(_ref) {
202
202
  }
203
203
 
204
204
  _context2.next = 4;
205
- return handlePrevious(current);
205
+ return handlePrevious(current, form);
206
206
 
207
207
  case 4:
208
208
  setCurrent(current - 1);
package/lib/types.d.ts CHANGED
@@ -88,7 +88,7 @@ export interface FormItemExtraConfig extends FormItemProps {
88
88
  showOptional?: boolean;
89
89
  previewFormater?(value: any, form?: FormInstance): any;
90
90
  handleNext?(values: any): any;
91
- handlePrevious?(currentIndex: number): any;
91
+ handlePrevious?(currentIndex: number, form?: FormInstance): any;
92
92
  render?(preview: boolean, form?: FormInstance, value?: any, onChange?: (params: any) => any, setShowStepButton?: IglooComponentProps['setShowStepButton']): any;
93
93
  locales?: {
94
94
  [key: string]: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iglooform",
3
- "version": "2.5.61",
3
+ "version": "2.5.62",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "build-dev": "dumi build",