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

feat(mask): port to v3 from v1 #19207

Draft
wants to merge 11 commits into
base: dev
Choose a base branch
from
Draft

feat(mask): port to v3 from v1 #19207

wants to merge 11 commits into from

Conversation

yuwu9145
Copy link
Member

Move v1 mask logic to v3 by using composition api

Markup:

<template>
  <h1>v-model: {{ value }}</h1>
  <v-card>
    <v-card-text>
      <v-text-field v-model="mask" label="Mask"></v-text-field>
    </v-card-text>
    <v-card-text>
      <v-text-field v-model="value" :mask="mask" label="Value"></v-text-field>
    </v-card-text>
  </v-card>
</template>

<script setup>
  import { ref } from 'vue'

  const mask = ref('(###) ### - ####')
  const value = ref('4444444444444444')
</script>

<style>
</style>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VTextField VTextField T: feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants