mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
b7634968d7
* test: Use SSR for testing demo * chore: fix lint * test: align with react 18
193 lines
3.0 KiB
Plaintext
193 lines
3.0 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||
|
||
exports[`renders ./components/popconfirm/demo/async.md correctly 1`] = `
|
||
<button
|
||
class="ant-btn ant-btn-primary"
|
||
type="button"
|
||
>
|
||
<span>
|
||
Open Popconfirm with async logic
|
||
</span>
|
||
</button>
|
||
`;
|
||
|
||
exports[`renders ./components/popconfirm/demo/basic.md correctly 1`] = `
|
||
<a
|
||
href="#"
|
||
>
|
||
Delete
|
||
</a>
|
||
`;
|
||
|
||
exports[`renders ./components/popconfirm/demo/dynamic-trigger.md correctly 1`] = `
|
||
<div>
|
||
<a
|
||
href="#"
|
||
>
|
||
Delete a task
|
||
</a>
|
||
<br />
|
||
<br />
|
||
Whether directly execute:
|
||
<button
|
||
aria-checked="true"
|
||
class="ant-switch ant-switch-checked"
|
||
role="switch"
|
||
type="button"
|
||
>
|
||
<div
|
||
class="ant-switch-handle"
|
||
/>
|
||
<span
|
||
class="ant-switch-inner"
|
||
/>
|
||
</button>
|
||
</div>
|
||
`;
|
||
|
||
exports[`renders ./components/popconfirm/demo/icon.md correctly 1`] = `
|
||
<a
|
||
href="#"
|
||
>
|
||
Delete
|
||
</a>
|
||
`;
|
||
|
||
exports[`renders ./components/popconfirm/demo/locale.md correctly 1`] = `
|
||
<a
|
||
href="#"
|
||
>
|
||
Delete
|
||
</a>
|
||
`;
|
||
|
||
exports[`renders ./components/popconfirm/demo/placement.md correctly 1`] = `
|
||
<div
|
||
class="demo"
|
||
>
|
||
<div
|
||
style="margin-left:70px;white-space:nowrap"
|
||
>
|
||
<button
|
||
class="ant-btn ant-btn-default"
|
||
type="button"
|
||
>
|
||
<span>
|
||
TL
|
||
</span>
|
||
</button>
|
||
<button
|
||
class="ant-btn ant-btn-default"
|
||
type="button"
|
||
>
|
||
<span>
|
||
Top
|
||
</span>
|
||
</button>
|
||
<button
|
||
class="ant-btn ant-btn-default"
|
||
type="button"
|
||
>
|
||
<span>
|
||
TR
|
||
</span>
|
||
</button>
|
||
</div>
|
||
<div
|
||
style="width:70px;float:left"
|
||
>
|
||
<button
|
||
class="ant-btn ant-btn-default"
|
||
type="button"
|
||
>
|
||
<span>
|
||
LT
|
||
</span>
|
||
</button>
|
||
<button
|
||
class="ant-btn ant-btn-default"
|
||
type="button"
|
||
>
|
||
<span>
|
||
Left
|
||
</span>
|
||
</button>
|
||
<button
|
||
class="ant-btn ant-btn-default"
|
||
type="button"
|
||
>
|
||
<span>
|
||
LB
|
||
</span>
|
||
</button>
|
||
</div>
|
||
<div
|
||
style="width:70px;margin-left:304px"
|
||
>
|
||
<button
|
||
class="ant-btn ant-btn-default"
|
||
type="button"
|
||
>
|
||
<span>
|
||
RT
|
||
</span>
|
||
</button>
|
||
<button
|
||
class="ant-btn ant-btn-default"
|
||
type="button"
|
||
>
|
||
<span>
|
||
Right
|
||
</span>
|
||
</button>
|
||
<button
|
||
class="ant-btn ant-btn-default"
|
||
type="button"
|
||
>
|
||
<span>
|
||
RB
|
||
</span>
|
||
</button>
|
||
</div>
|
||
<div
|
||
style="margin-left:70px;clear:both;white-space:nowrap"
|
||
>
|
||
<button
|
||
class="ant-btn ant-btn-default"
|
||
type="button"
|
||
>
|
||
<span>
|
||
BL
|
||
</span>
|
||
</button>
|
||
<button
|
||
class="ant-btn ant-btn-default"
|
||
type="button"
|
||
>
|
||
<span>
|
||
Bottom
|
||
</span>
|
||
</button>
|
||
<button
|
||
class="ant-btn ant-btn-default"
|
||
type="button"
|
||
>
|
||
<span>
|
||
BR
|
||
</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
`;
|
||
|
||
exports[`renders ./components/popconfirm/demo/promise.md correctly 1`] = `
|
||
<button
|
||
class="ant-btn ant-btn-primary"
|
||
type="button"
|
||
>
|
||
<span>
|
||
Open Popconfirm with Promise
|
||
</span>
|
||
</button>
|
||
`;
|