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/tooltip/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>,
|
|
|
|
]
|
2017-07-07 19:45:59 +08:00
|
|
|
`;
|
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
exports[`renders ./components/tooltip/demo/auto-adjust-overflow.tsx correctly 1`] = `
|
2017-07-07 19:45:59 +08:00
|
|
|
<div
|
2022-10-08 16:17:20 +08:00
|
|
|
style="overflow:hidden;position:relative;padding:24px;border:1px solid #e9e9e9"
|
2017-07-07 19:45:59 +08:00
|
|
|
>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-07-07 19:45:59 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
Adjust automatically / 自动调整
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<br />
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-07-07 19:45:59 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
2019-04-20 23:38:02 +08:00
|
|
|
Ignore / 不处理
|
2017-07-07 19:45:59 +08:00
|
|
|
</span>
|
|
|
|
</button>
|
2016-11-22 14:28:05 +08:00
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
exports[`renders ./components/tooltip/demo/basic.tsx correctly 1`] = `
|
2016-11-22 14:28:05 +08:00
|
|
|
<span>
|
2019-04-20 23:38:02 +08:00
|
|
|
Tooltip will show on mouse enter.
|
2016-11-22 14:28:05 +08:00
|
|
|
</span>
|
|
|
|
`;
|
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
exports[`renders ./components/tooltip/demo/colorful.tsx correctly 1`] = `
|
2020-05-25 18:59:00 +08:00
|
|
|
Array [
|
|
|
|
<div
|
|
|
|
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
|
|
|
|
role="separator"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-divider-inner-text"
|
|
|
|
>
|
|
|
|
Presets
|
|
|
|
</span>
|
|
|
|
</div>,
|
|
|
|
<div>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
pink
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
red
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
yellow
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
orange
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
cyan
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
green
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
blue
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
purple
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
geekblue
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
magenta
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
volcano
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
gold
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
lime
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>,
|
|
|
|
<div
|
|
|
|
class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-left"
|
|
|
|
role="separator"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-divider-inner-text"
|
|
|
|
>
|
|
|
|
Custom
|
|
|
|
</span>
|
|
|
|
</div>,
|
|
|
|
<div>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
#f50
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
#2db7f5
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
#87d068
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2020-05-25 18:59:00 +08:00
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
#108ee9
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>,
|
|
|
|
]
|
|
|
|
`;
|
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
exports[`renders ./components/tooltip/demo/destroy-tooltip-on-hide.tsx correctly 1`] = `
|
2020-05-22 00:20:01 +08:00
|
|
|
<span>
|
|
|
|
Tooltip will destroy when hidden.
|
|
|
|
</span>
|
|
|
|
`;
|
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
exports[`renders ./components/tooltip/demo/placement.tsx correctly 1`] = `
|
2017-10-16 19:53:46 +08:00
|
|
|
<div
|
|
|
|
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
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-10-16 19:53:46 +08:00
|
|
|
type="button"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<span>
|
|
|
|
TL
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-10-16 19:53:46 +08:00
|
|
|
type="button"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<span>
|
|
|
|
Top
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-10-16 19:53:46 +08:00
|
|
|
type="button"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<span>
|
|
|
|
TR
|
|
|
|
</span>
|
|
|
|
</button>
|
2016-11-22 14:28:05 +08:00
|
|
|
</div>
|
|
|
|
<div
|
2022-10-08 16:17:20 +08:00
|
|
|
style="width:70px;float:left"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-10-16 19:53:46 +08:00
|
|
|
type="button"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<span>
|
|
|
|
LT
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-10-16 19:53:46 +08:00
|
|
|
type="button"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<span>
|
|
|
|
Left
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-10-16 19:53:46 +08:00
|
|
|
type="button"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<span>
|
|
|
|
LB
|
|
|
|
</span>
|
|
|
|
</button>
|
2016-11-22 14:28:05 +08:00
|
|
|
</div>
|
|
|
|
<div
|
2022-10-08 16:17:20 +08:00
|
|
|
style="width:70px;margin-left:304px"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-10-16 19:53:46 +08:00
|
|
|
type="button"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<span>
|
|
|
|
RT
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-10-16 19:53:46 +08:00
|
|
|
type="button"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<span>
|
|
|
|
Right
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-10-16 19:53:46 +08:00
|
|
|
type="button"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<span>
|
|
|
|
RB
|
|
|
|
</span>
|
|
|
|
</button>
|
2016-11-22 14:28:05 +08:00
|
|
|
</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
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-10-16 19:53:46 +08:00
|
|
|
type="button"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<span>
|
|
|
|
BL
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-10-16 19:53:46 +08:00
|
|
|
type="button"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<span>
|
|
|
|
Bottom
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<button
|
2022-02-11 15:02:59 +08:00
|
|
|
class="ant-btn ant-btn-default"
|
2017-10-16 19:53:46 +08:00
|
|
|
type="button"
|
2017-03-17 18:56:30 +08:00
|
|
|
>
|
2017-10-16 19:53:46 +08:00
|
|
|
<span>
|
|
|
|
BR
|
|
|
|
</span>
|
|
|
|
</button>
|
2016-11-22 14:28:05 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
2022-07-13 23:06:28 +08:00
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
exports[`renders ./components/tooltip/demo/render-panel.tsx correctly 1`] = `
|
2022-07-13 23:06:28 +08:00
|
|
|
Array [
|
2022-09-22 16:55:55 +08:00
|
|
|
<div
|
|
|
|
class="ant-tooltip ant-tooltip-pure ant-tooltip-placement-top ant-tooltip-pink"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-arrow"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-inner"
|
|
|
|
role="tooltip"
|
|
|
|
>
|
|
|
|
Hello, Pink Pure Panel!
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>,
|
2022-07-13 23:06:28 +08:00
|
|
|
<div
|
|
|
|
class="ant-tooltip ant-tooltip-pure ant-tooltip-placement-top"
|
2022-10-11 21:33:29 +08:00
|
|
|
style="--antd-arrow-background-color:#f50"
|
2022-07-13 23:06:28 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-arrow"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-inner"
|
|
|
|
role="tooltip"
|
2022-10-11 21:33:29 +08:00
|
|
|
style="background:#f50"
|
2022-07-13 23:06:28 +08:00
|
|
|
>
|
2022-09-22 16:55:55 +08:00
|
|
|
Hello, Customize Color Pure Panel!
|
2022-07-13 23:06:28 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>,
|
|
|
|
<div
|
|
|
|
class="ant-tooltip ant-tooltip-pure ant-tooltip-placement-bottomLeft"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-content"
|
2022-10-11 21:33:29 +08:00
|
|
|
style="width:200px"
|
2022-07-13 23:06:28 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-arrow"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-inner"
|
|
|
|
role="tooltip"
|
|
|
|
>
|
|
|
|
Hello, Pure Panel!
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>,
|
|
|
|
]
|
|
|
|
`;
|