mail-suffix-tip
v1.0.3
Published
`npm install mail-suffix-tip`
Downloads
2
Readme
install
npm install mail-suffix-tip
usage
<template>
<div>
<input v-model="email" @input="inputListener" @blur="blur">
<mail-suffix-tip ref="tip" v-model="email"/>
</div>
</template>
<script>
import MailSuffixTip from 'mail-suffix-tip'
export default {
data () {
return {
email: ''
}
},
methods: {
inputListener(val) {
this.$refs.tip.show(this.email)
},
blur() {
this.$refs.tip.hide()
}
},
components: {
MailSuffixTip
}
}
</script>