新增: 项目归档
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
</div>
|
||||
<div class="card-top-actions">
|
||||
<span class="stage-badge" :class="stageClass(project.status)">{{ $t(statusLabel(project.status)) }}</span>
|
||||
<button class="card-del-btn" :title="$t('projects.archiveTitle')" @click.stop="emit('archive', project)">📦</button>
|
||||
<button class="card-del-btn" :title="$t('projects.deleteTitle')" @click.stop="emit('delete', project)">🗑</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -68,6 +69,7 @@ const props = withDefaults(defineProps<{
|
||||
})
|
||||
const emit = defineEmits<{
|
||||
(e: 'delete', project: ProjectRecord): void
|
||||
(e: 'archive', project: ProjectRecord): void
|
||||
}>()
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
Reference in New Issue
Block a user