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
|
|
|
|
class=""
|
|
|
|
>
|
2018-06-26 11:19:49 +08:00
|
|
|
<div
|
2018-08-05 14:16:08 +08:00
|
|
|
class="ant-drawer ant-drawer-right test_drawer"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-mask"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-content-wrapper"
|
2018-08-18 12:34:40 +08:00
|
|
|
style="transform:translateX(100%);-ms-transform:translateX(100%);width:256px"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
2018-06-25 23:25:38 +08:00
|
|
|
<div
|
2018-06-26 11:19:49 +08:00
|
|
|
class="ant-drawer-content"
|
2018-06-25 23:25:38 +08:00
|
|
|
>
|
|
|
|
<div
|
2018-07-20 18:51:10 +08:00
|
|
|
class="ant-drawer-wrapper-body"
|
2018-08-05 14:16:08 +08:00
|
|
|
style="overflow:auto;height:100%;opacity:0;transition:opacity .3s"
|
2018-06-25 23:25:38 +08:00
|
|
|
>
|
2019-01-02 13:53:19 +08:00
|
|
|
<div
|
|
|
|
class="ant-drawer-header"
|
2018-08-05 14:16:08 +08:00
|
|
|
>
|
2019-01-02 13:53:19 +08:00
|
|
|
<button
|
|
|
|
aria-label="Close"
|
|
|
|
class="ant-drawer-close"
|
2018-08-13 14:46:55 +08:00
|
|
|
>
|
|
|
|
<i
|
2018-08-13 20:51:01 +08:00
|
|
|
class="anticon anticon-close"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class=""
|
|
|
|
data-icon="close"
|
|
|
|
fill="currentColor"
|
|
|
|
height="1em"
|
2018-09-06 20:55:23 +08:00
|
|
|
viewBox="64 64 896 896"
|
2018-09-02 19:53:29 +08:00
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
2018-09-06 20:55:23 +08:00
|
|
|
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 0 0 203 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"
|
2018-09-02 19:53:29 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</i>
|
2019-01-02 13:53:19 +08:00
|
|
|
</button>
|
|
|
|
</div>
|
2018-06-25 23:25:38 +08:00
|
|
|
<div
|
2018-06-26 11:19:49 +08:00
|
|
|
class="ant-drawer-body"
|
2018-06-25 23:25:38 +08:00
|
|
|
>
|
2018-06-26 11:19:49 +08:00
|
|
|
Here is content of Drawer
|
2018-06-25 23:25:38 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2018-08-05 14:16:08 +08:00
|
|
|
exports[`Drawer closable is false 1`] = `
|
2018-07-20 16:02:42 +08:00
|
|
|
<div
|
|
|
|
class=""
|
|
|
|
>
|
2018-06-26 11:19:49 +08:00
|
|
|
<div
|
2018-07-02 21:49:06 +08:00
|
|
|
class="ant-drawer ant-drawer-right"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-mask"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-content-wrapper"
|
2018-08-18 12:34:40 +08:00
|
|
|
style="transform:translateX(100%);-ms-transform:translateX(100%);width:256px"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-content"
|
2018-07-18 15:52:51 +08:00
|
|
|
>
|
|
|
|
<div
|
2018-07-20 18:51:10 +08:00
|
|
|
class="ant-drawer-wrapper-body"
|
2018-08-05 14:16:08 +08:00
|
|
|
style="overflow:auto;height:100%"
|
2018-07-20 13:31:30 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-body"
|
|
|
|
>
|
|
|
|
Here is content of Drawer
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-18 15:52:51 +08:00
|
|
|
</div>
|
2018-06-26 11:19:49 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-06-25 23:25:38 +08:00
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2018-08-05 14:16:08 +08:00
|
|
|
exports[`Drawer destroyOnClose is true 1`] = `
|
2018-07-20 16:02:42 +08:00
|
|
|
<div
|
|
|
|
class=""
|
|
|
|
>
|
2018-06-26 11:19:49 +08:00
|
|
|
<div
|
2018-07-20 14:40:03 +08:00
|
|
|
class="ant-drawer ant-drawer-right"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-mask"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-content-wrapper"
|
2018-08-18 12:34:40 +08:00
|
|
|
style="transform:translateX(100%);-ms-transform:translateX(100%);width:256px"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
2018-06-25 23:25:38 +08:00
|
|
|
<div
|
2018-06-26 11:19:49 +08:00
|
|
|
class="ant-drawer-content"
|
2018-06-25 23:25:38 +08:00
|
|
|
>
|
|
|
|
<div
|
2018-07-20 18:51:10 +08:00
|
|
|
class="ant-drawer-wrapper-body"
|
2018-08-05 14:16:08 +08:00
|
|
|
style="overflow:auto;height:100%;opacity:0;transition:opacity .3s"
|
2018-06-25 23:25:38 +08:00
|
|
|
>
|
2019-01-02 13:53:19 +08:00
|
|
|
<div
|
|
|
|
class="ant-drawer-header"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
2019-01-02 13:53:19 +08:00
|
|
|
<button
|
|
|
|
aria-label="Close"
|
|
|
|
class="ant-drawer-close"
|
2018-08-13 14:46:55 +08:00
|
|
|
>
|
|
|
|
<i
|
2018-08-13 20:51:01 +08:00
|
|
|
class="anticon anticon-close"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class=""
|
|
|
|
data-icon="close"
|
|
|
|
fill="currentColor"
|
|
|
|
height="1em"
|
2018-09-06 20:55:23 +08:00
|
|
|
viewBox="64 64 896 896"
|
2018-09-02 19:53:29 +08:00
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
2018-09-06 20:55:23 +08:00
|
|
|
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 0 0 203 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"
|
2018-09-02 19:53:29 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</i>
|
2019-01-02 13:53:19 +08:00
|
|
|
</button>
|
|
|
|
</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>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2018-08-05 14:16:08 +08:00
|
|
|
exports[`Drawer have a title 1`] = `
|
2018-07-20 16:02:42 +08:00
|
|
|
<div
|
|
|
|
class=""
|
|
|
|
>
|
2018-06-26 11:19:49 +08:00
|
|
|
<div
|
2018-07-20 14:40:03 +08:00
|
|
|
class="ant-drawer ant-drawer-right"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-mask"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-content-wrapper"
|
2018-08-18 12:34:40 +08:00
|
|
|
style="transform:translateX(100%);-ms-transform:translateX(100%);width:256px"
|
2018-06-26 11:19:49 +08:00
|
|
|
>
|
2018-06-19 17:42:25 +08:00
|
|
|
<div
|
2018-06-26 11:19:49 +08:00
|
|
|
class="ant-drawer-content"
|
2018-06-19 17:42:25 +08:00
|
|
|
>
|
|
|
|
<div
|
2018-07-20 18:51:10 +08:00
|
|
|
class="ant-drawer-wrapper-body"
|
2018-07-20 14:40:03 +08:00
|
|
|
style="overflow:auto;height:100%"
|
2018-06-19 17:42:25 +08:00
|
|
|
>
|
2018-08-05 14:16:08 +08:00
|
|
|
<div
|
|
|
|
class="ant-drawer-header"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-title"
|
|
|
|
>
|
|
|
|
Test Title
|
|
|
|
</div>
|
2019-01-02 13:53:19 +08:00
|
|
|
<button
|
|
|
|
aria-label="Close"
|
|
|
|
class="ant-drawer-close"
|
2018-08-13 14:46:55 +08:00
|
|
|
>
|
|
|
|
<i
|
2018-08-13 20:51:01 +08:00
|
|
|
class="anticon anticon-close"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class=""
|
|
|
|
data-icon="close"
|
|
|
|
fill="currentColor"
|
|
|
|
height="1em"
|
2018-09-06 20:55:23 +08:00
|
|
|
viewBox="64 64 896 896"
|
2018-09-02 19:53:29 +08:00
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
2018-09-06 20:55:23 +08:00
|
|
|
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 0 0 203 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"
|
2018-09-02 19:53:29 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</i>
|
2019-01-02 13:53:19 +08:00
|
|
|
</button>
|
|
|
|
</div>
|
2018-06-19 17:42:25 +08:00
|
|
|
<div
|
2018-06-26 11:19:49 +08:00
|
|
|
class="ant-drawer-body"
|
2018-06-19 17:42:25 +08:00
|
|
|
>
|
2018-06-26 11:19:49 +08:00
|
|
|
Here is content of Drawer
|
2018-06-19 17:42:25 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</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
|
|
|
|
class=""
|
|
|
|
>
|
|
|
|
<div
|
2018-08-05 14:16:08 +08:00
|
|
|
class="ant-drawer ant-drawer-right"
|
2018-07-22 11:27:48 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-mask"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-content-wrapper"
|
2018-08-18 12:34:40 +08:00
|
|
|
style="transform:translateX(100%);-ms-transform:translateX(100%);width:400px"
|
2018-07-22 11:27:48 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-wrapper-body"
|
2018-08-05 14:16:08 +08:00
|
|
|
style="overflow:auto;height:100%"
|
2018-07-22 11:27:48 +08:00
|
|
|
>
|
2019-01-02 13:53:19 +08:00
|
|
|
<div
|
|
|
|
class="ant-drawer-header"
|
2018-07-22 11:27:48 +08:00
|
|
|
>
|
2019-01-02 13:53:19 +08:00
|
|
|
<button
|
|
|
|
aria-label="Close"
|
|
|
|
class="ant-drawer-close"
|
2018-08-13 14:46:55 +08:00
|
|
|
>
|
|
|
|
<i
|
2018-08-13 20:51:01 +08:00
|
|
|
class="anticon anticon-close"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class=""
|
|
|
|
data-icon="close"
|
|
|
|
fill="currentColor"
|
|
|
|
height="1em"
|
2018-09-06 20:55:23 +08:00
|
|
|
viewBox="64 64 896 896"
|
2018-09-02 19:53:29 +08:00
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
2018-09-06 20:55:23 +08:00
|
|
|
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 0 0 203 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"
|
2018-09-02 19:53:29 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</i>
|
2019-01-02 13:53:19 +08:00
|
|
|
</button>
|
|
|
|
</div>
|
2018-07-22 11:27:48 +08:00
|
|
|
<div
|
|
|
|
class="ant-drawer-body"
|
|
|
|
>
|
|
|
|
Here is content of Drawer
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
2018-08-10 13:32:33 +08:00
|
|
|
|
|
|
|
exports[`Drawer render top drawer 1`] = `
|
|
|
|
<div
|
|
|
|
class=""
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-drawer ant-drawer-top"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-mask"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-content-wrapper"
|
|
|
|
style="transform:translateY(-100%);-ms-transform:translateY(-100%);height:400px"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-drawer-wrapper-body"
|
|
|
|
>
|
2019-01-02 13:53:19 +08:00
|
|
|
<div
|
|
|
|
class="ant-drawer-header"
|
2018-08-10 13:32:33 +08:00
|
|
|
>
|
2019-01-02 13:53:19 +08:00
|
|
|
<button
|
|
|
|
aria-label="Close"
|
|
|
|
class="ant-drawer-close"
|
2018-08-25 13:33:32 +08:00
|
|
|
>
|
|
|
|
<i
|
|
|
|
class="anticon anticon-close"
|
2018-09-02 19:53:29 +08:00
|
|
|
>
|
|
|
|
<svg
|
|
|
|
aria-hidden="true"
|
|
|
|
class=""
|
|
|
|
data-icon="close"
|
|
|
|
fill="currentColor"
|
|
|
|
height="1em"
|
2018-09-06 20:55:23 +08:00
|
|
|
viewBox="64 64 896 896"
|
2018-09-02 19:53:29 +08:00
|
|
|
width="1em"
|
|
|
|
>
|
|
|
|
<path
|
2018-09-06 20:55:23 +08:00
|
|
|
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 0 0 203 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"
|
2018-09-02 19:53:29 +08:00
|
|
|
/>
|
|
|
|
</svg>
|
|
|
|
</i>
|
2019-01-02 13:53:19 +08:00
|
|
|
</button>
|
|
|
|
</div>
|
2018-08-10 13:32:33 +08:00
|
|
|
<div
|
|
|
|
class="ant-drawer-body"
|
|
|
|
>
|
|
|
|
Here is content of Drawer
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|