Subscribe on changes!

vue setup ref 变量 无法作用于 style=scss v-bind()

avatar
Apr 26th 2023

Vue version

3.2.45

Link to minimal reproduction

https://play.vuejs.org/#eNpNUE1vgkAQ/SsTkkZMK2qbeKCIqT17aXrkgjDCJjC7YQe0Qf57Z9nG9LQ7H+/Ne28MPoyJhh6DOEgYW9PkjGlGyaDwCkWTW7vPgkIT54qwy4J0+/qWrN3Uba3/QaS0RacMg0XuDTQ5VYJlK6CMVGt0xzBCh5cX0HTSPTGWMMGl0y0sRMLi3ZHILctgvrWBvVtOqG/P2KXhZinzBzAMl7BPYcwIwEM6LFgg19shqpBPSP2xZ9Z0FECpqPpsFBJ/ydYhEvD9DuMkjDDfioa86XG+KCyH+YlYNDz7b42qqlmq7QZi2O0ympbOv3fsorD80yDYQhtx9efdFta7jx4JesVXVXIdC9nmaZbg6efGUHtR2ipWmmK5LwGrAX07L52XlUiLYVidFZXhnNUzLDpzW7iMplmYk5MG0y8VVaTZ

Steps to reproduce

What is expected?

element.style { background-image: url(../../static/home-bg.png); background-repeat: no-repeat; background-size: 100%; --45258083-pTop: 66rpx; }