trees
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese@pierre/trees
@pierre/trees@pierre/trees
@pierre/treesUse for an interactive file tree. Public state and callbacks use
path strings.
@pierre/trees使用构建交互式文件树。公共状态和回调函数使用路径字符串。
@pierre/treesInstall
安装
bash
pnpm add @pierre/treesInstall and when the app uses the React entry.
reactreact-dombash
pnpm add @pierre/trees如果应用使用React入口,请安装和。
reactreact-domSelect an API reference
选择API参考
| Entry | Reference |
|---|---|
| Core API |
| React API |
| SSR API |
| Web components API |
| 入口 | 参考文档 |
|---|---|
| Core API |
| React API |
| SSR API |
| Web components API |
Select a recipe
选择使用示例
| Task | Recipe |
|---|---|
| Render and update a tree in React | Use React |
| Render and update a tree without React | Use vanilla JavaScript |
| Preload a tree on the server | Use SSR |
| Apply a resolved Shiki or VS Code theme | Apply a theme |
| Configure search, rename, drag and drop, and git status | Add interactions |
| 任务 | 示例文档 |
|---|---|
| 在React中渲染并更新树结构 | Use React |
| 不使用React渲染并更新树结构 | Use vanilla JavaScript |
| 在服务器端预加载树结构 | Use SSR |
| 应用已解析的Shiki或VS Code主题 | Apply a theme |
| 配置搜索、重命名、拖拽及Git状态功能 | Add interactions |