预警通知 滚动条样式

pull/4/head
qiuhongwu 8 months ago
parent 664aae0ef3
commit f60c642939

@ -10,11 +10,13 @@
<CloseBold /> <CloseBold />
</el-icon></span> </el-icon></span>
</div> </div>
<div class="warncenter" v-for="item in 5" :key="item"> <div class="warncenter">
<span><img :src="warnimg" alt="" /></span> <div class="warntext" v-for="item in 5" :key="item">
<div class="warntext"> <span><img :src="warnimg" alt="" /></span>
<span>铸造工艺设计负责人: <span class="warnname">薛小宝</span> 请注意!</span> <div class="warnnr">
<span class="warnbh">项目编号{{ item}}的图纸设计即将超时请及时完成</span> <span>铸造工艺设计负责人: <span class="warnname">薛小宝</span> 请注意!</span>
<span class="warnbh">项目编号{{ item}}的图纸设计即将超时请及时完成</span>
</div>
</div> </div>
</div> </div>
@ -421,7 +423,7 @@ const closeWran = () => {
showWarning.value = false showWarning.value = false
} }
onMounted(() => { onMounted(() => {
// showWarning.value = true showWarning.value = true
// openwarn() // openwarn()
}) })
</script> </script>
@ -451,19 +453,23 @@ onMounted(() => {
height: 250px; height: 250px;
background-color: #fff; background-color: #fff;
padding: 10px; padding: 10px;
display: flex; overflow-y: auto;
justify-content: space-between; max-height: 250px;
.warntext { .warntext {
margin-left: 10px;
display: flex; display: flex;
flex-direction: column; justify-content: space-between;
color: #54595e; color: #54595e;
.warnname { .warnnr {
color: #409eff; margin-left: 10px;
} display: flex;
.warnbh { flex-direction: column;
margin-top: 5px; .warnname {
color: rgba(84, 89, 94, 0.6); color: #409eff;
}
.warnbh {
margin-top: 5px;
color: rgba(84, 89, 94, 0.6);
}
} }
} }
} }
@ -478,4 +484,28 @@ onMounted(() => {
} }
} }
} }
//
.warncenter::-webkit-scrollbar {
width: 10px; /* 水平滚动条宽度 */
height: 10px; /* 垂直滚动条高度 */
}
//
.warncenter::-webkit-scrollbar-button {
display: none;
}
//
.warncenter::-webkit-scrollbar-track {
background-color: #f1f1f1;
border-radius: 6px;
}
//
.warncenter::-webkit-scrollbar-thumb {
background-color: #888;
border-radius: 6px;
}
</style> </style>

Loading…
Cancel
Save