Browse Source

add hide icon sample on showLine

pull/14575/head
zombiej 6 years ago
parent
commit
ff8ef180e8
  1. 6
      components/tree/index.en-US.md
  2. 6
      components/tree/index.zh-CN.md

6
components/tree/index.en-US.md

@ -78,3 +78,9 @@ to avoid double computing. But, this brings some restrictions.
? <Tree>{this.state.treeData.map(data => <TreeNode />)}</Tree> ? <Tree>{this.state.treeData.map(data => <TreeNode />)}</Tree>
: 'loading tree'} : 'loading tree'}
``` ```
## FAQ
### How to hide file icon when use showLine?
File icon realize by using switcherIcon. You can overwrite the style to hide it: https://codesandbox.io/s/883vo47xp8

6
components/tree/index.zh-CN.md

@ -76,3 +76,9 @@ subtitle: 树形控件
? <Tree>{this.state.treeData.map(data => <TreeNode />)}</Tree> ? <Tree>{this.state.treeData.map(data => <TreeNode />)}</Tree>
: 'loading tree'} : 'loading tree'}
``` ```
## FAQ
### 在 showLine 时,如何隐藏子节点图标?
文件图标通过 switcherIcon 来实现,如果不需要你可以覆盖对应的样式:https://codesandbox.io/s/883vo47xp8

Loading…
Cancel
Save