Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 229 KB

File metadata and controls

20 lines (16 loc) · 229 KB

Tree Component hard #Components

By 木荣 @murongg

Take the Challenge    Take the Challenge(Passed unit tests)    简体中文

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>

Back Share your Solutions Check out Solutions