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

154
Views
¿Puedo tener el nombre de clase de un divIcon de folleto dentro de la sección <style scoped> de un componente vue?

Tengo un proyecto de muestra de Vue 2 en https://github.com/ericg-vue-questions/leaflet-test

Al declarar el divIcon , tengo:

 const cloudIcon = L.divIcon({ html: thecloud, className: 'my-custom-icons', iconSize: [size, size], iconAnchor: [size/2, size/2] })

y, para que el folleto vea el estilo my-custom-icons , escribí:

 <style scoped> #mapContainer { width: 500px; height: 500px; } </style> <style> .my-custom-icons { background-color: red; } </style>

Me gustaría que la sección de estilo se viera así:

 <style scoped> #mapContainer { width: 500px; height: 500px; } .my-custom-icons { background-color: red; } </style>

Pero cuando coloco my-custom-icons dentro de la sección del ámbito de los componentes, el divIcon no puede encontrarlo.

¿Puedo organizar mi sección de estilo así? ¿Si es así, cómo?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Está buscando DeepSelectors .

 #mapContainer >>> .my-custom-icons { background-color: red; }
about 4 years ago · Juan Pablo Isaza 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!