Browse Source

Fix snapshot

pull/5898/head
afc163 8 years ago
parent
commit
cad727323b
  1. 176
      components/tree/__tests__/__snapshots__/demo.test.js.snap

176
components/tree/__tests__/__snapshots__/demo.test.js.snap

@ -19,7 +19,7 @@ exports[`renders ./components/tree/demo/basic.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1"
>
@ -28,7 +28,7 @@ exports[`renders ./components/tree/demo/basic.md correctly 1`] = `
>
parent 1
</span>
</a>
</span>
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
@ -46,7 +46,7 @@ exports[`renders ./components/tree/demo/basic.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1-0"
>
@ -55,7 +55,7 @@ exports[`renders ./components/tree/demo/basic.md correctly 1`] = `
>
parent 1-0
</span>
</a>
</span>
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
@ -73,7 +73,7 @@ exports[`renders ./components/tree/demo/basic.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
@ -82,7 +82,7 @@ exports[`renders ./components/tree/demo/basic.md correctly 1`] = `
>
leaf
</span>
</a>
</span>
</li>
<li
class=""
@ -97,7 +97,7 @@ exports[`renders ./components/tree/demo/basic.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
@ -106,7 +106,7 @@ exports[`renders ./components/tree/demo/basic.md correctly 1`] = `
>
leaf
</span>
</a>
</span>
</li>
</ul>
</li>
@ -123,7 +123,7 @@ exports[`renders ./components/tree/demo/basic.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1-1"
>
@ -132,7 +132,7 @@ exports[`renders ./components/tree/demo/basic.md correctly 1`] = `
>
parent 1-1
</span>
</a>
</span>
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
@ -150,7 +150,7 @@ exports[`renders ./components/tree/demo/basic.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title=""
>
@ -163,7 +163,7 @@ exports[`renders ./components/tree/demo/basic.md correctly 1`] = `
sss
</span>
</span>
</a>
</span>
</li>
</ul>
</li>
@ -191,7 +191,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="0-0"
>
@ -200,7 +200,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
>
0-0
</span>
</a>
</span>
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
@ -218,7 +218,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="0-0-0"
>
@ -227,7 +227,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
>
0-0-0
</span>
</a>
</span>
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
@ -245,7 +245,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-0-0-0"
>
@ -254,7 +254,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
>
0-0-0-0
</span>
</a>
</span>
</li>
<li
class=""
@ -269,7 +269,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-0-0-1"
>
@ -278,7 +278,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
>
0-0-0-1
</span>
</a>
</span>
</li>
<li
class=""
@ -293,7 +293,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-0-0-2"
>
@ -302,7 +302,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
>
0-0-0-2
</span>
</a>
</span>
</li>
</ul>
</li>
@ -319,7 +319,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="0-0-1"
>
@ -328,7 +328,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
>
0-0-1
</span>
</a>
</span>
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
@ -346,7 +346,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-0-1-0"
>
@ -355,7 +355,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
>
0-0-1-0
</span>
</a>
</span>
</li>
<li
class=""
@ -370,7 +370,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-0-1-1"
>
@ -379,7 +379,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
>
0-0-1-1
</span>
</a>
</span>
</li>
<li
class=""
@ -394,7 +394,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-0-1-2"
>
@ -403,7 +403,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
>
0-0-1-2
</span>
</a>
</span>
</li>
</ul>
</li>
@ -420,7 +420,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-0-2"
>
@ -429,7 +429,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
>
0-0-2
</span>
</a>
</span>
</li>
</ul>
</li>
@ -446,7 +446,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close"
title="0-1"
>
@ -455,7 +455,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
>
0-1
</span>
</a>
</span>
</li>
<li
class=""
@ -470,7 +470,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
class="ant-tree-checkbox-inner"
/>
</span>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="0-2"
>
@ -479,7 +479,7 @@ exports[`renders ./components/tree/demo/basic-controlled.md correctly 1`] = `
>
0-2
</span>
</a>
</span>
</li>
</ul>
`;
@ -496,7 +496,7 @@ exports[`renders ./components/tree/demo/customized-icon.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-roots_open"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1"
>
@ -508,7 +508,7 @@ exports[`renders ./components/tree/demo/customized-icon.md correctly 1`] = `
>
parent 1
</span>
</a>
</span>
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
@ -519,7 +519,7 @@ exports[`renders ./components/tree/demo/customized-icon.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-center_open"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open ant-tree-node-selected"
title="parent 1-0"
>
@ -531,7 +531,7 @@ exports[`renders ./components/tree/demo/customized-icon.md correctly 1`] = `
>
parent 1-0
</span>
</a>
</span>
<ul
class="ant-tree-child-tree ant-tree-child-tree-open ant-tree-line"
data-expanded="true"
@ -542,7 +542,7 @@ exports[`renders ./components/tree/demo/customized-icon.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-switcher-noop ant-tree-center_docu"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
@ -554,7 +554,7 @@ exports[`renders ./components/tree/demo/customized-icon.md correctly 1`] = `
>
leaf
</span>
</a>
</span>
</li>
<li
class=""
@ -562,7 +562,7 @@ exports[`renders ./components/tree/demo/customized-icon.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-switcher-noop ant-tree-bottom_docu"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
@ -574,7 +574,7 @@ exports[`renders ./components/tree/demo/customized-icon.md correctly 1`] = `
>
leaf
</span>
</a>
</span>
</li>
</ul>
</li>
@ -584,7 +584,7 @@ exports[`renders ./components/tree/demo/customized-icon.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-center_open"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1-1"
>
@ -596,7 +596,7 @@ exports[`renders ./components/tree/demo/customized-icon.md correctly 1`] = `
>
parent 1-1
</span>
</a>
</span>
<ul
class="ant-tree-child-tree ant-tree-child-tree-open ant-tree-line"
data-expanded="true"
@ -607,7 +607,7 @@ exports[`renders ./components/tree/demo/customized-icon.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-switcher-noop ant-tree-bottom_docu"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
@ -619,7 +619,7 @@ exports[`renders ./components/tree/demo/customized-icon.md correctly 1`] = `
>
leaf
</span>
</a>
</span>
</li>
</ul>
</li>
@ -629,7 +629,7 @@ exports[`renders ./components/tree/demo/customized-icon.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-switcher-noop ant-tree-bottom_docu"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
@ -641,7 +641,7 @@ exports[`renders ./components/tree/demo/customized-icon.md correctly 1`] = `
>
leaf
</span>
</a>
</span>
</li>
</ul>
</li>
@ -660,7 +660,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-noline_open"
/>
<a
<span
aria-grabbed="true"
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open draggable"
draggable="true"
@ -671,7 +671,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
>
0-0
</span>
</a>
</span>
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
@ -682,7 +682,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-noline_open"
/>
<a
<span
aria-grabbed="true"
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open draggable"
draggable="true"
@ -693,7 +693,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
>
0-0-0
</span>
</a>
</span>
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
@ -704,7 +704,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-switcher-noop ant-tree-noline_docu"
/>
<a
<span
aria-grabbed="true"
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal draggable"
draggable="true"
@ -715,7 +715,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
>
0-0-0-0
</span>
</a>
</span>
</li>
<li
class=""
@ -723,7 +723,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-switcher-noop ant-tree-noline_docu"
/>
<a
<span
aria-grabbed="true"
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal draggable"
draggable="true"
@ -734,7 +734,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
>
0-0-0-1
</span>
</a>
</span>
</li>
<li
class=""
@ -742,7 +742,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-switcher-noop ant-tree-noline_docu"
/>
<a
<span
aria-grabbed="true"
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal draggable"
draggable="true"
@ -753,7 +753,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
>
0-0-0-2
</span>
</a>
</span>
</li>
</ul>
</li>
@ -763,7 +763,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-noline_close"
/>
<a
<span
aria-grabbed="true"
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close draggable"
draggable="true"
@ -774,7 +774,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
>
0-0-1
</span>
</a>
</span>
</li>
<li
class=""
@ -782,7 +782,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-switcher-noop ant-tree-noline_docu"
/>
<a
<span
aria-grabbed="true"
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal draggable"
draggable="true"
@ -793,7 +793,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
>
0-0-2
</span>
</a>
</span>
</li>
</ul>
</li>
@ -803,7 +803,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-noline_close"
/>
<a
<span
aria-grabbed="true"
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close draggable"
draggable="true"
@ -814,7 +814,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
>
0-1
</span>
</a>
</span>
</li>
<li
class=""
@ -822,7 +822,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-switcher-noop ant-tree-noline_docu"
/>
<a
<span
aria-grabbed="true"
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal draggable"
draggable="true"
@ -833,7 +833,7 @@ exports[`renders ./components/tree/demo/draggable.md correctly 1`] = `
>
0-2
</span>
</a>
</span>
</li>
</ul>
`;
@ -858,7 +858,7 @@ exports[`renders ./components/tree/demo/line.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-roots_open"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1"
>
@ -867,7 +867,7 @@ exports[`renders ./components/tree/demo/line.md correctly 1`] = `
>
parent 1
</span>
</a>
</span>
<ul
class="ant-tree-child-tree ant-tree-child-tree-open"
data-expanded="true"
@ -878,7 +878,7 @@ exports[`renders ./components/tree/demo/line.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-center_open"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-open"
title="parent 1-0"
>
@ -887,7 +887,7 @@ exports[`renders ./components/tree/demo/line.md correctly 1`] = `
>
parent 1-0
</span>
</a>
</span>
<ul
class="ant-tree-child-tree ant-tree-child-tree-open ant-tree-line"
data-expanded="true"
@ -898,7 +898,7 @@ exports[`renders ./components/tree/demo/line.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-switcher-noop ant-tree-center_docu"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
@ -907,7 +907,7 @@ exports[`renders ./components/tree/demo/line.md correctly 1`] = `
>
leaf
</span>
</a>
</span>
</li>
<li
class=""
@ -915,7 +915,7 @@ exports[`renders ./components/tree/demo/line.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-switcher-noop ant-tree-center_docu"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
@ -924,7 +924,7 @@ exports[`renders ./components/tree/demo/line.md correctly 1`] = `
>
leaf
</span>
</a>
</span>
</li>
<li
class=""
@ -932,7 +932,7 @@ exports[`renders ./components/tree/demo/line.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-switcher-noop ant-tree-bottom_docu"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title="leaf"
>
@ -941,7 +941,7 @@ exports[`renders ./components/tree/demo/line.md correctly 1`] = `
>
leaf
</span>
</a>
</span>
</li>
</ul>
</li>
@ -951,7 +951,7 @@ exports[`renders ./components/tree/demo/line.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-center_close"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close"
title="parent 1-1"
>
@ -960,7 +960,7 @@ exports[`renders ./components/tree/demo/line.md correctly 1`] = `
>
parent 1-1
</span>
</a>
</span>
</li>
<li
class=""
@ -968,7 +968,7 @@ exports[`renders ./components/tree/demo/line.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-bottom_close"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close"
title="parent 1-2"
>
@ -977,7 +977,7 @@ exports[`renders ./components/tree/demo/line.md correctly 1`] = `
>
parent 1-2
</span>
</a>
</span>
</li>
</ul>
</li>
@ -1014,7 +1014,7 @@ exports[`renders ./components/tree/demo/search.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-noline_close"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close"
title=""
>
@ -1028,7 +1028,7 @@ exports[`renders ./components/tree/demo/search.md correctly 1`] = `
0-0
</span>
</span>
</a>
</span>
</li>
<li
class=""
@ -1036,7 +1036,7 @@ exports[`renders ./components/tree/demo/search.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-noline_close"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close"
title=""
>
@ -1050,7 +1050,7 @@ exports[`renders ./components/tree/demo/search.md correctly 1`] = `
0-1
</span>
</span>
</a>
</span>
</li>
<li
class=""
@ -1058,7 +1058,7 @@ exports[`renders ./components/tree/demo/search.md correctly 1`] = `
<span
class="ant-tree-switcher ant-tree-switcher-noop ant-tree-noline_docu"
/>
<a
<span
class="ant-tree-node-content-wrapper ant-tree-node-content-wrapper-normal"
title=""
>
@ -1072,7 +1072,7 @@ exports[`renders ./components/tree/demo/search.md correctly 1`] = `
0-2
</span>
</span>
</a>
</span>
</li>
</ul>
</div>

Loading…
Cancel
Save