@fewangsit/wangsvue-fats 1.0.0-alpha.113 → 1.0.0-alpha.114
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/components/filtercontainer/FilterContainer.vue.d.ts +7 -1
- package/package.json +1 -1
- package/stats.html +1 -1
- package/wangsvue-fats.js +162 -159
- package/wangsvue-fats.system.js +27 -27
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AxiosResponse } from 'axios';
|
|
1
2
|
import { DefineComponent, Slot } from 'vue';
|
|
2
3
|
|
|
3
4
|
import {
|
|
@@ -36,9 +37,14 @@ export interface MultiSelectFilterField extends MultiSelectProps {
|
|
|
36
37
|
field: string;
|
|
37
38
|
optionField?: string; // @example - actionOptions
|
|
38
39
|
params?: QueryParams; // Additional QueryParams for the fetchOptionFn
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @param args - The query parameters to be passed to the fetchOptionFn.
|
|
43
|
+
*/
|
|
39
44
|
fetchOptionFn?:
|
|
40
45
|
| ((args?: any) => Option[] | undefined) // Sync function to fetch options
|
|
41
|
-
| ((args?: any) => Promise<Option[] | undefined>)
|
|
46
|
+
| ((args?: any) => Promise<Option[] | undefined>) // Async function
|
|
47
|
+
| ((args?: any) => Promise<AxiosResponse<FetchOptionResponse<any>>>); // The service method handle fetching options
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
export interface DropdownFilterField extends DropdownProps {
|