频道筛选框从 topbar 移至聊天卡片内,ChatPanel v-model:channelFilter 双向绑定

This commit is contained in:
2026-08-07 19:31:33 +08:00
parent 4ce341208b
commit d2b5832df3
3 files changed
+66 -14

No files matched your search

+1 -14
View File
@@ -757,20 +757,6 @@ onBeforeUnmount(() => {
@click="nodeFilter = ''"
>清除</button>
</div>
<div class="topbar-filter">
<input
type="search"
class="topbar-filter-input"
v-model="channelFilter"
placeholder="筛选频道"
/>
<button
v-if="normalizedChannelFilter"
type="button"
class="topbar-filter-clear"
@click="channelFilter = ''"
>清除</button>
</div>
<a class="topbar-link" href="/signed">签到列表</a>
<a class="topbar-link" href="/help">使用帮助</a>
<a class="topbar-link" href="/admin">管理</a>
@@ -824,6 +810,7 @@ onBeforeUnmount(() => {
<section class="workspace">
<ChatPanel
v-model:channelFilter="channelFilter"
:messages="filteredMessages"
:nodes-by-id="nodesById"
:selected-node-id="selectedNodeId"