首页 card 插槽去除白色背景色

This commit is contained in:
zhoumingfa 2024-08-04 11:47:40 +08:00
parent 15cc4a9003
commit 949f7a209c

View File

@ -9,7 +9,7 @@
*
-->
<template>
<div>
<div class="card-container">
<a-card size="small">
<template #title>
<div class="title">
@ -47,4 +47,22 @@
return token.colorPrimary;
});
</script>
<style lang="less" scoped></style>
<style lang="less" scoped>
.card-container {
height: 100%;
.title {
display: flex;
align-items: center;
&::before {
content: '';
position: absolute;
top: 3px;
left: 0;
width: 3px;
height: 30px;
background-color: v-bind('token.colorPrimary');
}
}
}
</style>