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

204 lines
3.3 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/popover/demo/arrow-point-at-center.md correctly 1`] = `
Array [
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Align edge / 边缘对齐
</span>
</button>,
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Arrow points to center / 箭头指向中心
</span>
</button>,
]
2016-11-22 14:28:05 +08:00
`;
exports[`renders ./components/popover/demo/basic.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Hover me
</span>
</button>
`;
exports[`renders ./components/popover/demo/control.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-primary"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
2017-01-25 21:27:14 +08:00
Click me
2016-11-22 14:28:05 +08:00
</span>
</button>
`;
exports[`renders ./components/popover/demo/hover-with-click.md correctly 1`] = `
<button
class="ant-btn ant-btn-default"
type="button"
>
<span>
Hover and click / 悬停并单击
</span>
</button>
`;
exports[`renders ./components/popover/demo/placement.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="demo"
>
2016-11-22 14:28:05 +08:00
<div
2017-09-20 16:26:18 +08:00
style="margin-left:70px;white-space:nowrap"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
TL
</span>
</button>
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Top
</span>
</button>
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
TR
</span>
</button>
</div>
<div
2017-09-20 16:26:18 +08:00
style="width:70px;float:left"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
LT
</span>
</button>
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Left
</span>
</button>
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
LB
</span>
</button>
</div>
<div
2017-09-20 16:26:18 +08:00
style="width:70px;margin-left:304px"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
RT
</span>
</button>
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Right
</span>
</button>
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
RB
</span>
</button>
</div>
<div
2017-09-20 16:26:18 +08:00
style="margin-left:70px;clear:both;white-space:nowrap"
>
2016-11-22 14:28:05 +08:00
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
BL
</span>
</button>
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Bottom
</span>
</button>
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
BR
</span>
</button>
</div>
</div>
`;
exports[`renders ./components/popover/demo/triggerType.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Hover me
</span>
</button>
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Focus me
</span>
</button>
<button
class="ant-btn ant-btn-default"
type="button"
>
2016-11-22 14:28:05 +08:00
<span>
Click me
</span>
</button>
</div>
`;