Skip to content

Instantly share code, notes, and snippets.

@clint74
Last active December 12, 2018 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clint74/a7600a9770f11f5573d2cccb136bfca5 to your computer and use it in GitHub Desktop.
Save clint74/a7600a9770f11f5573d2cccb136bfca5 to your computer and use it in GitHub Desktop.
<template>
<q-page>
<q-input
float-label="CNPJ/CPF BR"
v-mask="['###.###.###-##', '##.###.###/####-##']"
placeholder="only numbers"
v-model="form.cpfCnpj"
</q-input>
</q-page>
</template>
export default {
data () {
// vue the mask with quasar
// based on sample provided by https://github.com/rogeriomq on telegram
// https://github.com/vuejs-tips/vue-the-mask
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment