vue-clip icon indicating copy to clipboard operation
vue-clip copied to clipboard

added usage of removeFile to example

Open yfxie opened this issue 8 years ago • 1 comments

related issue: https://github.com/thetutlage/vue-clip/issues/28

yfxie avatar Jun 06 '17 08:06 yfxie

Couple of recommendations on this:

  1. Squash the commits (git rebase) - it's cleaner
  2. Something like this to also remove the file from vue-clip's files prop:
    removeFile(file) {
      this.$refs.vc.removeFile(file);
      var index = this.$refs.vc.files.indexOf(file);
      this.$refs.vc.files.splice(index, 1);
    }

greggilbert avatar Jun 10 '17 04:06 greggilbert