bfg-common 1.4.215 → 1.4.216

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.
@@ -29,6 +29,8 @@
29
29
  {{ option.label }}
30
30
  </option>
31
31
  </select>
32
+
33
+ <slot v-if="$slots.options" name="options" :value="selectedValueLocal" />
32
34
  </div>
33
35
  </section>
34
36
  </template>
@@ -38,7 +40,6 @@ import type { UI_I_SelectInputItem } from '~/components/common/select/input/lib/
38
40
 
39
41
  const props = withDefaults(
40
42
  defineProps<{
41
- modelValue: number | string
42
43
  data: UI_I_SelectInputItem[]
43
44
  label?: string
44
45
  defaultStyle?: boolean
@@ -52,20 +53,9 @@ const props = withDefaults(
52
53
  testId: 'select-input',
53
54
  }
54
55
  )
55
- const emits = defineEmits<{
56
- (event: 'update:model-value', value: number | string): void
57
- }>()
56
+ const selectedValueLocal = defineModel<number | string>({ required: true })
58
57
 
59
58
  const selectOptions = computed<UI_I_SelectInputItem[]>(() => props.data)
60
-
61
- const selectedValueLocal = computed<number>({
62
- get() {
63
- return props.modelValue
64
- },
65
- set(newValue: number | string) {
66
- emits('update:model-value', newValue)
67
- },
68
- })
69
59
  </script>
70
60
 
71
61
  <style lang="scss" scoped>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.215",
4
+ "version": "1.4.216",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",