chore: fix snapshot

This commit is contained in:
zombiej 2019-09-27 10:51:10 +08:00
parent 911867622e
commit 808d4075dc
2 changed files with 91 additions and 6 deletions

View File

@ -2310,7 +2310,28 @@ Array [
>
<span
class="ant-tree-switcher ant-tree-switcher_open"
/>
>
<span
aria-label="down"
class="anticon anticon-down ant-tree-switcher-icon"
role="img"
>
<svg
aria-hidden="true"
class=""
data-icon="down"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
/>
</svg>
</span>
</span>
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1"
@ -2335,7 +2356,28 @@ Array [
</span>
<span
class="ant-tree-switcher ant-tree-switcher_open"
/>
>
<span
aria-label="down"
class="anticon anticon-down ant-tree-switcher-icon"
role="img"
>
<svg
aria-hidden="true"
class=""
data-icon="down"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
/>
</svg>
</span>
</span>
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1-0"
@ -2507,7 +2549,28 @@ Array [
</span>
<span
class="ant-tree-switcher ant-tree-switcher_close"
/>
>
<span
aria-label="down"
class="anticon anticon-down ant-tree-switcher-icon"
role="img"
>
<svg
aria-hidden="true"
class=""
data-icon="down"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
/>
</svg>
</span>
</span>
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close"
title="parent 1-1"
@ -2532,7 +2595,28 @@ Array [
</span>
<span
class="ant-tree-switcher ant-tree-switcher_close"
/>
>
<span
aria-label="down"
class="anticon anticon-down ant-tree-switcher-icon"
role="img"
>
<svg
aria-hidden="true"
class=""
data-icon="down"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
/>
</svg>
</span>
</span>
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close"
title="parent 1-2"

View File

@ -14,7 +14,8 @@ title:
customize collapse/expand icon of tree node
```jsx
import { Tree, Icon } from 'antd';
import { Tree } from 'antd';
import { Down } from '@ant-design/icons';
const { TreeNode } = Tree;
@ -27,7 +28,7 @@ class Demo extends React.Component {
return (
<Tree
showLine
switcherIcon={<Icon type="down" />}
switcherIcon={<Down />}
defaultExpandedKeys={['0-0-0']}
onSelect={this.onSelect}
>