<template>
<div class="box">
</div>
<router-view/>
</template>
<script setup>
const boxWidth = '150px'
</script>
<style lang="scss">
.box{
height: 100px;
width: v-bind(boxWidth);
background-color: red;
}
</style>
vue3新特性css用变量
最新推荐文章于 2024-08-09 15:22:04 发布