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(VTextField): port to v3 #13996

Merged
merged 28 commits into from
Aug 27, 2021
Merged

feat(VTextField): port to v3 #13996

merged 28 commits into from
Aug 27, 2021

Conversation

KaelWD
Copy link
Member

@KaelWD KaelWD commented Jul 27, 2021

fixes #7872
fixes #12989

Markup:

<template>
  <v-app>
    <v-container>
      <input v-model="density" type="radio" name="density" value="default">
      <input v-model="density" type="radio" name="density" value="comfortable">
      <input v-model="density" type="radio" name="density" value="compact">

      <v-defaults-provider :defaults="{ global: { density }}">
        <template v-for="variant in variants">
          <v-text-field
            v-model="model"
            label="LTR"
            :variant="variant"
          />

          <div class="my-6" />

          <v-text-field
            v-model="model"
            reverse
            label="LTR Reversed"
            append-inner-icon="mdi-clock-alert"
            prepend-inner-icon="mdi-clock-alert"
            :variant="variant"
          />

          <div class="my-6" />

          <v-locale-provider rtl>
            <v-text-field
              v-model="model"
              label="RTL"
              append-inner-icon="mdi-clock-alert"
              prepend-inner-icon="mdi-clock-alert"
              :variant="variant"
            />

            <div class="my-6" />

            <v-text-field
              v-model="model"
              reverse
              label="RTL Reversed"
              append-inner-icon="mdi-clock-alert"
              prepend-inner-icon="mdi-clock-alert"
              :variant="variant"
            />

            <div class="my-12" />
          </v-locale-provider>
        </template>
      </v-defaults-provider>
    </v-container>
  </v-app>
</template>

<script>
  export default {
    data: () => ({
      model: '',
      density: 'default',
      variants: ['plain', 'underlined', 'filled', 'outlined', 'contained'],
    }),
  }
</script>
  • prefix/suffix
  • events
  • counter
  • clearable
  • placeholder
  • disabled
  • ref methods ($refs.textField.focus() etc.)
  • ARIA roles

@johnleider johnleider marked this pull request as ready for review August 26, 2021 15:57
@johnleider johnleider changed the title feat: update VTextField to v3 feat(VTextField): port to v3 Aug 27, 2021
@johnleider johnleider merged commit 008c9c4 into next Aug 27, 2021
@johnleider johnleider deleted the feat/v3-text-field branch August 27, 2021 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants