From ff8ef180e8a6f866d06201a1854e67bedc71d7f5 Mon Sep 17 00:00:00 2001 From: zombiej Date: Sat, 26 Jan 2019 19:46:30 +0800 Subject: [PATCH] add hide icon sample on showLine --- components/tree/index.en-US.md | 6 ++++++ components/tree/index.zh-CN.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/components/tree/index.en-US.md b/components/tree/index.en-US.md index 9597898349..fb728cbd94 100644 --- a/components/tree/index.en-US.md +++ b/components/tree/index.en-US.md @@ -78,3 +78,9 @@ to avoid double computing. But, this brings some restrictions. ? {this.state.treeData.map(data => )} : '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 diff --git a/components/tree/index.zh-CN.md b/components/tree/index.zh-CN.md index 0186d885be..efc0151807 100644 --- a/components/tree/index.zh-CN.md +++ b/components/tree/index.zh-CN.md @@ -76,3 +76,9 @@ subtitle: 树形控件 ? {this.state.treeData.map(data => )} : 'loading tree'} ``` + +## FAQ + +### 在 showLine 时,如何隐藏子节点图标? + +文件图标通过 switcherIcon 来实现,如果不需要你可以覆盖对应的样式:https://codesandbox.io/s/883vo47xp8