2022-08-04 17:09:54 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`Slider rtl render component should be rendered correctly in RTL direction 1`] = `
|
|
|
|
<div
|
|
|
|
class="ant-slider ant-slider-rtl ant-slider-horizontal"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-slider-rail"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-slider-track"
|
|
|
|
style="right: 0%; width: 0%;"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-slider-step"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
aria-disabled="false"
|
|
|
|
aria-valuemax="100"
|
|
|
|
aria-valuemin="0"
|
|
|
|
aria-valuenow="0"
|
|
|
|
class="ant-slider-handle"
|
|
|
|
role="slider"
|
|
|
|
style="right: 0%; transform: translateX(50%);"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Slider should render in RTL direction 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="ant-slider ant-slider-rtl ant-slider-horizontal"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-slider-rail"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-slider-track"
|
|
|
|
style="right: 0%; width: 30%;"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-slider-step"
|
|
|
|
/>
|
2023-03-02 22:09:02 +08:00
|
|
|
<div
|
|
|
|
aria-disabled="false"
|
|
|
|
aria-valuemax="100"
|
|
|
|
aria-valuemin="0"
|
|
|
|
aria-valuenow="30"
|
|
|
|
class="ant-slider-handle ant-tooltip-open"
|
|
|
|
role="slider"
|
|
|
|
style="right: 30%; transform: translateX(50%);"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
2023-02-15 10:21:28 +08:00
|
|
|
<div
|
|
|
|
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-rtl ant-tooltip-placement-top"
|
|
|
|
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-arrow"
|
|
|
|
style="position: absolute; bottom: 0px; left: 0px;"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-inner"
|
|
|
|
role="tooltip"
|
|
|
|
>
|
|
|
|
30
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-04 17:09:54 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Slider should show tooltip when hovering slider handler 1`] = `
|
|
|
|
<div
|
2023-02-15 14:56:22 +08:00
|
|
|
class="ant-tooltip ant-zoom-big-fast-appear ant-zoom-big-fast-appear-prepare ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top"
|
2023-02-15 10:21:28 +08:00
|
|
|
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
|
2022-08-04 17:09:54 +08:00
|
|
|
>
|
2023-02-15 10:21:28 +08:00
|
|
|
<div
|
|
|
|
class="ant-tooltip-arrow"
|
|
|
|
style="position: absolute; bottom: 0px; left: 0px;"
|
|
|
|
/>
|
2022-08-04 17:09:54 +08:00
|
|
|
<div
|
|
|
|
class="ant-tooltip-content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-inner"
|
|
|
|
role="tooltip"
|
|
|
|
>
|
|
|
|
30
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Slider should show tooltip when hovering slider handler 2`] = `
|
|
|
|
<div
|
2023-02-15 10:21:28 +08:00
|
|
|
class="ant-tooltip ant-zoom-big-fast-leave ant-zoom-big-fast-leave-start ant-zoom-big-fast ant-slider-tooltip ant-tooltip-placement-top"
|
|
|
|
style="left: 0px; top: 0px; box-sizing: border-box; pointer-events: none;"
|
2022-08-04 17:09:54 +08:00
|
|
|
>
|
2023-02-15 10:21:28 +08:00
|
|
|
<div
|
|
|
|
class="ant-tooltip-arrow"
|
|
|
|
style="position: absolute; bottom: 0px; left: 0px;"
|
|
|
|
/>
|
2022-08-04 17:09:54 +08:00
|
|
|
<div
|
|
|
|
class="ant-tooltip-content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-inner"
|
|
|
|
role="tooltip"
|
|
|
|
>
|
|
|
|
30
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|