Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add tree builtins component #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhangfisher
Copy link

dumi内置的树渲染采用<ul>/<li>的方式进行渲染,

  • 样式单一,表现力偏弱
  • 使用html来写树,冗余数据太多,不方便

本次PR引入LiteTree,提供内置组件Tree,可以非常方便地渲染树

如下:

<Tree>
根节点
    + 节点1                     // 默认展开状态
        - 节点1.1
        - 节点1.2
    - 节点2                     // 默认折叠状态
        - 节点2.1   
        - 节点2.2
</Tree>

渲染如下树:

image

关于LiteTree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant