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

allow multiple at chars at a time

Open panzhangwang opened this issue 7 years ago • 3 comments

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

panzhangwang avatar May 26 '17 01:05 panzhangwang

@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.

fritx avatar May 26 '17 05:05 fritx

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

4ver avatar Jul 31 '17 17:07 4ver

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

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

fritx avatar Sep 10 '17 09:09 fritx