Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

249
Views
Migración de Vue 3, ¿cómo extender un componente?

tengo un componente

 const DialogMain = Vue.extend(DialogComponent); export const alertDialog = (text: string) => { const dialog = new DialogMain({ propsData: { type: 'alert' }, }); return new Promise(resolve => { // resolve reject handle here } });

Entonces, cuando migro la aplicación a Vue3, aparece 'extend' does not exist on type 'typeof import('....') . Lo sé, dado que el Vue global ya no es un constructor nuevo, Vue.extend ya no tiene sentido en términos de extensión del constructor. Pero no estoy seguro de cómo escribirlo con defineComponent. ¿Debería ser como

 const dialogMain = defineComponent({extends: DialogComponent})

¿Será igual que Vue.extend?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

¿Ha intentado usar las opciones de componentes tal como están?

 const DialogMain = defineComponent(DialogComponent)
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!