This commit is contained in:
Zyronon
2025-12-10 02:10:09 +08:00
parent 76cb2d9a25
commit bb3c7affed
5 changed files with 22 additions and 8 deletions

View File

@@ -10,10 +10,12 @@ interface IProps {
showCheckbox?: boolean
checked?: boolean
showProgress?: boolean
isUser?: boolean
}
const props = withDefaults(defineProps<IProps>(), {
showProgress: true
showProgress: true,
isUser: false
})
defineEmits<{
@@ -49,6 +51,7 @@ const studyProgress = $computed(() => {
class="absolute left-3 bottom-3 z-2"/>
<div class="custom z-1" v-if="item.custom">自定义</div>
<div class="custom bg-red! color-white z-1" v-else-if="item.update">更新中</div>
<div class="sync bg-red! color-white z-1" v-if="!item.sync && isUser && !showCheckbox">未同步</div>
</div>
<div class="text-base mt-1" v-if="item?.cover">{{ item?.name }}</div>
</div>
@@ -69,4 +72,12 @@ const studyProgress = $computed(() => {
font-size: 11px;
transform: rotate(45deg);
}
.sync {
@extend .custom;
bottom: 4px;
left: -22px;
top: unset;
right: unset;
}
</style>