bfg-common 1.3.5 → 1.3.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.
@@ -18,14 +18,14 @@ import type { UI_I_ViewSettingsFields } from '~/components/common/tools/viewSett
18
18
 
19
19
  const props = withDefaults(
20
20
  defineProps<{
21
- modelValue?: number | string
21
+ modelValue: number | string
22
22
  tabs?: UI_I_CollapseNavItem[]
23
23
  viewSettingsFields?: UI_I_ViewSettingsFields[]
24
- activeDefaultTab?: number | string
24
+ // activeDefaultTab?: number | string
25
25
  }>(),
26
26
  {
27
27
  viewSettingsFields: () => [],
28
- activeDefaultTab: '',
28
+ // activeDefaultTab: '',
29
29
  tabs: undefined,
30
30
  }
31
31
  )
@@ -33,15 +33,17 @@ const emits = defineEmits<{
33
33
  (event: 'update:model-value', value: number | string): void
34
34
  }>()
35
35
 
36
- const activeDefaultTabLocal = ref<number | string>(props.activeDefaultTab)
36
+ // const activeDefaultTabLocal = ref<number | string>(props.activeDefaultTab)
37
37
  const selectedTabViewSettings = computed<number | string>({
38
38
  get() {
39
- return activeDefaultTabLocal.value ?? props.modelValue
39
+ // return activeDefaultTabLocal.value ?? props.modelValue
40
+ return props.modelValue
40
41
  },
41
- set(newValue) {
42
- props.modelValue
43
- ? emits('update:model-value', newValue)
44
- : (activeDefaultTabLocal.value = newValue)
42
+ set(newValue: string | number) {
43
+ emits('update:model-value', newValue)
44
+ // props.modelValue
45
+ // ? emits('update:model-value', newValue)
46
+ // : (activeDefaultTabLocal.value = newValue)
45
47
  },
46
48
  })
47
49
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.5",
4
+ "version": "1.3.6",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",