vue-clip
vue-clip copied to clipboard
added usage of removeFile to example
related issue: https://github.com/thetutlage/vue-clip/issues/28
Couple of recommendations on this:
- Squash the commits (
git rebase) - it's cleaner - Something like this to also remove the file from vue-clip's
filesprop:
removeFile(file) {
this.$refs.vc.removeFile(file);
var index = this.$refs.vc.files.indexOf(file);
this.$refs.vc.files.splice(index, 1);
}