fritx / vue-at

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

the letter before ‘@’ must be space? #7

Closed KuiShang closed 7 years ago

KuiShang commented 7 years ago

the letter before ‘@’ must be space? it can't work like this 'ex: abc@'. must 'abc @'

fritx commented 7 years ago

@KuiShang hi, sorry for the missing docs. You can try this one:

<at :avoid-email="false"></at>

https://github.com/fritx/vue-at/blob/3cc035f7f117f223d1afe11e2ceb2f90ce72049d/src/At.vue#L51 According to the source code, there are some props defined. The prop avoidEmail is true by default.

https://github.com/fritx/vue-at/blob/3cc035f7f117f223d1afe11e2ceb2f90ce72049d/src/At.vue#L209 If it is on, it will not allow /^[a-z0-9]$/i as the letter before @.

fritx commented 6 years ago

Docs of props avoidEmail is here: https://fritx.github.io/vue-at/#/en/propsmore