refactor:优化展开收起

This commit is contained in:
jiangrui
2025-03-07 23:48:48 +08:00
parent 26381fa6b0
commit f23e78e8dd
2 changed files with 12 additions and 5 deletions

View File

@@ -26,8 +26,10 @@
<!-- 描述 - 添加展开收起功能 -->
<div
class="info__desc"
:class="{ 'is-expanded': expandedItems[item.id] }"
@click="toggleExpand(item.id)"
:class="{
'is-expanded': expandedItems[(item.messageId || '') + (item.channelId || '')],
}"
@click="toggleExpand((item.messageId || '') + (item.channelId || ''))"
v-html="item.content"
/>