thetutlage/vue-clip

Method to reset inner reference of files

hpaul opened this issue · 1 comments

hpaul commented

Hello,

I suggest a new method which could be called to reset the array of fields from vue-clip data.
But this should not trigger onRemovedFile event, because you just want to remove files which template render.

Something like:

resetFiles() {
    this.files = [];
}

So you can call

this.$refs.uploader.resetFiles()

It's small, but very useful sometimes.

yes, very required functionality...