Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Sunny-117/treejs
π± ζδΈζγι«ζ§θ½γεΌΊζε±η Tree η»δ»ΆοΌεζΆζ―ζ Vuejs ε React
https://github.com/Sunny-117/treejs
Last synced: about 2 months ago
JSON representation
π± ζδΈζγι«ζ§θ½γεΌΊζε±η Tree η»δ»ΆοΌεζΆζ―ζ Vuejs ε React
- Host: GitHub
- URL: https://github.com/Sunny-117/treejs
- Owner: Sunny-117
- License: mit
- Created: 2023-01-23T13:34:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-08T14:56:05.000Z (7 months ago)
- Last Synced: 2024-02-14T20:06:46.216Z (7 months ago)
- Language: TypeScript
- Size: 21.5 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# treejs
π± ζδΈζγι«ζ§θ½γεΌΊζε±η Tree η»δ»ΆοΌεζΆζ―ζ Vuejs ε React
## Install
```bash
pnpm install @treejs/react
```## Usage for React
```tsx
import { Tree, DataNode } from "@treejs/react";const treeData = [
{
title: "parent 1",
key: "0-0",
children: [
{
title: "parent 1-0",
key: "0-0-0",
children: [
{
title: "leaf",
key: "0-0-0-0",
children: [
{
title: "last",
key: "0-0-0-0-0",
},
{
title: "last",
key: "0-0-0-1-1",
},
],
},
{
title: "leaf",
key: "0-0-0-1",
},
],
},
{
title: "parent 1-1",
key: "0-0-1",
children: [
{
title: sss,
key: "0-0-1-0",
},
],
},
],
},
];const App = () => {
return ;
};export default App;
```## Usage for Vue
```tsx
import { Tree, DataNode } from "@treejs/vue";
```