fritx / vue-at

At.js for Vue.
https://fritx.github.io/vue-at/
MIT License
529 stars 114 forks source link

Add hook to selection #47

Open mankowitz opened 6 years ago

mankowitz commented 6 years ago

I added an overwritable function called processItem that allows the user to process the mention before inserting it in the element

fritx commented 6 years ago

@mankowitz good idea.

I guess a corresponding deleteMatch should be defined to use together with processItem??

  deleteMatch: {
    type: Function,
    default: (name, chunk, suffix) => {
      return chunk === name + suffix
    }
  },
mankowitz commented 5 years ago

@fritx - Can you merge the processItem into the next build?

fritx commented 5 years ago

@mankowitz sorry.. but have a look at my previous comments :D

The changes seem to be more than just one feature, I want things to be nailed in certain commits.

And also, I would switch to slot-scope in a separated commit and bump since it would no longer work with Vue 2.4.x

fritx commented 5 years ago

@mankowitz i'm sorry you have deleted the source of this PR and also there are some conflicts in it that I can not merge it right now.