提交 84322df6 编写于 作者: View Design's avatar View Design

Update thread.vue

上级 a282f0b4
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<span>52 分钟前</span> <span>52 分钟前</span>
</div> </div>
</div> </div>
<div class="flex"> <div class="flex gap-4">
<UButton <UButton
:ui="{ rounded: 'rounded-full' }" :ui="{ rounded: 'rounded-full' }"
to="/library/123" to="/library/123"
...@@ -34,10 +34,42 @@ ...@@ -34,10 +34,42 @@
size="2xs" size="2xs"
label="前端开发" label="前端开发"
/> />
<UTooltip text="添加到收藏">
<UButton
color="gray"
variant="ghost"
size="2xs"
icon="i-heroicons-plus"
/>
</UTooltip>
<UDropdown class="flex flex-grow" :items="actionItems">
<UButton
color="gray"
variant="ghost"
size="2xs"
icon="i-heroicons-ellipsis-horizontal"
/>
</UDropdown>
</div> </div>
</div> </div>
<UDivider /> <UDivider />
</template> </template>
<script setup> <script setup>
const textColor = 'text-gray-500 dark:text-gray-400' const textColor = 'text-gray-500 dark:text-gray-400'
const actionItems = [
[
{
label: '更改集合',
icon: 'i-heroicons-squares-plus'
},
{
label: '从收藏中移除',
icon: 'i-heroicons-x-mark'
},
{
label: '删除帖子',
icon: 'i-heroicons-trash'
}
]
]
</script> </script>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册