2017-03-17 18:56:30 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
exports[`renders ./components/popover/demo/arrow-point-at-center.tsx correctly 1`] = `
|
2021-06-30 11:48:11 +08:00
|
|
|
Array [
|
2016-11-22 14:28:05 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
Align edge / 边缘对齐
|
|
|
|
</span>
|
2021-06-30 11:48:11 +08:00
|
|
|
</button>,
|
2016-11-22 14:28:05 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
Arrow points to center / 箭头指向中心
|
|
|
|
</span>
|
2021-06-30 11:48:11 +08:00
|
|
|
</button>,
|
|
|
|
]
|
2016-11-22 14:28:05 +08:00
|
|
|
`;
|
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
exports[`renders ./components/popover/demo/basic.tsx correctly 1`] = `
|
2016-11-22 14:28:05 +08:00
|
|
|
<button
|
|
|
|
class="ant-btn ant-btn-primary"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
Hover me
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
`;
|
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
exports[`renders ./components/popover/demo/control.tsx correctly 1`] = `
|
2016-11-22 14:28:05 +08:00
|
|
|
<button
|
|
|
|
class="ant-btn ant-btn-primary"
|
2017-03-17 18:56:30 +08:00
|
|
|
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>
|
|
|
|
`;
|
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
exports[`renders ./components/popover/demo/hover-with-click.tsx correctly 1`] = `
|
2018-07-29 07:34:49 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2018-07-29 07:34:49 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
Hover and click / 悬停并单击
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
`;
|
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
exports[`renders ./components/popover/demo/placement.tsx correctly 1`] = `
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="demo"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2022-10-08 16:17:20 +08:00
|
|
|
style="margin-left:70px;white-space:nowrap"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
TL
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
Top
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
TR
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div
|
2022-10-08 16:17:20 +08:00
|
|
|
style="width:70px;float:left"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
LT
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
Left
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
LB
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div
|
2022-10-08 16:17:20 +08:00
|
|
|
style="width:70px;margin-left:304px"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
RT
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
Right
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
RB
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div
|
2022-10-08 16:17:20 +08:00
|
|
|
style="margin-left:70px;clear:both;white-space:nowrap"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
BL
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
Bottom
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
BR
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
exports[`renders ./components/popover/demo/render-panel.tsx correctly 1`] = `
|
2022-07-14 12:06:18 +08:00
|
|
|
Array [
|
|
|
|
<div
|
|
|
|
class="ant-popover ant-popover-pure ant-popover-placement-top"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-popover-content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-popover-arrow"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-popover-inner"
|
|
|
|
role="tooltip"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-popover-title"
|
|
|
|
>
|
|
|
|
Title
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-popover-inner-content"
|
|
|
|
>
|
|
|
|
<div>
|
|
|
|
<p>
|
|
|
|
Content
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Content
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>,
|
|
|
|
<div
|
|
|
|
class="ant-popover ant-popover-pure ant-popover-placement-bottomLeft"
|
2022-11-05 10:14:59 +08:00
|
|
|
style="width:250px"
|
2022-07-14 12:06:18 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-popover-content"
|
2022-10-11 21:33:29 +08:00
|
|
|
style="width:250px"
|
2022-07-14 12:06:18 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-popover-arrow"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-popover-inner"
|
|
|
|
role="tooltip"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-popover-title"
|
|
|
|
>
|
|
|
|
Title
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-popover-inner-content"
|
|
|
|
>
|
|
|
|
<div>
|
|
|
|
<p>
|
|
|
|
Content
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Content
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>,
|
|
|
|
]
|
|
|
|
`;
|
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
exports[`renders ./components/popover/demo/triggerType.tsx correctly 1`] = `
|
2016-11-22 14:28:05 +08:00
|
|
|
<div>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
Hover me
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
Focus me
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
|
|
|
Click me
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
`;
|