export default {
name: 'FileProvider',
props: {
multiple: Boolean,
disabled: Boolean,
},
data: () => ({
files: [],
hovering: false,
}),
reactiveProvide: {
name: 'dropzone __api',
include: [
'disabled',
'files',
'numFiles',
'open',
'reset',
'hovering',
],
},
methods: {
…
},
computed: {
…
},
// …
}
adds a „provide“
and
computed property
by the same name
which we use to pass
all properties to
the scoped slot
https://github.com/linusborg/vue-reactive-provide