Skip to content

Tree Component hard #Components

By 木荣 @murongg

Take the Challenge    简体中文

For this challenge, you need to implement a tree component. Lets go.

<script setup lang="ts">
interface TreeData {
  key: string
  title: string
  children: TreeData[]
}
defineProps<{data: TreeData[]}>()
</script>

<template>
  <!-- do something.... -->
</template>

Share your Solutions Check out Solutions