@tmagic/form 1.2.1 → 1.2.3

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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.1",
2
+ "version": "1.2.3",
3
3
  "name": "@tmagic/form",
4
4
  "type": "module",
5
5
  "sideEffects": [
@@ -36,8 +36,8 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@element-plus/icons-vue": "^2.0.9",
39
- "@tmagic/design": "1.2.1",
40
- "@tmagic/utils": "1.2.1",
39
+ "@tmagic/design": "1.2.3",
40
+ "@tmagic/utils": "1.2.3",
41
41
  "lodash-es": "^4.17.21",
42
42
  "sortablejs": "^1.14.0",
43
43
  "vue": "^3.2.37"
@@ -152,6 +152,7 @@ const getOptions = async () => {
152
152
  formValue: mForm?.values,
153
153
  formValues: mForm?.values,
154
154
  config: props.config,
155
+ postOptions,
155
156
  });
156
157
  }
157
158
 
@@ -277,6 +278,7 @@ const getInitOption = async () => {
277
278
  formValue: mForm?.values,
278
279
  formValues: mForm?.values,
279
280
  config: props.config,
281
+ postOptions,
280
282
  });
281
283
  }
282
284
 
package/src/schema.ts CHANGED
@@ -253,6 +253,7 @@ type RemoteSelectOptionRequestFunction = (
253
253
  formValue: any;
254
254
  formValues: any;
255
255
  config: any;
256
+ postOptions: Record<string, any>;
256
257
  },
257
258
  ) => any;
258
259
 
package/types/schema.d.ts CHANGED
@@ -191,6 +191,7 @@ declare type RemoteSelectOptionRequestFunction = (mForm: FormState | undefined,
191
191
  formValue: any;
192
192
  formValues: any;
193
193
  config: any;
194
+ postOptions: Record<string, any>;
194
195
  }) => any;
195
196
  declare type RemoteSelectOptionItemFunction = (optionsData: Record<string, any>) => SelectOption[] | SelectGroupOption[];
196
197
  declare type SelectOptionValueFunction = (item: Record<string, any>) => any;