@falcondev-oss/nuxt-layers-base 0.35.5 → 0.35.7

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.
@@ -1,6 +1,8 @@
1
1
  <script setup lang="ts" generic="T">
2
2
  const props = defineProps<{
3
3
  input: T
4
+ deep?: boolean
5
+ once?: boolean
4
6
  }>()
5
7
 
6
8
  const output = defineModel<T>('output', { required: true })
@@ -10,7 +12,11 @@ watch(
10
12
  () => {
11
13
  output.value = props.input
12
14
  },
13
- { immediate: true },
15
+ {
16
+ immediate: true,
17
+ deep: props.deep,
18
+ once: props.once,
19
+ },
14
20
  )
15
21
  </script>
16
22
 
@@ -19,5 +19,10 @@ export function useRouteParamString(paramName: string) {
19
19
  next()
20
20
  })
21
21
 
22
- return paramRef
22
+ return computed({
23
+ get: () => paramRef.value,
24
+ set: (value) => {
25
+ param.value = value
26
+ },
27
+ })
23
28
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@falcondev-oss/nuxt-layers-base",
3
3
  "type": "module",
4
- "version": "0.35.5",
4
+ "version": "0.35.7",
5
5
  "description": "Nuxt layer with lots of useful helpers and @nuxt/ui components",
6
6
  "license": "MIT",
7
7
  "repository": {