2017-03-17 18:56:30 +08:00
|
|
|
// 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"
|
2017-03-17 18:56:30 +08:00
|
|
|
unselectable="true"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<li
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox ant-tree-checkbox-checked"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="parent 1"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
data-expanded="true"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<li
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox ant-tree-checkbox-checked ant-tree-checkbox-disabled"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="parent 1-0"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
data-expanded="true"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<li
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="leaf"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox ant-tree-checkbox-checked"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="leaf"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox ant-tree-checkbox-checked"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="parent 1-1"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
data-expanded="true"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<li
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox ant-tree-checkbox-checked"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title=""
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-title"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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>
|
|
|
|
`;
|
|
|
|
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
unselectable="true"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<li
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox ant-tree-checkbox-indeterminate"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
data-expanded="true"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<li
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox ant-tree-checkbox-checked ant-tree-checkbox-disabled"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0-0"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
data-expanded="true"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<li
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox ant-tree-checkbox-checked"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0-0-0"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox ant-tree-checkbox-checked"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0-0-1"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox ant-tree-checkbox-checked"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0-0-2"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0-1"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
data-expanded="true"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<li
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0-1-0"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0-1-1"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0-1-2"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0-2"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-1"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-checkbox"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-2"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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>
|
|
|
|
`;
|
|
|
|
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
unselectable="true"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<li
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
data-expanded="true"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<li
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0-0"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
data-expanded="true"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<li
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0-0-0"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0-0-1"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0-0-2"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0-1"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-0-2"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-1"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title="0-2"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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-17 18:56:30 +08:00
|
|
|
exports[`renders ./components/tree/demo/dynamic.md correctly 1`] = `
|
2016-11-22 14:28:05 +08:00
|
|
|
<ul
|
|
|
|
class="ant-tree"
|
|
|
|
role="tree-node"
|
2017-03-17 18:56:30 +08:00
|
|
|
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>
|
|
|
|
`;
|
|
|
|
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="text"
|
|
|
|
/>
|
2017-01-01 01:06:19 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-input-suffix"
|
|
|
|
>
|
2017-01-05 17:24:14 +08:00
|
|
|
<i
|
2017-03-17 18:56:30 +08:00
|
|
|
class="anticon anticon-search ant-input-search-icon"
|
|
|
|
/>
|
2017-01-01 01:06:19 +08:00
|
|
|
</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"
|
2017-03-17 18:56:30 +08:00
|
|
|
unselectable="true"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<li
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title=""
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-title"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title=""
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-title"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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
|
2017-03-17 18:56:30 +08:00
|
|
|
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-03-17 18:56:30 +08:00
|
|
|
/>
|
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"
|
2017-03-17 18:56:30 +08:00
|
|
|
title=""
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
class="ant-tree-title"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
<span
|
2017-03-17 18:56:30 +08:00
|
|
|
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>
|
|
|
|
`;
|