2017-03-17 18:56:30 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2023-03-10 11:50:12 +08:00
|
|
|
exports[`renders components/affix/demo/basic.tsx correctly 1`] = `
|
2020-06-17 11:51:06 +08:00
|
|
|
Array [
|
2016-11-22 14:28:05 +08:00
|
|
|
<div>
|
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class=""
|
|
|
|
>
|
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>
|
|
|
|
Affix top
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
2020-06-17 11:51:06 +08:00
|
|
|
</div>,
|
|
|
|
<br />,
|
2016-11-22 14:28:05 +08:00
|
|
|
<div>
|
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class=""
|
|
|
|
>
|
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>
|
|
|
|
Affix bottom
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
2020-06-17 11:51:06 +08:00
|
|
|
</div>,
|
|
|
|
]
|
2016-11-22 14:28:05 +08:00
|
|
|
`;
|
|
|
|
|
2023-03-10 11:50:12 +08:00
|
|
|
exports[`renders components/affix/demo/debug.tsx correctly 1`] = `
|
2019-07-16 20:48:03 +08:00
|
|
|
<div
|
2022-10-08 16:17:20 +08:00
|
|
|
style="height:10000px"
|
2019-07-16 20:48:03 +08:00
|
|
|
>
|
|
|
|
<div>
|
|
|
|
Top
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class=""
|
|
|
|
>
|
|
|
|
<div
|
2022-10-08 16:17:20 +08:00
|
|
|
style="background:red"
|
2019-07-16 20:48:03 +08:00
|
|
|
>
|
|
|
|
<button
|
|
|
|
class="ant-btn ant-btn-primary"
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
Affix top
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
Bottom
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-03-10 11:50:12 +08:00
|
|
|
exports[`renders components/affix/demo/on-change.tsx correctly 1`] = `
|
2016-11-22 14:28:05 +08:00
|
|
|
<div>
|
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class=""
|
|
|
|
>
|
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>
|
|
|
|
120px to affix top
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-03-10 11:50:12 +08:00
|
|
|
exports[`renders components/affix/demo/target.tsx correctly 1`] = `
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="scrollable-container"
|
|
|
|
>
|
2016-11-22 14:28:05 +08:00
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class="background"
|
|
|
|
>
|
2016-12-03 16:23:35 +08:00
|
|
|
<div>
|
|
|
|
<div
|
2017-03-17 18:56:30 +08:00
|
|
|
class=""
|
|
|
|
>
|
2016-12-03 16:23:35 +08:00
|
|
|
<button
|
|
|
|
class="ant-btn ant-btn-primary"
|
2017-03-17 18:56:30 +08:00
|
|
|
type="button"
|
|
|
|
>
|
2016-12-03 16:23:35 +08:00
|
|
|
<span>
|
|
|
|
Fixed at the top of container
|
|
|
|
</span>
|
|
|
|
</button>
|
2016-11-22 14:28:05 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|