2018-06-19 17:42:25 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2018-08-05 14:16:08 +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"
|
|
|
|
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
|
|
|
|
d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"
|
|
|
|
/>
|
|
|
|
</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>
|
|
|
|
`;
|
|
|
|
|
2018-08-05 14:16:08 +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>
|
|
|
|
`;
|
|
|
|
|
2022-07-25 21:04:43 +08:00
|
|
|
exports[`Drawer destroyOnClose is true 1`] = `null`;
|
|
|
|
|
|
|
|
exports[`Drawer getContainer return undefined 1`] = `<div />`;
|
|
|
|
|
|
|
|
exports[`Drawer getContainer return undefined 2`] = `
|
|
|
|
<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"
|
|
|
|
focusable="false"
|
|
|
|
height="1em"
|
|
|
|
viewBox="64 64 896 896"
|
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"
|
|
|
|
/>
|
|
|
|
</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>
|
|
|
|
`;
|
|
|
|
|
2020-01-06 14:56:00 +08:00
|
|
|
exports[`Drawer have a footer 1`] = `
|
|
|
|
<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"
|
|
|
|
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
|
|
|
|
d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"
|
|
|
|
/>
|
|
|
|
</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>
|
|
|
|
`;
|
|
|
|
|
2018-08-05 14:16:08 +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"
|
|
|
|
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
|
|
|
|
d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"
|
|
|
|
/>
|
|
|
|
</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
|
|
|
|
2018-08-05 14:16:08 +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"
|
|
|
|
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
|
|
|
|
d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"
|
|
|
|
/>
|
|
|
|
</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
|
|
|
|
|
|
|
exports[`Drawer render top drawer 1`] = `
|
|
|
|
<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"
|
|
|
|
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
|
|
|
|
d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"
|
|
|
|
/>
|
|
|
|
</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
|
|
|
|
2020-01-02 19:10:16 +08:00
|
|
|
exports[`Drawer rtl render component should be rendered correctly in RTL direction 1`] = `null`;
|
|
|
|
|
2019-10-07 18:58:10 +08:00
|
|
|
exports[`Drawer style/drawerStyle/headerStyle/bodyStyle should work 1`] = `
|
|
|
|
<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"
|
|
|
|
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
|
|
|
|
d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"
|
|
|
|
/>
|
|
|
|
</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
|
|
|
|
|
|
|
exports[`Drawer support closeIcon 1`] = `
|
|
|
|
<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>
|
|
|
|
`;
|