File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export default defineComponent({
21
21
) ;
22
22
const options = computed ( ( ) => {
23
23
return props . options . map ( option => {
24
- if ( typeof option === 'string' ) {
24
+ if ( typeof option === 'string' || typeof option === 'number' ) {
25
25
return {
26
26
label : option ,
27
27
value : option ,
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ export const abstractCheckboxGroupProps = () => {
16
16
name : String ,
17
17
prefixCls : String ,
18
18
options : {
19
- type : Array as PropType < Array < CheckboxOptionType | string > > ,
20
- default : ( ) => [ ] as Array < CheckboxOptionType | string > ,
19
+ type : Array as PropType < Array < CheckboxOptionType | string | number > > ,
20
+ default : ( ) => [ ] as Array < CheckboxOptionType | string | number > ,
21
21
} ,
22
22
disabled : Boolean ,
23
23
id : String ,
You can’t perform that action at this time.
0 commit comments