Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

557
Vistas
how fixed column width of vuetify data table

I have a vuetify data table, I've set width for every column and I want to fixed column's width of my table but it has grown up because of their content and it doesn't matter what is the width of them. how can fixed column's width?

  <template>
    <v-data-table
        v-if="physicianAccountsLocalData"
        :headers="headers"
        :items="physicianAccountsLocalData"
        hide-default-footer
        class="data-table"
        :items-per-page="-1"
      >
        <template #[`item.isActive`]="props">
          <BaseSwitch
            v-model="props.item.isActive"
            class="switch-siam-table"
            @change="changeModel($event, props)"
          />
        </template>
        <template #[`item.location`]="props">
          <span
            class="location"
            :class="{'text-disable-state': !props.item.isActive}"
          >
            {{ props.item.location }}
          </span>
        </template>
        <template #[`item.name`]="props">
          <span
            class="name"
            :class="{'text-disable-state': !props.item.isActive}"
          >
            {{ props.item.name }}
          </span>
        </template>
      </v-data-table>
  </template>

  <script>
     data() {
    return {
         headers: [
          { text: 'فعال', value: 'isActive', sortable: false, width: '110px', align: 'right' },
          { text: 'نوع', value: 'location', sortable: false, width: '13%', align: 'start' },
          { text: 'نام', value: 'name', sortable: false, width: '200px' }
          ],
         }
      }
  </script>
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda