邓洁 : 右侧鼠标经过效果

This commit is contained in:
dengj
2023-12-11 10:59:44 +08:00
parent 07704501be
commit 407898dcc4
6 changed files with 94 additions and 43 deletions

View File

@@ -9,6 +9,7 @@
<script setup>
import WindPressureItem from "./childComps/WindPressureItem.vue";
const props = defineProps({
list: Array
});
@@ -65,8 +66,8 @@ const wpList = ref([
},
]);
watch(() => props.list, (now, old) => {
console.log('风压',now,old)
wpList.value=now
console.log('风压', now, old)
wpList.value = now
}, {deep: true});
// setInterval(() => {
// wpList.forEach((item) => {
@@ -83,7 +84,8 @@ watch(() => props.list, (now, old) => {
top: 185px;
right: 68px;
background-image: url(../../../assets/images/windPressure/bg.png);
padding-top: 22px;
padding: 22px 17px 0 23px;
.name {
width: 64px;
height: 42px;
@@ -93,6 +95,7 @@ watch(() => props.list, (now, old) => {
color: #38cafb;
line-height: 42px;
margin-left: 62px;
margin-bottom: 38px;
}
}
</style>