fix(chat-input): 修复 @ 提及下拉框层级问题

设置 mention 下拉容器的 zIndex 为 modalTransferIndex + 1000,
  确保在弹窗等高层级元素中正常显示。
This commit is contained in:
kuaifan 2026-01-16 01:14:19 +08:00
parent 9cb8c92492
commit c8c27e808f

View File

@ -1278,6 +1278,7 @@ export default {
for (let i = 0; i < containers.length; i++) { for (let i = 0; i < containers.length; i++) {
containers[i].classList.remove(...Object.values(mentionMap)); containers[i].classList.remove(...Object.values(mentionMap));
containers[i].classList.add(mentionName); containers[i].classList.add(mentionName);
containers[i].style.zIndex = window.modalTransferIndex + 1000;
} }
let mentionSourceCache = null; let mentionSourceCache = null;
this.getMentionSource(mentionChar, searchTerm, array => { this.getMentionSource(mentionChar, searchTerm, array => {