Skip to content

Commit

Permalink
feat(VFileInput): add string support for showSize prop
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Jan 13, 2024
1 parent 657d929 commit 706565f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vuetify/src/components/VFileInput/VFileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ export const makeVFileInputProps = propsFactory({
},
multiple: Boolean,
showSize: {
type: [Boolean, Number] as PropType<boolean | 1000 | 1024>,
type: [Boolean, Number, String] as PropType<boolean | 1000 | 1024>,
default: false,
validator: (v: boolean | number) => {
return (
typeof v === 'boolean' ||
[1000, 1024].includes(v)
[1000, 1024].includes(Number(v))
)
},
},
Expand Down

0 comments on commit 706565f

Please sign in to comment.