2019-01-23 10:41:07 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2020-11-30 15:20:42 +08:00
|
|
|
exports[`Collapse could override default openMotion 1`] = `
|
2020-03-18 20:44:18 +08:00
|
|
|
<div
|
2022-05-27 16:07:32 +08:00
|
|
|
class="ant-collapse ant-collapse-icon-position-start"
|
2020-03-18 20:44:18 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-collapse-item ant-collapse-item-active"
|
|
|
|
>
|
|
|
|
<div
|
2022-07-01 20:00:25 +08:00
|
|
|
aria-disabled="false"
|
2020-03-18 20:44:18 +08:00
|
|
|
aria-expanded="true"
|
|
|
|
class="ant-collapse-header"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
2022-05-27 23:18:36 +08:00
|
|
|
<div
|
|
|
|
class="ant-collapse-expand-icon"
|
|
|
|
>
|
2021-10-14 17:16:38 +08:00
|
|
|
<span
|
|
|
|
aria-label="right"
|
|
|
|
class="anticon anticon-right ant-collapse-arrow"
|
|
|
|
role="img"
|
2020-03-18 20:44:18 +08:00
|
|
|
>
|
2021-10-14 17:16:38 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="right"
|
|
|
|
fill="currentColor"
|
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
style="transform: rotate(90deg);"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-05-27 23:18:36 +08:00
|
|
|
<span
|
|
|
|
class="ant-collapse-header-text"
|
|
|
|
>
|
|
|
|
This is panel header 1
|
|
|
|
</span>
|
2020-03-18 20:44:18 +08:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-collapse-content ant-collapse-content-active"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-collapse-content-box"
|
|
|
|
>
|
|
|
|
content
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2019-02-13 19:32:49 +08:00
|
|
|
exports[`Collapse should render extra node of panel 1`] = `
|
|
|
|
<div
|
2022-05-27 16:07:32 +08:00
|
|
|
class="ant-collapse ant-collapse-icon-position-start"
|
2019-02-13 19:32:49 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-collapse-item"
|
|
|
|
>
|
|
|
|
<div
|
2022-07-01 20:00:25 +08:00
|
|
|
aria-disabled="false"
|
2019-02-13 19:32:49 +08:00
|
|
|
aria-expanded="false"
|
|
|
|
class="ant-collapse-header"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
2022-05-27 23:18:36 +08:00
|
|
|
<div
|
|
|
|
class="ant-collapse-expand-icon"
|
|
|
|
>
|
2021-10-14 17:16:38 +08:00
|
|
|
<span
|
|
|
|
aria-label="right"
|
|
|
|
class="anticon anticon-right ant-collapse-arrow"
|
|
|
|
role="img"
|
2019-02-13 19:32:49 +08:00
|
|
|
>
|
2021-10-14 17:16:38 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="right"
|
|
|
|
fill="currentColor"
|
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-05-27 23:18:36 +08:00
|
|
|
<span
|
|
|
|
class="ant-collapse-header-text"
|
|
|
|
>
|
|
|
|
header
|
|
|
|
</span>
|
2019-02-13 19:32:49 +08:00
|
|
|
<div
|
|
|
|
class="ant-collapse-extra"
|
|
|
|
>
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
action
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-collapse-item"
|
|
|
|
>
|
|
|
|
<div
|
2022-07-01 20:00:25 +08:00
|
|
|
aria-disabled="false"
|
2019-02-13 19:32:49 +08:00
|
|
|
aria-expanded="false"
|
|
|
|
class="ant-collapse-header"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
2022-05-27 23:18:36 +08:00
|
|
|
<div
|
|
|
|
class="ant-collapse-expand-icon"
|
|
|
|
>
|
2021-10-14 17:16:38 +08:00
|
|
|
<span
|
|
|
|
aria-label="right"
|
|
|
|
class="anticon anticon-right ant-collapse-arrow"
|
|
|
|
role="img"
|
2019-02-13 19:32:49 +08:00
|
|
|
>
|
2021-10-14 17:16:38 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="right"
|
|
|
|
fill="currentColor"
|
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
|
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-05-27 23:18:36 +08:00
|
|
|
<span
|
|
|
|
class="ant-collapse-header-text"
|
|
|
|
>
|
|
|
|
header
|
|
|
|
</span>
|
2019-02-13 19:32:49 +08:00
|
|
|
<div
|
|
|
|
class="ant-collapse-extra"
|
|
|
|
>
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
action
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2019-01-23 10:41:07 +08:00
|
|
|
exports[`Collapse should support remove expandIcon 1`] = `
|
|
|
|
<div
|
2022-05-27 16:07:32 +08:00
|
|
|
class="ant-collapse ant-collapse-icon-position-start"
|
2019-01-23 10:41:07 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-collapse-item"
|
|
|
|
>
|
|
|
|
<div
|
2022-07-01 20:00:25 +08:00
|
|
|
aria-disabled="false"
|
2019-01-23 10:41:07 +08:00
|
|
|
aria-expanded="false"
|
|
|
|
class="ant-collapse-header"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
2022-05-27 23:18:36 +08:00
|
|
|
<span
|
|
|
|
class="ant-collapse-header-text"
|
|
|
|
>
|
|
|
|
header
|
|
|
|
</span>
|
2019-01-23 10:41:07 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|