bfg-common 1.5.397 → 1.5.399

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,7 +1,7 @@
1
1
  <template>
2
2
  <div class="select-option">
3
3
  <div
4
- v-for="radio in options"
4
+ v-for="radio in optionsLocal"
5
5
  :key="radio.id"
6
6
  v-permission="radio.permission"
7
7
  :class="['select-option__inner radio', radio.disabled && 'disabled']"
@@ -75,14 +75,22 @@ 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 optionsLocal = ref<UI_I_RadioOption[]>([])
79
+ watchEffect(() => {
80
+ optionsLocal.value = props.options.map((option: any) => ({
81
+ ...option,
82
+ id: option.id || `radio-btn-${useUniqueId()}`,
83
+ }))
84
+ })
85
+
86
+ // const options = computed<UI_I_RadioOption[]>(() =>
87
+ // props.options.map((option) => {
88
+ // return {
89
+ // ...option,
90
+ // id: option.id || `radio-btn-${useUniqueId()}`,
91
+ // }
92
+ // })
93
+ // )
86
94
 
87
95
  const selectedType = computed<string | number>({
88
96
  get() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.397",
4
+ "version": "1.5.399",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",