This commit is contained in:
oneao committed 2026-10-09 22:05:02 +08:00
1 parent 0be0b0767a
commit 5f28a10d89
852 files changed
+8962 -111755

No files matched your search

@@ -39,7 +39,7 @@ const selectedKeys = ref<string[]>([])
v-if="!node.disabled"
size="small"
type="link"
style="margin-left: auto"
style="margin-inline-start: auto"
@click.stop="selectedKeys = [String(node.id)]"
>
选中
@@ -28,7 +28,7 @@ function collapseAll() {
</script>
<template>
<G3Space direction="vertical" :size="12" style="display: flex; max-width: 320px">
<G3Space vertical :size="12" style="display: flex; max-width: 320px">
<G3Space :size="8">
<G3Button size="small" type="outline" @click="expandAll">全部展开</G3Button>
<G3Button size="small" type="outline" @click="collapseAll">全部收起</G3Button>
@@ -27,7 +27,7 @@ const keyword = ref('')
<template>
<div style="max-width: 320px">
<G3Input v-model="keyword" allow-clear placeholder="输入关键词,如「管理」" style="margin-bottom: 8px" />
<G3Input v-model="keyword" clearable placeholder="输入关键词,如「管理」" style="margin-bottom: 8px" />
<G3Tree :tree-data="treeData" :filter="keyword" default-expand-all block-node>
<template #empty>没有匹配的节点</template>
</G3Tree>