-
-
Notifications
You must be signed in to change notification settings - Fork 47.5k
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
Tree with line style #3854
Comments
@edutrul maybe you can override style to do so? |
i tried few times (maybe spent not enough time), but had few glitches every time. |
@warmhug 目前 rc-tree 的 showline 好像有点问题: http://react-component.github.io/tree/examples/contextmenu.html
|
@ddcat1115 先加上 checkable 属性,当时做的时候和这个绑定了,随后要分离下。 |
目前 checkable 的 rc-tree 对是否是
@warmhug 看下是否rc-tree这里的认定方式需要修改下?或者设计修改下? |
rc-tree 的线条设计和这里一样 http://www.treejs.cn/v3/demo.php#_101 我觉得没问题 |
如果叶子节点也要连起来,建议叶子节点也带icon,设计中『基本样式』里面看起来是没有的,『带icon的样式』里貌似又有。。。 |
叶子节点也带icon,这个考虑下在 antd 里包装下吧。现在 rc-tree 和 ztree 不一样的是,设置 showIcon={false} 时,rc-tree 是不渲染 icon 节点;ztree 是还渲染节点,但用样式隐藏掉、而对于叶子节点 icon 不隐藏。自定义 icon 的方式也不一样,rc-tree 自定义 icon 在 TreeNode title 属性里定义,可以在 antd 里对 leaf 节点设置自定义 icon,再设置线条样式即可。 |
@ddcat1115 showLine 问题已修复,不用再加上 checkable 属性了。示例 http://react-component.github.io/tree/examples/contextmenu.html 另外 antd 的 tree 或 tree-select 里去掉使用 a 标签 以后 rc-tree / rc-tree-select 的维护主要由 @yesmeck 来负责(有什么不确定的问题或需要 review 的可以@我) |
@aw6658913 使用问题建议到 StackOverflow 或 SegmentFault 上问。 你的问题可以参考 http://react-component.github.io/tree/examples/basic.html |
能不能在选择showline时,把叶子节点前的那个图标给去了啊,或者有去掉的办法吗 |
楼上 +1 |
The text was updated successfully, but these errors were encountered: