fritx / vue-at

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

allow multiple at chars at a time #6

Open panzhangwang opened 7 years ago

panzhangwang commented 7 years ago

Quick question. Does it allow multiple chars at a time like at.js? Say, whatever '@' or ':' is there, pop up a suggestion box?

fritx commented 7 years ago

@panzhangwang oh seems it is not supported yet. Will try to fix, otherwise, PR is welcome.

https://github.com/fritx/vue-at/blob/3cc035f7f117f223d1afe11e2ceb2f90ce72049d/src/At.vue#L204-L206 Currently the :at prop accepts only a string, not a pattern or an array.

4ver commented 7 years ago

See https://github.com/fritx/vue-at/pull/17

fritx commented 6 years ago

Thanks to @4ver, now we can have multiple at-chars at the same time. This is fixed.

<at :ats="['@', '@', '~', ':', 'xx']"></at>