Browse Source

Merge pull request #496 from hymzcn/dev-1.1.0

the email input
pull/2/head
hymzcn 6 years ago committed by GitHub
parent
commit
6e00435ffa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      escheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/email.vue

8
escheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/email.vue

@ -32,9 +32,12 @@
v-model="email" v-model="email"
:disabled="disabled" :disabled="disabled"
:placeholder="$t('Please enter email')" :placeholder="$t('Please enter email')"
@blur="_emailEnter"
@keydown.tab="_emailTab" @keydown.tab="_emailTab"
@keyup.delete="_emailDelete" @keyup.delete="_emailDelete"
@keyup.enter="_emailEnter" @keyup.enter="_emailEnter"
@keyup.space="_emailEnter"
@keyup.186="_emailEnter"
@keyup.up="_emailKeyup('up')" @keyup.up="_emailKeyup('up')"
@keyup.down="_emailKeyup('down')"> @keyup.down="_emailKeyup('down')">
</span> </span>
@ -78,6 +81,11 @@
* Manually add a mailbox * Manually add a mailbox
*/ */
_manualEmail () { _manualEmail () {
if (this.email === '') {
return
}
this.email = _.trim(this.email).replace(/(;$)|(;$)/g, "")
let email = this.email let email = this.email
let is = (n) => { let is = (n) => {

Loading…
Cancel
Save