update: 分屏展示图标

This commit is contained in:
JiangQiming 2023-03-03 18:29:19 +08:00
parent 9649dd9cbd
commit 19a0d366f0
1 changed files with 6 additions and 2 deletions

View File

@ -9,8 +9,12 @@
:fieldNames="{ title: 'name', key: 'id' }"
@select="onSelect"
>
<template #icon="{ key, selected }">
<AIcon type="VideoCameraOutlined" class="online" />
<template #icon="{ id, selected }">
<AIcon
type="VideoCameraOutlined"
class="online"
v-if="!treeData.find((f: any) => f.id === id)"
/>
</template>
</a-tree>
</div>