forked from kevin/meshtastic_mqtt_server
频道筛选框从 topbar 移至聊天卡片内,ChatPanel v-model:channelFilter 双向绑定
This commit is contained in:
3 files changed
+66
-14
No files matched your search
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user