fix: 修复任务排队状态样式不显示的问题

添加非scoped样式块确保badge-queuing和badge-grabbing样式不被tree-shaking移除
This commit is contained in:
Your Name 2026-01-29 11:28:48 +08:00
parent 7bb3c953ef
commit 7dc5df6f80

View File

@ -725,3 +725,22 @@ const getSubTaskDeadline = (subTask: TaskItem) => {
}
}
</style>
<!-- 非scoped样式,确保动态类名不被tree-shaking移除 -->
<style lang="scss">
.task-card .badge.badge-queuing {
background: rgba(250, 140, 22, 0.1) !important;
color: #fa8c16 !important;
animation: pulse 2s ease-in-out infinite;
}
.task-card .badge.badge-grabbing {
background: rgba(82, 196, 26, 0.1) !important;
color: #52c41a !important;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
</style>