File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/BFormCheckbox Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ interface BFormCheckboxProps {
60
60
| Record <string , unknown >
61
61
| number
62
62
value ?: Array <unknown > | Set <unknown > | boolean | string | Record <string , unknown > | number
63
- modelValue ?: Array <unknown > | Set <unknown > | boolean
63
+ modelValue ?: Array <unknown > | Set <unknown > | boolean | string | Record < string , unknown > | number
64
64
}
65
65
66
66
const props = withDefaults (defineProps <BFormCheckboxProps >(), {
@@ -93,14 +93,14 @@ const input = ref<HTMLElement>(null as unknown as HTMLElement)
93
93
const isFocused = ref <boolean >(false )
94
94
95
95
const localValue = computed ({
96
- get : () => {
96
+ get : (): unknown [] | Set < unknown > | boolean | undefined => {
97
97
if (props .uncheckedValue ) {
98
98
if (! Array .isArray (props .modelValue )) {
99
99
return props .modelValue === props .value
100
100
}
101
101
return props .modelValue .indexOf (props .value ) > - 1
102
102
}
103
- return props .modelValue
103
+ return props .modelValue as unknown [] | Set < unknown > | boolean | undefined
104
104
},
105
105
set : (newValue : any ) => {
106
106
let emitValue = newValue
You can’t perform that action at this time.
0 commit comments