feat: add svelte workspace feature panels

This commit is contained in:
2026-07-18 16:42:05 +08:00
parent a758996799
commit 7a2af1b938
6 changed files with 142 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<script lang="ts">
export type TaskListItem = {
id: number;
title: string;
status: 'open' | 'doing' | 'done';
assignee?: string;
};
export let tasks: TaskListItem[] = [];
</script>
<section aria-label="任务列表" class="task-list">
{#each tasks as task}
<article class="task-row">
<strong>{task.title}</strong>
<span>{task.status}</span>
{#if task.assignee}
<span>{task.assignee}</span>
{/if}
</article>
{/each}
</section>