ant-design/components/tree/__tests__/__snapshots__/demo.test.js.snap

1080 lines
25 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/tree/demo/basic.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<ul
2017-03-03 17:39:26 +08:00
class="ant-tree"
2016-11-22 14:28:05 +08:00
role="tree-node"
unselectable="true"
>
2016-11-22 14:28:05 +08:00
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_open"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox ant-tree-checkbox-checked"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
parent 1
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
>
2016-11-22 14:28:05 +08:00
<li
class="ant-tree-treenode-disabled"
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_open ant-tree-switcher-disabled"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox ant-tree-checkbox-checked ant-tree-checkbox-disabled"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1-0"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
parent 1-0
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
<ul
2017-03-03 17:39:26 +08:00
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
>
2016-11-22 14:28:05 +08:00
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2016-11-22 14:28:05 +08:00
<span
2017-07-29 14:20:48 +08:00
class="ant-tree-checkbox ant-tree-checkbox-disabled"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
leaf
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox ant-tree-checkbox-checked"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
leaf
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
</ul>
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_open"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox ant-tree-checkbox-checked"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1-1"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
parent 1-1
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
>
2016-11-22 14:28:05 +08:00
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox ant-tree-checkbox-checked"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title=""
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
<span
style="color:#08c;"
>
2016-11-22 14:28:05 +08:00
sss
</span>
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
</ul>
</li>
</ul>
</li>
</ul>
`;
exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<ul
class="ant-tree"
role="tree-node"
unselectable="true"
>
2016-11-22 14:28:05 +08:00
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_open"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox ant-tree-checkbox-indeterminate"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="0-0"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
>
2016-11-22 14:28:05 +08:00
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_open"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox ant-tree-checkbox-checked ant-tree-checkbox-disabled"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="0-0-0"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0-0
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
>
2016-11-22 14:28:05 +08:00
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox ant-tree-checkbox-checked"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-0-0-0"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0-0-0
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox ant-tree-checkbox-checked"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-0-0-1"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0-0-1
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox ant-tree-checkbox-checked"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-0-0-2"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0-0-2
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
</ul>
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_open"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="0-0-1"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0-1
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
>
2016-11-22 14:28:05 +08:00
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-0-1-0"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0-1-0
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-0-1-1"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0-1-1
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-0-1-2"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0-1-2
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
</ul>
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-0-2"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0-2
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
</ul>
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_close"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close"
title="0-1"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-1
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-checkbox-inner"
/>
2016-11-22 14:28:05 +08:00
</span>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-2"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-2
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
</ul>
`;
2017-03-21 11:01:37 +08:00
exports[`renders ./components/tree/demo/customized-icon.md correctly 1`] = `
<ul
2017-07-27 17:51:07 +08:00
class="ant-tree ant-tree-show-line"
2017-03-21 11:01:37 +08:00
role="tree-node"
unselectable="true"
>
<li
class=""
>
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_open"
2017-03-21 11:01:37 +08:00
/>
2017-04-25 15:31:47 +08:00
<span
2017-03-21 11:01:37 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1"
>
<span
class="ant-tree-iconEle ant-tree-icon__open"
/>
<span
class="ant-tree-title"
>
parent 1
</span>
2017-04-25 15:31:47 +08:00
</span>
2017-03-21 11:01:37 +08:00
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
>
<li
class=""
>
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_open"
2017-03-21 11:01:37 +08:00
/>
2017-04-25 15:31:47 +08:00
<span
2017-03-21 11:01:37 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open ant-tree-node-selected"
title="parent 1-0"
>
<span
class="ant-tree-iconEle ant-tree-icon__open"
/>
<span
class="ant-tree-title"
>
parent 1-0
</span>
2017-04-25 15:31:47 +08:00
</span>
2017-03-21 11:01:37 +08:00
<ul
2017-07-28 11:38:39 +08:00
class="ant-tree-child-tree ant-tree-child-tree-open"
2017-03-21 11:01:37 +08:00
data-expanded="true"
>
<li
class=""
>
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
2017-03-21 11:01:37 +08:00
/>
2017-04-25 15:31:47 +08:00
<span
2017-03-21 11:01:37 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
<span
class="ant-tree-iconEle ant-tree-icon__docu"
/>
<span
class="ant-tree-title"
>
leaf
</span>
2017-04-25 15:31:47 +08:00
</span>
2017-03-21 11:01:37 +08:00
</li>
<li
class=""
>
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
2017-03-21 11:01:37 +08:00
/>
2017-04-25 15:31:47 +08:00
<span
2017-03-21 11:01:37 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
<span
class="ant-tree-iconEle ant-tree-icon__docu"
/>
<span
class="ant-tree-title"
>
leaf
</span>
2017-04-25 15:31:47 +08:00
</span>
2017-03-21 11:01:37 +08:00
</li>
</ul>
</li>
<li
class=""
>
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_open"
2017-03-21 11:01:37 +08:00
/>
2017-04-25 15:31:47 +08:00
<span
2017-03-21 11:01:37 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1-1"
>
<span
class="ant-tree-iconEle ant-tree-icon__open"
/>
<span
class="ant-tree-title"
>
parent 1-1
</span>
2017-04-25 15:31:47 +08:00
</span>
2017-03-21 11:01:37 +08:00
<ul
2017-07-28 11:38:39 +08:00
class="ant-tree-child-tree ant-tree-child-tree-open"
2017-03-21 11:01:37 +08:00
data-expanded="true"
>
<li
class=""
>
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
2017-03-21 11:01:37 +08:00
/>
2017-04-25 15:31:47 +08:00
<span
2017-03-21 11:01:37 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
<span
class="ant-tree-iconEle ant-tree-icon__docu"
/>
<span
class="ant-tree-title"
>
leaf
</span>
2017-04-25 15:31:47 +08:00
</span>
2017-03-21 11:01:37 +08:00
</li>
</ul>
</li>
<li
class=""
>
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
2017-03-21 11:01:37 +08:00
/>
2017-04-25 15:31:47 +08:00
<span
2017-03-21 11:01:37 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
<span
class="ant-tree-iconEle ant-tree-icon__docu"
/>
<span
class="ant-tree-title"
>
leaf
</span>
2017-04-25 15:31:47 +08:00
</span>
2017-03-21 11:01:37 +08:00
</li>
</ul>
</li>
</ul>
`;
exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<ul
2017-07-27 17:51:07 +08:00
class="ant-tree draggable-tree"
2016-11-22 14:28:05 +08:00
role="tree-node"
unselectable="true"
>
2016-11-22 14:28:05 +08:00
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_open"
/>
2017-04-25 15:31:47 +08:00
<span
2016-11-22 14:28:05 +08:00
aria-grabbed="true"
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open draggable"
2016-11-22 14:28:05 +08:00
draggable="true"
title="0-0"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
>
2016-11-22 14:28:05 +08:00
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_open"
/>
2017-04-25 15:31:47 +08:00
<span
2016-11-22 14:28:05 +08:00
aria-grabbed="true"
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open draggable"
2016-11-22 14:28:05 +08:00
draggable="true"
title="0-0-0"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0-0
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
>
2016-11-22 14:28:05 +08:00
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2017-04-25 15:31:47 +08:00
<span
2016-11-22 14:28:05 +08:00
aria-grabbed="true"
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal draggable"
2016-11-22 14:28:05 +08:00
draggable="true"
title="0-0-0-0"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0-0-0
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2017-04-25 15:31:47 +08:00
<span
2016-11-22 14:28:05 +08:00
aria-grabbed="true"
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal draggable"
2016-11-22 14:28:05 +08:00
draggable="true"
title="0-0-0-1"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0-0-1
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2017-04-25 15:31:47 +08:00
<span
2016-11-22 14:28:05 +08:00
aria-grabbed="true"
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal draggable"
2016-11-22 14:28:05 +08:00
draggable="true"
title="0-0-0-2"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0-0-2
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
</ul>
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_close"
/>
2017-04-25 15:31:47 +08:00
<span
2016-11-22 14:28:05 +08:00
aria-grabbed="true"
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close draggable"
2016-11-22 14:28:05 +08:00
draggable="true"
title="0-0-1"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0-1
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2017-04-25 15:31:47 +08:00
<span
2016-11-22 14:28:05 +08:00
aria-grabbed="true"
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal draggable"
2016-11-22 14:28:05 +08:00
draggable="true"
title="0-0-2"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-0-2
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
</ul>
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_close"
/>
2017-04-25 15:31:47 +08:00
<span
2016-11-22 14:28:05 +08:00
aria-grabbed="true"
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close draggable"
2016-11-22 14:28:05 +08:00
draggable="true"
title="0-1"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-1
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2017-04-25 15:31:47 +08:00
<span
2016-11-22 14:28:05 +08:00
aria-grabbed="true"
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal draggable"
2016-11-22 14:28:05 +08:00
draggable="true"
title="0-2"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
0-2
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
</ul>
`;
exports[`renders ./components/tree/demo/dynamic.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<ul
class="ant-tree"
role="tree-node"
unselectable="true"
/>
2016-11-22 14:28:05 +08:00
`;
2017-03-21 11:01:37 +08:00
exports[`renders ./components/tree/demo/line.md correctly 1`] = `
<ul
2017-07-27 17:51:07 +08:00
class="ant-tree ant-tree-show-line"
2017-03-21 11:01:37 +08:00
role="tree-node"
unselectable="true"
>
<li
class=""
>
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_open"
2017-03-21 11:01:37 +08:00
/>
2017-04-25 15:31:47 +08:00
<span
2017-03-21 11:01:37 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1"
>
<span
class="ant-tree-title"
>
parent 1
</span>
2017-04-25 15:31:47 +08:00
</span>
2017-03-21 11:01:37 +08:00
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
>
<li
class=""
>
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_open"
2017-03-21 11:01:37 +08:00
/>
2017-04-25 15:31:47 +08:00
<span
2017-03-21 11:01:37 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1-0"
>
<span
class="ant-tree-title"
>
parent 1-0
</span>
2017-04-25 15:31:47 +08:00
</span>
2017-03-21 11:01:37 +08:00
<ul
2017-07-28 11:38:39 +08:00
class="ant-tree-child-tree ant-tree-child-tree-open"
2017-03-21 11:01:37 +08:00
data-expanded="true"
>
<li
class=""
>
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
2017-03-21 11:01:37 +08:00
/>
2017-04-25 15:31:47 +08:00
<span
2017-03-21 11:01:37 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
<span
class="ant-tree-title"
>
leaf
</span>
2017-04-25 15:31:47 +08:00
</span>
2017-03-21 11:01:37 +08:00
</li>
<li
class=""
>
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
2017-03-21 11:01:37 +08:00
/>
2017-04-25 15:31:47 +08:00
<span
2017-03-21 11:01:37 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
<span
class="ant-tree-title"
>
leaf
</span>
2017-04-25 15:31:47 +08:00
</span>
2017-03-21 11:01:37 +08:00
</li>
<li
class=""
>
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
2017-03-21 11:01:37 +08:00
/>
2017-04-25 15:31:47 +08:00
<span
2017-03-21 11:01:37 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
<span
class="ant-tree-title"
>
leaf
</span>
2017-04-25 15:31:47 +08:00
</span>
2017-03-21 11:01:37 +08:00
</li>
</ul>
</li>
<li
class=""
>
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_close"
2017-03-21 11:01:37 +08:00
/>
2017-04-25 15:31:47 +08:00
<span
2017-03-21 11:01:37 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close"
title="parent 1-1"
>
<span
class="ant-tree-title"
>
parent 1-1
</span>
2017-04-25 15:31:47 +08:00
</span>
2017-03-21 11:01:37 +08:00
</li>
<li
class=""
>
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_close"
2017-03-21 11:01:37 +08:00
/>
2017-04-25 15:31:47 +08:00
<span
2017-03-21 11:01:37 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close"
title="parent 1-2"
>
<span
class="ant-tree-title"
>
parent 1-2
</span>
2017-04-25 15:31:47 +08:00
</span>
2017-03-21 11:01:37 +08:00
</li>
</ul>
</li>
</ul>
`;
exports[`renders ./components/tree/demo/search.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
2017-01-05 17:24:14 +08:00
<span
2017-07-12 21:44:46 +08:00
class="ant-input-search ant-input-affix-wrapper"
style="width:300px;"
>
2017-01-05 17:24:14 +08:00
<input
2017-07-12 21:44:46 +08:00
class="ant-input"
2017-01-05 17:24:14 +08:00
placeholder="Search"
type="text"
/>
<span
class="ant-input-suffix"
>
2017-01-05 17:24:14 +08:00
<i
class="anticon anticon-search ant-input-search-icon"
/>
</span>
2017-01-05 17:24:14 +08:00
</span>
2016-11-22 14:28:05 +08:00
<ul
class="ant-tree"
role="tree-node"
unselectable="true"
>
2016-11-22 14:28:05 +08:00
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_close"
/>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close"
title=""
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
<span>
<span
style="color:#f50;"
/>
2016-11-22 14:28:05 +08:00
0-0
</span>
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher_close"
/>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close"
title=""
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
<span>
<span
style="color:#f50;"
/>
2016-11-22 14:28:05 +08:00
0-1
</span>
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
<li
class=""
>
2016-11-22 14:28:05 +08:00
<span
2017-07-28 11:38:39 +08:00
class="ant-tree-switcher ant-tree-switcher-noop"
/>
2017-04-25 15:31:47 +08:00
<span
2016-12-06 09:27:21 +08:00
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title=""
>
2016-11-22 14:28:05 +08:00
<span
class="ant-tree-title"
>
2016-11-22 14:28:05 +08:00
<span>
<span
style="color:#f50;"
/>
2016-11-22 14:28:05 +08:00
0-2
</span>
</span>
2017-04-25 15:31:47 +08:00
</span>
2016-11-22 14:28:05 +08:00
</li>
</ul>
</div>
`;