I want to create a background color of body element that will dynamically change based on this.linearGradient. As you might see it should change a part of linear-gradient instead of replacing the entire linear-gradient. No inline-styling allows.
computed: {
backgroundStyle () {
return {
'--linearGradient': this.linearGradient
}
}
},
<style>
background: linear-gradient(145.74deg, #9BDBFF -33.02%, #B4DEDA 52.01%, #FFD66B var(--linearGradient)7.04%);
</style>
<body :style="backgroundStyle">
<div id="app"></div>
</body>