@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.
|
|
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.
|
|
40
|
-
"@tmagic/utils": "1.2.
|
|
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"
|
package/src/fields/Select.vue
CHANGED
|
@@ -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
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;
|