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

238
Views
¿Es posible usar llaves en el segmento de estilo vue js?

Me preguntaba si es posible usar llaves para un valor en el segmento de estilo en vue.js.

Por ejemplo

 .container { background: url({{ image-url }}; color: {{ color-1 }} }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Hay una función experimental para vincular las variables CSS proporcionadas desde el script. Prueba esto:

 <template> <div class="text">Lorem ipsum</div> </template> <script> import {ref} from 'vue' export default { setup() { const color = ref('red'); const image = ref('url(https://picsum.photos/200/300)'); return {color} } }; </script> <style vars="{ color, image }"> .text { color: var(--color); background-image: var(--image); } </style>

O pruebe la nueva inyección v-bind()

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!