html
<div class="address" ref="aaa"></div>
js
this.$refs.aaa.$el.style.setProperty('--testColor', 'red');
css
<style lang="less" scoped>
.address {
color: var(--testColor);
}
</style>
html
<div class="address" ref="aaa"></div>
js
this.$refs.aaa.$el.style.setProperty('--testColor', 'red');
css
<style lang="less" scoped>
.address {
color: var(--testColor);
}
</style>