@base-stone/hooks 1.1.3 → 1.1.4
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.
|
@@ -128,6 +128,7 @@ declare type SelectOption<T extends string | number = string | number> = {
|
|
|
128
128
|
label: string;
|
|
129
129
|
value: T;
|
|
130
130
|
data?: Record<string, unknown>;
|
|
131
|
+
[key: string]: any;
|
|
131
132
|
};
|
|
132
133
|
|
|
133
134
|
declare type SelectOptionsResult<K extends string, T extends string | number> = Readonly<{
|
|
@@ -221,9 +221,9 @@ function ue({ queryFn: s, params: o, dataKey: t, fieldNames: e }) {
|
|
|
221
221
|
label: h[E],
|
|
222
222
|
value: h[z]
|
|
223
223
|
})), $ = ae(v);
|
|
224
|
-
r((h) => ({ ...h,
|
|
224
|
+
r((h) => ({ ...h, list: v, mapData: $ }));
|
|
225
225
|
} else
|
|
226
|
-
r((E) => ({ ...E,
|
|
226
|
+
r((E) => ({ ...E, list: g }));
|
|
227
227
|
u(!1);
|
|
228
228
|
}, a = O(l), i = y(() => {
|
|
229
229
|
l();
|