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

292
Vistas
How can apply condition on v-tooltip in router link vue

If am trying to show the truncate name whose character is less then 15 but in my case it still showing the name of the form who character is less then 15

<router-link
   v-for="form in forms"
    v-tooltip="{
      content: form.name,
      show: (form.name && form.name.length > 15 && hoveredIndex === form.id),
      trigger: 'hover',
      placement: 'left',
    }"
    @mouseover="showToolTip(form.name, 'formName', form.id)"
    @mouseleave="hoveredIndex = null"
   
      {{ truncate(form.name, 20) }}
</router-link>

methods: {
  showToolTip(name, property, index = null) {
    if (name.length >= 15) {
      this[property] = name;
      this.hoveredIndex = index;
    } else {
      this[property] = null;
      this.hoveredIndex = index;
    }
  },
}
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