bfg-common 1.5.396 → 1.5.397

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,22 +1,22 @@
1
1
  <template>
2
2
  <div class="select-option">
3
3
  <div
4
- v-for="(radio, key) in options"
5
- :key="key"
4
+ v-for="radio in options"
5
+ :key="radio.id"
6
6
  v-permission="radio.permission"
7
7
  :class="['select-option__inner radio', radio.disabled && 'disabled']"
8
8
  >
9
9
  <div :class="['select-option__container', radio.value]">
10
10
  <div class="select-option__wrapper">
11
11
  <input
12
- :id="key"
12
+ :id="radio.id"
13
13
  v-model="selectedType"
14
14
  :data-id="radio.testId"
15
15
  :value="radio.value"
16
16
  :disabled="radio.disabled"
17
17
  type="radio"
18
18
  />
19
- <label :for="key">{{ radio.label }}</label>
19
+ <label :for="radio.id">{{ radio.label }}</label>
20
20
 
21
21
  <div
22
22
  v-if="'isTooltip' in radio"
@@ -75,14 +75,14 @@ const emits = defineEmits<{
75
75
  (event: 'update:model-value', value: string | number): void
76
76
  }>()
77
77
 
78
- // const options = computed<UI_I_RadioOption[]>(() =>
79
- // props.options.map((option) => {
80
- // return {
81
- // ...option,
82
- // id: option.id || `radio-btn-${useUniqueId()}`,
83
- // }
84
- // })
85
- // )
78
+ const options = computed<UI_I_RadioOption[]>(() =>
79
+ props.options.map((option) => {
80
+ return {
81
+ ...option,
82
+ id: option.id || `radio-btn-${useUniqueId()}`,
83
+ }
84
+ })
85
+ )
86
86
 
87
87
  const selectedType = computed<string | number>({
88
88
  get() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.396",
4
+ "version": "1.5.397",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",