Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow multiple at chars at a time #6

Open
panzhangwang opened this issue May 26, 2017 · 3 comments
Open

allow multiple at chars at a time #6

panzhangwang opened this issue May 26, 2017 · 3 comments

Comments

@panzhangwang
Copy link

panzhangwang commented May 26, 2017

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

@fritx
Copy link
Owner

fritx commented May 26, 2017

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

vue-at/src/At.vue

Lines 204 to 206 in 3cc035f

const index = text.lastIndexOf(at)
if (index < 0) show = false
const prev = text[index - 1]

Currently the :at prop accepts only a string, not a pattern or an array.

@4ver
Copy link
Contributor

4ver commented Jul 31, 2017

See #17

@fritx
Copy link
Owner

fritx commented Sep 10, 2017

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

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

@fritx fritx added the fixed label Sep 10, 2017
@fritx fritx mentioned this issue Sep 16, 2017
33 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants