nuxt-ui-tools 1.16.3 → 1.16.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.
package/dist/module.json
CHANGED
|
@@ -230,8 +230,9 @@ export function useFieldOptions(params) {
|
|
|
230
230
|
watch(
|
|
231
231
|
sourceItems,
|
|
232
232
|
(nextOptions, previousOptions) => {
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
const config = optionConfig.value;
|
|
234
|
+
if (config && "onOptionsChange" in config && config.onOptionsChange) {
|
|
235
|
+
config.onOptionsChange(nextOptions, {
|
|
235
236
|
...params.callbackParams.value,
|
|
236
237
|
previousOptions: previousOptions ?? []
|
|
237
238
|
});
|
|
@@ -455,7 +456,7 @@ function isAsyncResource(value) {
|
|
|
455
456
|
return "pending" in value && "fetching" in value && "refresh" in value && isFunction(value.refresh);
|
|
456
457
|
}
|
|
457
458
|
function isFormOptionConfig(value) {
|
|
458
|
-
return isRecord(value) && "source" in value;
|
|
459
|
+
return isRecord(value) && ("source" in value || value.mode === "remote");
|
|
459
460
|
}
|
|
460
461
|
function hasCreateHandler(value) {
|
|
461
462
|
if (!isRecord(value)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-ui-tools",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.4",
|
|
4
4
|
"description": "Nuxt module and runtime toolkit for UI-heavy Nuxt applications",
|
|
5
5
|
"homepage": "https://github.com/ChronicStone/nuxt-ui-tools#readme",
|
|
6
6
|
"bugs": "https://github.com/ChronicStone/nuxt-ui-tools/issues",
|