@hostlink/nuxt-light 1.20.3 → 1.20.6

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.20.3",
4
+ "version": "1.20.6",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -299,7 +299,8 @@ const module = defineNuxtModule({
299
299
  { name: "notify", from },
300
300
  { name: "defineLightModel", from },
301
301
  { name: "LightModelField", from, type: true },
302
- { name: "LightModel", from, type: true }
302
+ { name: "LightModel", from, type: true },
303
+ { name: "collect", from: index }
303
304
  ]);
304
305
  const files = await resolveFiles(process.cwd() + "/models", ["*"]);
305
306
  nuxt.options.runtimeConfig.public.light = {
@@ -60,10 +60,16 @@ const localValue = computed({
60
60
 
61
61
  return modelValue.value
62
62
  },
63
- set: (value: string) => {
63
+ set: (value: string | Object) => {
64
64
 
65
65
 
66
66
  if (props.range) {
67
+
68
+ if (typeof value == "object") {
69
+ modelValue.value = value;
70
+ return;
71
+ }
72
+
67
73
  //try to split
68
74
  const parts = value.split(" - ");
69
75
  if (parts.length == 2) {