2018-03-23 19:19:29 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2020-01-02 19:10:16 +08:00
|
|
|
exports[`Slider rtl render component should be rendered correctly in RTL direction 1`] = `
|
|
|
|
<div
|
|
|
|
class="ant-slider ant-slider-rtl"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-slider-rail"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-slider-track"
|
|
|
|
style="right:0%;left:auto;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%;left:auto;transform:translateX(+50%)"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-slider-mark"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Slider should render in RTL direction 1`] = `
|
|
|
|
<div
|
|
|
|
class="ant-slider ant-slider-rtl"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-slider-rail"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-slider-track"
|
|
|
|
style="right:0%;left:auto;width:30%"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-slider-step"
|
|
|
|
/>
|
|
|
|
<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%;left:auto;transform:translateX(+50%)"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip ant-slider-tooltip ant-tooltip-rtl"
|
2020-08-28 21:43:44 +08:00
|
|
|
style="opacity:0;pointer-events:none"
|
2020-01-02 19:10:16 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-arrow"
|
2020-05-25 18:59:00 +08:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-tooltip-arrow-content"
|
|
|
|
/>
|
|
|
|
</div>
|
2020-01-02 19:10:16 +08:00
|
|
|
<div
|
|
|
|
class="ant-tooltip-inner"
|
|
|
|
role="tooltip"
|
|
|
|
>
|
|
|
|
30
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-slider-mark"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2020-07-30 20:59:41 +08:00
|
|
|
exports[`Slider should show correct placement tooltip when set tooltipPlacement 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip ant-slider-tooltip"
|
2020-08-28 21:43:44 +08:00
|
|
|
style="opacity:0;pointer-events:none"
|
2020-07-30 20:59:41 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-arrow"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-tooltip-arrow-content"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-inner"
|
|
|
|
role="tooltip"
|
|
|
|
>
|
|
|
|
30
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Slider should show correct placement tooltip when set tooltipPlacement 2`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip ant-slider-tooltip ant-tooltip-hidden"
|
2020-09-08 11:34:29 +08:00
|
|
|
style="pointer-events:none"
|
2020-07-30 20:59:41 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-arrow"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-tooltip-arrow-content"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-inner"
|
|
|
|
role="tooltip"
|
|
|
|
>
|
|
|
|
30
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2018-03-23 19:19:29 +08:00
|
|
|
exports[`Slider should show tooltip when hovering slider handler 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
2019-12-05 16:15:10 +08:00
|
|
|
class="ant-tooltip ant-slider-tooltip"
|
2020-08-28 21:43:44 +08:00
|
|
|
style="opacity:0;pointer-events:none"
|
2018-03-23 19:19:29 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-arrow"
|
2020-05-25 18:59:00 +08:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-tooltip-arrow-content"
|
|
|
|
/>
|
|
|
|
</div>
|
2018-03-23 19:19:29 +08:00
|
|
|
<div
|
|
|
|
class="ant-tooltip-inner"
|
2018-09-16 15:46:25 +08:00
|
|
|
role="tooltip"
|
2018-03-23 19:19:29 +08:00
|
|
|
>
|
|
|
|
30
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Slider should show tooltip when hovering slider handler 2`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
2019-12-05 16:15:10 +08:00
|
|
|
class="ant-tooltip ant-slider-tooltip ant-tooltip-hidden"
|
2020-09-08 11:34:29 +08:00
|
|
|
style="pointer-events:none"
|
2018-03-23 19:19:29 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-tooltip-arrow"
|
2020-05-25 18:59:00 +08:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-tooltip-arrow-content"
|
|
|
|
/>
|
|
|
|
</div>
|
2018-03-23 19:19:29 +08:00
|
|
|
<div
|
|
|
|
class="ant-tooltip-inner"
|
2018-09-16 15:46:25 +08:00
|
|
|
role="tooltip"
|
2018-03-23 19:19:29 +08:00
|
|
|
>
|
|
|
|
30
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|