2023-06-07 21:59:21 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2018-06-19 17:42:25 +08:00
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Drawer className is test_drawer 1`] = `
|
2018-07-20 16:02:42 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer ant-drawer-right test_drawer ant-drawer-open ant-drawer-inline"
|
|
|
|
tabindex="-1"
|
2018-07-20 16:02:42 +08:00
|
|
|
>
|
2018-06-26 11:19:49 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-mask"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="start"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
|
|
|
<div
|
2022-08-17 11:16:01 +08:00
|
|
|
class="ant-drawer-content-wrapper"
|
2022-07-27 16:50:55 +08:00
|
|
|
style="width: 378px;"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
aria-modal="true"
|
|
|
|
class="ant-drawer-content"
|
|
|
|
role="dialog"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
2018-06-25 23:25:38 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-wrapper-body"
|
2018-06-25 23:25:38 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-header ant-drawer-header-close-only"
|
2018-06-25 23:25:38 +08:00
|
|
|
>
|
2019-01-02 13:53:19 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-header-title"
|
2018-08-05 14:16:08 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<button
|
|
|
|
aria-label="Close"
|
|
|
|
class="ant-drawer-close"
|
|
|
|
type="button"
|
2018-08-13 14:46:55 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<span
|
|
|
|
aria-label="close"
|
|
|
|
class="anticon anticon-close"
|
|
|
|
role="img"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="close"
|
|
|
|
fill="currentColor"
|
2023-08-02 02:15:02 +08:00
|
|
|
fill-rule="evenodd"
|
2022-07-25 21:04:43 +08:00
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<path
|
2023-08-02 02:15:02 +08:00
|
|
|
d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"
|
2022-07-25 21:04:43 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
</button>
|
2018-06-25 23:25:38 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-25 21:04:43 +08:00
|
|
|
<div
|
|
|
|
class="ant-drawer-body"
|
|
|
|
>
|
|
|
|
Here is content of Drawer
|
|
|
|
</div>
|
2018-06-25 23:25:38 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-25 21:04:43 +08:00
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="end"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
2018-06-25 23:25:38 +08:00
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Drawer closable is false 1`] = `
|
2018-07-20 16:02:42 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer ant-drawer-right ant-drawer-open ant-drawer-inline"
|
|
|
|
tabindex="-1"
|
2018-07-20 16:02:42 +08:00
|
|
|
>
|
2018-06-26 11:19:49 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-mask"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="start"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
|
|
|
<div
|
2022-08-17 11:16:01 +08:00
|
|
|
class="ant-drawer-content-wrapper"
|
2022-07-27 16:50:55 +08:00
|
|
|
style="width: 378px;"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
aria-modal="true"
|
|
|
|
class="ant-drawer-content"
|
|
|
|
role="dialog"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-wrapper-body"
|
2018-07-18 15:52:51 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-body"
|
2018-07-20 13:31:30 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
Here is content of Drawer
|
2018-07-20 13:31:30 +08:00
|
|
|
</div>
|
2018-07-18 15:52:51 +08:00
|
|
|
</div>
|
2018-06-26 11:19:49 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-25 21:04:43 +08:00
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="end"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
2018-06-25 23:25:38 +08:00
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Drawer destroyOnClose is true 1`] = `null`;
|
2022-07-25 21:04:43 +08:00
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Drawer getContainer return undefined 1`] = `<div />`;
|
2022-07-25 21:04:43 +08:00
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Drawer getContainer return undefined 2`] = `
|
2022-07-25 21:04:43 +08:00
|
|
|
<div>
|
2018-06-26 11:19:49 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer ant-drawer-right ant-drawer-open ant-drawer-inline"
|
2019-05-21 11:13:27 +08:00
|
|
|
tabindex="-1"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-mask"
|
|
|
|
/>
|
2022-07-25 21:04:43 +08:00
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="start"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
2018-06-26 11:19:49 +08:00
|
|
|
<div
|
2022-08-17 11:16:01 +08:00
|
|
|
class="ant-drawer-content-wrapper"
|
2022-07-27 16:50:55 +08:00
|
|
|
style="width: 400px;"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
2018-06-25 23:25:38 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
aria-modal="true"
|
2018-06-26 11:19:49 +08:00
|
|
|
class="ant-drawer-content"
|
2022-07-25 21:04:43 +08:00
|
|
|
role="dialog"
|
2018-06-25 23:25:38 +08:00
|
|
|
>
|
|
|
|
<div
|
2018-07-20 18:51:10 +08:00
|
|
|
class="ant-drawer-wrapper-body"
|
2018-06-25 23:25:38 +08:00
|
|
|
>
|
2019-01-02 13:53:19 +08:00
|
|
|
<div
|
2021-06-11 08:39:17 +08:00
|
|
|
class="ant-drawer-header ant-drawer-header-close-only"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
2021-06-11 08:39:17 +08:00
|
|
|
<div
|
|
|
|
class="ant-drawer-header-title"
|
2018-08-13 14:46:55 +08:00
|
|
|
>
|
2021-06-11 08:39:17 +08:00
|
|
|
<button
|
|
|
|
aria-label="Close"
|
|
|
|
class="ant-drawer-close"
|
|
|
|
type="button"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2021-06-11 08:39:17 +08:00
|
|
|
<span
|
|
|
|
aria-label="close"
|
|
|
|
class="anticon anticon-close"
|
|
|
|
role="img"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2021-06-11 08:39:17 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="close"
|
|
|
|
fill="currentColor"
|
2023-08-02 02:15:02 +08:00
|
|
|
fill-rule="evenodd"
|
2021-06-11 08:39:17 +08:00
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
2023-08-02 02:15:02 +08:00
|
|
|
d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"
|
2021-06-11 08:39:17 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
2019-01-02 13:53:19 +08:00
|
|
|
</div>
|
2018-06-26 11:19:49 +08:00
|
|
|
<div
|
|
|
|
class="ant-drawer-body"
|
|
|
|
>
|
|
|
|
Here is content of Drawer
|
|
|
|
</div>
|
2018-06-25 23:25:38 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-07 19:05:44 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="end"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
2020-06-07 19:05:44 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Drawer have a footer 1`] = `
|
2020-01-06 14:56:00 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer ant-drawer-right ant-drawer-open ant-drawer-inline"
|
|
|
|
tabindex="-1"
|
2020-01-06 14:56:00 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-mask"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="start"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
|
|
|
<div
|
2022-08-17 11:16:01 +08:00
|
|
|
class="ant-drawer-content-wrapper"
|
2022-07-27 16:50:55 +08:00
|
|
|
style="width: 378px;"
|
2020-01-06 14:56:00 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
aria-modal="true"
|
|
|
|
class="ant-drawer-content"
|
|
|
|
role="dialog"
|
2020-01-06 14:56:00 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-wrapper-body"
|
2020-01-06 14:56:00 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-header ant-drawer-header-close-only"
|
2020-01-06 14:56:00 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-header-title"
|
2020-01-06 14:56:00 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<button
|
|
|
|
aria-label="Close"
|
|
|
|
class="ant-drawer-close"
|
|
|
|
type="button"
|
2020-01-06 14:56:00 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<span
|
|
|
|
aria-label="close"
|
|
|
|
class="anticon anticon-close"
|
|
|
|
role="img"
|
2020-01-06 14:56:00 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="close"
|
|
|
|
fill="currentColor"
|
2023-08-02 02:15:02 +08:00
|
|
|
fill-rule="evenodd"
|
2022-07-25 21:04:43 +08:00
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
2020-01-06 14:56:00 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<path
|
2023-08-02 02:15:02 +08:00
|
|
|
d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"
|
2022-07-25 21:04:43 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
</button>
|
2020-01-06 14:56:00 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-25 21:04:43 +08:00
|
|
|
<div
|
|
|
|
class="ant-drawer-body"
|
|
|
|
>
|
|
|
|
Here is content of Drawer
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-footer"
|
|
|
|
>
|
|
|
|
Test Footer
|
|
|
|
</div>
|
2020-01-06 14:56:00 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-25 21:04:43 +08:00
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="end"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
2020-01-06 14:56:00 +08:00
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Drawer have a title 1`] = `
|
2018-07-20 16:02:42 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer ant-drawer-right ant-drawer-open ant-drawer-inline"
|
|
|
|
tabindex="-1"
|
2018-07-20 16:02:42 +08:00
|
|
|
>
|
2018-06-26 11:19:49 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-mask"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="start"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
|
|
|
<div
|
2022-08-17 11:16:01 +08:00
|
|
|
class="ant-drawer-content-wrapper"
|
2022-07-27 16:50:55 +08:00
|
|
|
style="width: 378px;"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
aria-modal="true"
|
|
|
|
class="ant-drawer-content"
|
|
|
|
role="dialog"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
2018-06-19 17:42:25 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-wrapper-body"
|
2018-06-19 17:42:25 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-header"
|
2018-06-19 17:42:25 +08:00
|
|
|
>
|
2018-08-05 14:16:08 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-header-title"
|
2018-08-05 14:16:08 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<button
|
|
|
|
aria-label="Close"
|
|
|
|
class="ant-drawer-close"
|
|
|
|
type="button"
|
2018-08-05 14:16:08 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<span
|
|
|
|
aria-label="close"
|
|
|
|
class="anticon anticon-close"
|
|
|
|
role="img"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="close"
|
|
|
|
fill="currentColor"
|
2023-08-02 02:15:02 +08:00
|
|
|
fill-rule="evenodd"
|
2022-07-25 21:04:43 +08:00
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<path
|
2023-08-02 02:15:02 +08:00
|
|
|
d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"
|
2022-07-25 21:04:43 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-title"
|
|
|
|
>
|
|
|
|
Test Title
|
2021-06-11 08:39:17 +08:00
|
|
|
</div>
|
2019-01-02 13:53:19 +08:00
|
|
|
</div>
|
2022-07-25 21:04:43 +08:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-body"
|
|
|
|
>
|
|
|
|
Here is content of Drawer
|
2018-06-19 17:42:25 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-25 21:04:43 +08:00
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="end"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
2018-06-19 17:42:25 +08:00
|
|
|
</div>
|
|
|
|
`;
|
2018-07-22 11:27:48 +08:00
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Drawer render correctly 1`] = `
|
2018-07-22 11:27:48 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer ant-drawer-right ant-drawer-open ant-drawer-inline"
|
|
|
|
tabindex="-1"
|
2018-07-22 11:27:48 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-mask"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="start"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
|
|
|
<div
|
2022-08-17 11:16:01 +08:00
|
|
|
class="ant-drawer-content-wrapper"
|
2022-07-27 16:50:55 +08:00
|
|
|
style="width: 400px;"
|
2018-07-22 11:27:48 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
aria-modal="true"
|
|
|
|
class="ant-drawer-content"
|
|
|
|
role="dialog"
|
2018-07-22 11:27:48 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-wrapper-body"
|
2018-07-22 11:27:48 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-header ant-drawer-header-close-only"
|
2018-07-22 11:27:48 +08:00
|
|
|
>
|
2019-01-02 13:53:19 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-header-title"
|
2018-07-22 11:27:48 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<button
|
|
|
|
aria-label="Close"
|
|
|
|
class="ant-drawer-close"
|
|
|
|
type="button"
|
2018-08-13 14:46:55 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<span
|
|
|
|
aria-label="close"
|
|
|
|
class="anticon anticon-close"
|
|
|
|
role="img"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="close"
|
|
|
|
fill="currentColor"
|
2023-08-02 02:15:02 +08:00
|
|
|
fill-rule="evenodd"
|
2022-07-25 21:04:43 +08:00
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<path
|
2023-08-02 02:15:02 +08:00
|
|
|
d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"
|
2022-07-25 21:04:43 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
</button>
|
2018-07-22 11:27:48 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-25 21:04:43 +08:00
|
|
|
<div
|
|
|
|
class="ant-drawer-body"
|
|
|
|
>
|
|
|
|
Here is content of Drawer
|
|
|
|
</div>
|
2018-07-22 11:27:48 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-25 21:04:43 +08:00
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="end"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
2018-07-22 11:27:48 +08:00
|
|
|
</div>
|
|
|
|
`;
|
2018-08-10 13:32:33 +08:00
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Drawer render top drawer 1`] = `
|
2018-08-10 13:32:33 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer ant-drawer-top ant-drawer-open ant-drawer-inline"
|
|
|
|
tabindex="-1"
|
2018-08-10 13:32:33 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-mask"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="start"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
|
|
|
<div
|
2022-08-17 11:16:01 +08:00
|
|
|
class="ant-drawer-content-wrapper"
|
2022-07-27 16:50:55 +08:00
|
|
|
style="height: 400px;"
|
2018-08-10 13:32:33 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
aria-modal="true"
|
|
|
|
class="ant-drawer-content"
|
|
|
|
role="dialog"
|
2018-08-10 13:32:33 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-wrapper-body"
|
2018-08-10 13:32:33 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-header ant-drawer-header-close-only"
|
2018-08-10 13:32:33 +08:00
|
|
|
>
|
2019-01-02 13:53:19 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-header-title"
|
2018-08-10 13:32:33 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<button
|
|
|
|
aria-label="Close"
|
|
|
|
class="ant-drawer-close"
|
|
|
|
type="button"
|
2018-08-25 13:33:32 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<span
|
|
|
|
aria-label="close"
|
|
|
|
class="anticon anticon-close"
|
|
|
|
role="img"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="close"
|
|
|
|
fill="currentColor"
|
2023-08-02 02:15:02 +08:00
|
|
|
fill-rule="evenodd"
|
2022-07-25 21:04:43 +08:00
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<path
|
2023-08-02 02:15:02 +08:00
|
|
|
d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"
|
2022-07-25 21:04:43 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
</button>
|
2018-08-10 13:32:33 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-25 21:04:43 +08:00
|
|
|
<div
|
|
|
|
class="ant-drawer-body"
|
|
|
|
>
|
|
|
|
Here is content of Drawer
|
|
|
|
</div>
|
2018-08-10 13:32:33 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-25 21:04:43 +08:00
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="end"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
2018-08-10 13:32:33 +08:00
|
|
|
</div>
|
|
|
|
`;
|
2019-10-07 18:58:10 +08:00
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Drawer rtl render component should be rendered correctly in RTL direction 1`] = `null`;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Drawer style/drawerStyle/headerStyle/bodyStyle should work 1`] = `
|
2019-10-07 18:58:10 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer ant-drawer-right ant-drawer-open ant-drawer-inline"
|
|
|
|
style="background-color: rgb(0, 136, 204);"
|
|
|
|
tabindex="-1"
|
2019-10-07 18:58:10 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-mask"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="start"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
|
|
|
<div
|
2022-08-17 11:16:01 +08:00
|
|
|
class="ant-drawer-content-wrapper"
|
2022-07-27 16:50:55 +08:00
|
|
|
style="width: 378px;"
|
2019-10-07 18:58:10 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
aria-modal="true"
|
|
|
|
class="ant-drawer-content"
|
|
|
|
role="dialog"
|
2019-10-07 18:58:10 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-wrapper-body"
|
|
|
|
style="background-color: rgb(0, 136, 204);"
|
2019-10-07 18:58:10 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-header ant-drawer-header-close-only"
|
2022-04-06 11:07:15 +08:00
|
|
|
style="background-color: rgb(0, 136, 204);"
|
2019-10-07 18:58:10 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-header-title"
|
2019-10-07 18:58:10 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<button
|
|
|
|
aria-label="Close"
|
|
|
|
class="ant-drawer-close"
|
|
|
|
type="button"
|
2019-10-07 18:58:10 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<span
|
|
|
|
aria-label="close"
|
|
|
|
class="anticon anticon-close"
|
|
|
|
role="img"
|
2019-10-07 18:58:10 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
data-icon="close"
|
|
|
|
fill="currentColor"
|
2023-08-02 02:15:02 +08:00
|
|
|
fill-rule="evenodd"
|
2022-07-25 21:04:43 +08:00
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
2019-10-07 18:58:10 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<path
|
2023-08-02 02:15:02 +08:00
|
|
|
d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"
|
2022-07-25 21:04:43 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
</button>
|
2019-10-07 18:58:10 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-25 21:04:43 +08:00
|
|
|
<div
|
|
|
|
class="ant-drawer-body"
|
|
|
|
style="background-color: rgb(0, 136, 204);"
|
|
|
|
>
|
|
|
|
Here is content of Drawer
|
|
|
|
</div>
|
2019-10-07 18:58:10 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-25 21:04:43 +08:00
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="end"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
2019-10-07 18:58:10 +08:00
|
|
|
</div>
|
|
|
|
`;
|
2020-06-28 22:41:59 +08:00
|
|
|
|
2023-06-07 21:59:21 +08:00
|
|
|
exports[`Drawer support closeIcon 1`] = `
|
2020-06-28 22:41:59 +08:00
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer ant-drawer-right ant-drawer-open ant-drawer-inline"
|
|
|
|
tabindex="-1"
|
2020-06-28 22:41:59 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-mask"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="start"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
|
|
|
<div
|
2022-08-17 11:16:01 +08:00
|
|
|
class="ant-drawer-content-wrapper"
|
2022-07-27 16:50:55 +08:00
|
|
|
style="width: 400px;"
|
2020-06-28 22:41:59 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
aria-modal="true"
|
|
|
|
class="ant-drawer-content"
|
|
|
|
role="dialog"
|
2020-06-28 22:41:59 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-wrapper-body"
|
2020-06-28 22:41:59 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-header ant-drawer-header-close-only"
|
2020-06-28 22:41:59 +08:00
|
|
|
>
|
|
|
|
<div
|
2022-07-25 21:04:43 +08:00
|
|
|
class="ant-drawer-header-title"
|
2020-06-28 22:41:59 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<button
|
|
|
|
aria-label="Close"
|
|
|
|
class="ant-drawer-close"
|
|
|
|
type="button"
|
2020-06-28 22:41:59 +08:00
|
|
|
>
|
2022-07-25 21:04:43 +08:00
|
|
|
<span>
|
|
|
|
close
|
|
|
|
</span>
|
|
|
|
</button>
|
2020-06-28 22:41:59 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-25 21:04:43 +08:00
|
|
|
<div
|
|
|
|
class="ant-drawer-body"
|
|
|
|
>
|
|
|
|
Here is content of Drawer
|
|
|
|
</div>
|
2020-06-28 22:41:59 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-25 21:04:43 +08:00
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
data-sentinel="end"
|
|
|
|
style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
2020-06-28 22:41:59 +08:00
|
|
|
</div>
|
|
|
|
`;
|