Skip to content

Commit d2b984a

Browse files
authored
Merge pull request #278 from gitamgadtaula/main
Added HTML attribute: accept in FwbFileInput
2 parents 8dec713 + 911f1b9 commit d2b984a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/FwbFileInput/FwbFileInput.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:class="fileInpClasses"
88
:multiple="multiple"
99
type="file"
10+
:accept="accept"
1011
@change="handleChange"
1112
>
1213
</label>
@@ -48,6 +49,7 @@
4849
<input
4950
:multiple="multiple"
5051
type="file"
52+
:accept="accept"
5153
class="hidden"
5254
>
5355
</label>
@@ -65,7 +67,8 @@ interface FileInputProps {
6567
label?: string
6668
modelValue?: File | File[] | null
6769
multiple?: boolean
68-
size?: string
70+
size?: string,
71+
accept?:string,
6972
}
7073
7174
const props = withDefaults(defineProps<FileInputProps>(), {
@@ -74,6 +77,7 @@ const props = withDefaults(defineProps<FileInputProps>(), {
7477
modelValue: null,
7578
multiple: false,
7679
size: 'sm',
80+
accept: ''
7781
})
7882
7983
const dropZoneText = computed(() => {

0 commit comments

Comments
 (0)