Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

552
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda