This commit is contained in:
zyronon
2023-10-30 23:18:07 +08:00
parent 98a24179b0
commit 32be9661bc
3 changed files with 6 additions and 2 deletions

View File

@@ -124,6 +124,9 @@ defineExpose({scrollBottom})
<div class="translate-name"> {{ ` ${item.titleTranslate}` }}</div>
</div>
<div class="right">
<BaseIcon
@click="delItem(item)"
title="删除" icon="ph:star"/>
<BaseIcon
@click="delItem(item)"
title="删除" icon="fluent:delete-24-regular"/>
@@ -131,8 +134,7 @@ defineExpose({scrollBottom})
@mousedown="draggable = true"
@mouseup="draggable = false"
>
<BaseIcon
icon="carbon:move"/>
<BaseIcon icon="carbon:move"/>
</div>
</div>
</div>

View File

@@ -13,6 +13,7 @@ let focus = $ref(false)
let inputEl = $ref<HTMLDivElement>()
useWindowClick((e: PointerEvent) => {
if (!e)return
focus = inputEl.contains(e.target as any);
})

View File

@@ -19,6 +19,7 @@ useWindowClick(() => show = false)
useWatchAllSound()
function toggle() {
console.log('e')
if (!show) emitter.emit(EventKey.closeOther)
show = !show
}