Skip to content

Commit 5b7a8d3

Browse files
committed
Enhance GistList component by adding visual indication of Gist visibility. Introduced a tag to display '公开' (public) or '私有' (private) status based on the Gist's public attribute.
1 parent 1a142cf commit 5b7a8d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/GistList.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
{{ gist.description || '未命名 Gist' }}
1818
</a-typography-title>
1919
<a-tag>{{ formatDate(gist.created_at) }}</a-tag>
20+
<a-tag :color="gist.public ? 'green': 'red'">
21+
{{ gist.public ? '公开' : '私有'}}
22+
</a-tag>
2023
</a-space>
2124
</template>
2225
<template #extra>

0 commit comments

Comments
 (0)