使用方式:
<script>
const color = ref();
</script>
<style>
color: v-bind(color);
</style>

使用方式:
<script>
const color = ref();
</script>
<style>
color: v-bind(color);
</style>
本文标题:vue3.0 CSS中混入JS变量(vue3 css v-bin
本文链接:https://www.haomeiwen.com/subject/ixzofdtx.html
网友评论