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

332 lines
7.8 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/dropdown/demo/basic.md correctly 1`] = `
<a
class="ant-dropdown-link ant-dropdown-trigger"
href="#"
>
Hover me
2018-07-19 20:37:47 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-down"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-19 20:37:47 +08:00
data-icon="down"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
<path
2018-08-24 18:36:08 +08:00
d="M895.7 300.1c0 9.6-3.2 19.3-9.6 27.4L545.2 751.3c-8.3 10.3-20.8 16.3-34.1 16.3-13.2 0-25.8-6-34-16.3L138 329.3c-15.1-18.8-12.1-46.3 6.7-61.4 18.8-15.1 46.3-12.1 61.4 6.7l305.1 379.6L818 272.7c15.1-18.8 42.6-21.8 61.4-6.7 10.7 8.7 16.3 21.3 16.3 34.1z"
2018-07-19 20:37:47 +08:00
/>
</svg>
</i>
</a>
2016-11-22 14:28:05 +08:00
`;
2017-11-26 14:02:00 +08:00
exports[`renders ./components/dropdown/demo/context-menu.md correctly 1`] = `
<span
class="ant-dropdown-trigger"
style="user-select:none"
>
Right Click on Me
</span>
`;
exports[`renders ./components/dropdown/demo/dropdown-button.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-btn-group ant-dropdown-button"
>
2016-11-22 14:28:05 +08:00
<button
2017-02-04 22:35:33 +08:00
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Dropdown
</span>
</button>
<button
class="ant-btn ant-dropdown-trigger ant-btn-default ant-btn-icon-only"
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-ellipsis"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-19 20:37:47 +08:00
data-icon="ellipsis"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
2018-08-24 18:36:08 +08:00
<path
d="M128 512a64 64 0 1 0 128 0 64 64 0 1 0-128 0zM448 512a64 64 0 1 0 128 0 64 64 0 1 0-128 0zM768 512a64 64 0 1 0 128 0 64 64 0 1 0-128 0z"
2018-07-19 20:37:47 +08:00
/>
</svg>
</i>
</button>
2016-11-22 14:28:05 +08:00
</div>
<div
class="ant-btn-group ant-dropdown-button"
2017-09-20 16:26:18 +08:00
style="margin-left:8px"
>
2016-11-22 14:28:05 +08:00
<button
2017-02-04 22:35:33 +08:00
class="ant-btn ant-btn-default"
2016-11-22 14:28:05 +08:00
disabled=""
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Dropdown
</span>
</button>
<button
class="ant-btn ant-dropdown-trigger ant-btn-default ant-btn-icon-only"
disabled=""
type="button"
>
2018-07-19 20:37:47 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-ellipsis"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-19 20:37:47 +08:00
data-icon="ellipsis"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
2018-08-24 18:36:08 +08:00
<path
d="M128 512a64 64 0 1 0 128 0 64 64 0 1 0-128 0zM448 512a64 64 0 1 0 128 0 64 64 0 1 0-128 0zM768 512a64 64 0 1 0 128 0 64 64 0 1 0-128 0z"
2018-07-19 20:37:47 +08:00
/>
</svg>
</i>
2016-11-22 14:28:05 +08:00
</button>
</div>
<button
class="ant-btn ant-dropdown-trigger"
2017-09-20 16:26:18 +08:00
style="margin-left:8px"
type="button"
2017-09-15 16:14:26 +08:00
>
<span>
Button
</span>
2018-07-19 20:37:47 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-down"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-19 20:37:47 +08:00
data-icon="down"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
<path
2018-08-24 18:36:08 +08:00
d="M895.7 300.1c0 9.6-3.2 19.3-9.6 27.4L545.2 751.3c-8.3 10.3-20.8 16.3-34.1 16.3-13.2 0-25.8-6-34-16.3L138 329.3c-15.1-18.8-12.1-46.3 6.7-61.4 18.8-15.1 46.3-12.1 61.4 6.7l305.1 379.6L818 272.7c15.1-18.8 42.6-21.8 61.4-6.7 10.7 8.7 16.3 21.3 16.3 34.1z"
2018-07-19 20:37:47 +08:00
/>
</svg>
</i>
</button>
2017-09-15 16:14:26 +08:00
</div>
2016-11-22 14:28:05 +08:00
`;
exports[`renders ./components/dropdown/demo/event.md correctly 1`] = `
<a
class="ant-dropdown-link ant-dropdown-trigger"
href="#"
>
Hover me, Click menu item
2018-07-19 20:37:47 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-down"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-19 20:37:47 +08:00
data-icon="down"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
<path
2018-08-24 18:36:08 +08:00
d="M895.7 300.1c0 9.6-3.2 19.3-9.6 27.4L545.2 751.3c-8.3 10.3-20.8 16.3-34.1 16.3-13.2 0-25.8-6-34-16.3L138 329.3c-15.1-18.8-12.1-46.3 6.7-61.4 18.8-15.1 46.3-12.1 61.4 6.7l305.1 379.6L818 272.7c15.1-18.8 42.6-21.8 61.4-6.7 10.7 8.7 16.3 21.3 16.3 34.1z"
2018-07-19 20:37:47 +08:00
/>
</svg>
</i>
</a>
`;
exports[`renders ./components/dropdown/demo/item.md correctly 1`] = `
<a
class="ant-dropdown-link ant-dropdown-trigger"
href="#"
>
Hover me
2018-07-19 20:37:47 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-down"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-19 20:37:47 +08:00
data-icon="down"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
<path
2018-08-24 18:36:08 +08:00
d="M895.7 300.1c0 9.6-3.2 19.3-9.6 27.4L545.2 751.3c-8.3 10.3-20.8 16.3-34.1 16.3-13.2 0-25.8-6-34-16.3L138 329.3c-15.1-18.8-12.1-46.3 6.7-61.4 18.8-15.1 46.3-12.1 61.4 6.7l305.1 379.6L818 272.7c15.1-18.8 42.6-21.8 61.4-6.7 10.7 8.7 16.3 21.3 16.3 34.1z"
2018-07-19 20:37:47 +08:00
/>
</svg>
</i>
</a>
2016-11-22 14:28:05 +08:00
`;
exports[`renders ./components/dropdown/demo/overlay-visible.md correctly 1`] = `
<a
class="ant-dropdown-link ant-dropdown-trigger"
href="#"
>
Hover me
2018-07-19 20:37:47 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-down"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-19 20:37:47 +08:00
data-icon="down"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
<path
2018-08-24 18:36:08 +08:00
d="M895.7 300.1c0 9.6-3.2 19.3-9.6 27.4L545.2 751.3c-8.3 10.3-20.8 16.3-34.1 16.3-13.2 0-25.8-6-34-16.3L138 329.3c-15.1-18.8-12.1-46.3 6.7-61.4 18.8-15.1 46.3-12.1 61.4 6.7l305.1 379.6L818 272.7c15.1-18.8 42.6-21.8 61.4-6.7 10.7 8.7 16.3 21.3 16.3 34.1z"
2018-07-19 20:37:47 +08:00
/>
</svg>
</i>
</a>
2016-11-22 14:28:05 +08:00
`;
exports[`renders ./components/dropdown/demo/placement.md correctly 1`] = `
<div>
<button
class="ant-btn ant-dropdown-trigger"
type="button"
>
<span>
bottomLeft
</span>
</button>
<button
class="ant-btn ant-dropdown-trigger"
type="button"
>
<span>
bottomCenter
</span>
</button>
<button
class="ant-btn ant-dropdown-trigger"
type="button"
>
<span>
bottomRight
</span>
</button>
<br />
<button
class="ant-btn ant-dropdown-trigger"
type="button"
>
<span>
topLeft
</span>
</button>
<button
class="ant-btn ant-dropdown-trigger"
type="button"
>
<span>
topCenter
</span>
</button>
<button
class="ant-btn ant-dropdown-trigger"
type="button"
>
<span>
topRight
</span>
</button>
</div>
`;
exports[`renders ./components/dropdown/demo/sub-menu.md correctly 1`] = `
<a
class="ant-dropdown-link ant-dropdown-trigger"
href="#"
>
Cascading menu
2018-07-19 20:37:47 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-down"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-19 20:37:47 +08:00
data-icon="down"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
<path
2018-08-24 18:36:08 +08:00
d="M895.7 300.1c0 9.6-3.2 19.3-9.6 27.4L545.2 751.3c-8.3 10.3-20.8 16.3-34.1 16.3-13.2 0-25.8-6-34-16.3L138 329.3c-15.1-18.8-12.1-46.3 6.7-61.4 18.8-15.1 46.3-12.1 61.4 6.7l305.1 379.6L818 272.7c15.1-18.8 42.6-21.8 61.4-6.7 10.7 8.7 16.3 21.3 16.3 34.1z"
2018-07-19 20:37:47 +08:00
/>
</svg>
</i>
</a>
`;
exports[`renders ./components/dropdown/demo/trigger.md correctly 1`] = `
2017-10-09 13:32:11 +08:00
<a
class="ant-dropdown-link ant-dropdown-trigger"
href="#"
>
Click me
2018-07-19 20:37:47 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-down"
2018-07-18 10:33:54 +08:00
>
2018-07-19 20:37:47 +08:00
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-19 20:37:47 +08:00
data-icon="down"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-19 20:37:47 +08:00
>
<path
2018-08-24 18:36:08 +08:00
d="M895.7 300.1c0 9.6-3.2 19.3-9.6 27.4L545.2 751.3c-8.3 10.3-20.8 16.3-34.1 16.3-13.2 0-25.8-6-34-16.3L138 329.3c-15.1-18.8-12.1-46.3 6.7-61.4 18.8-15.1 46.3-12.1 61.4 6.7l305.1 379.6L818 272.7c15.1-18.8 42.6-21.8 61.4-6.7 10.7 8.7 16.3 21.3 16.3 34.1z"
2018-07-19 20:37:47 +08:00
/>
</svg>
</i>
2017-10-09 13:32:11 +08:00
</a>
2016-11-22 14:28:05 +08:00
`;