This commit is contained in:
oneao committed 2026-10-09 17:32:14 +08:00
1 parent e99a9fb274
commit 0be0b0767a
788 files changed
+112023 -14941

No files matched your search

@@ -47,7 +47,6 @@ import { LogOut, Settings, User } from '@lucide/vue'
</template>
<template #menu="{ close }">
<div style="padding: 8px; font-size: 13px">
这里可以放任意结构
<G3Button size="small" type="link" @click="close()">关闭</G3Button>
</div>
</template>
@@ -14,14 +14,9 @@ const items = [
</script>
<template>
<div style="display: flex; align-items: center; gap: 12px">
<G3Dropdown v-model:open="open" :items="items" placement="bottom-start">
<template #trigger>
<G3Button type="outline">按键盘操作</G3Button>
</template>
</G3Dropdown>
<span style="font-size: 12px; color: #6b7280">
菜单打开后按 ↑↓ / Enter 试试(当前 {{ open ? '已打开' : '已关闭' }})
</span>
</div>
<G3Dropdown v-model:open="open" :items="items" placement="bottom-start">
<template #trigger>
<G3Button type="outline">按键盘操作</G3Button>
</template>
</G3Dropdown>
</template>