feat: smart-tree component added to hoppscotch-ui (#3210)

This commit is contained in:
Anwarul Islam
2023-08-20 21:18:32 +06:00
committed by GitHub
parent d5c887f311
commit d4d1e27ba9
8 changed files with 34 additions and 21 deletions

View File

@@ -32,7 +32,7 @@
</span>
</div>
<div class="flex flex-col flex-1">
<SmartTree :adapter="myAdapter">
<HoppSmartTree :adapter="myAdapter">
<template
#content="{ node, toggleChildren, isOpen, highlightChildren }"
>
@@ -291,7 +291,7 @@
>
</HoppSmartPlaceholder>
</template>
</SmartTree>
</HoppSmartTree>
</div>
</div>
</template>
@@ -303,7 +303,10 @@ import IconHelpCircle from "~icons/lucide/help-circle"
import { HoppCollection, HoppRESTRequest } from "@hoppscotch/data"
import { computed, PropType, Ref, toRef } from "vue"
import { GetMyTeamsQuery } from "~/helpers/backend/graphql"
import { ChildrenResult, SmartTreeAdapter } from "~/helpers/treeAdapter"
import {
ChildrenResult,
SmartTreeAdapter,
} from "@hoppscotch/ui/dist/helpers/treeAdapter"
import { useI18n } from "@composables/i18n"
import { useColorMode } from "@composables/theming"
import { pipe } from "fp-ts/function"