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({
2121 ) ;
2222 const options = computed ( ( ) => {
2323 return props . options . map ( option => {
24- if ( typeof option === 'string' ) {
24+ if ( typeof option === 'string' || typeof option === 'number' ) {
2525 return {
2626 label : option ,
2727 value : option ,
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ export const abstractCheckboxGroupProps = () => {
1616 name : String ,
1717 prefixCls : String ,
1818 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 > ,
2121 } ,
2222 disabled : Boolean ,
2323 id : String ,
You can’t perform that action at this time.
0 commit comments