mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 21:18:01 +08:00
c2519e776b
* Add promise-like interface * Keep hide interface * Shorten * Test Promise * Update document * Update demo: 2.5 second is insignificant with the default 3s hiding * Update demo: then interface * Fix line break * Chainable * Thenable demo * Thenable test * Fix tsc error * Fix tsc error * Better document * Revert change in loading.md * Change snapshot
75 lines
1.1 KiB
Plaintext
75 lines
1.1 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`renders ./components/message/demo/duration.md correctly 1`] = `
|
|
<button
|
|
class="ant-btn"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Customized display duration
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`renders ./components/message/demo/info.md correctly 1`] = `
|
|
<button
|
|
class="ant-btn ant-btn-primary"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Display normal message
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`renders ./components/message/demo/loading.md correctly 1`] = `
|
|
<button
|
|
class="ant-btn"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Display a loading indicator
|
|
</span>
|
|
</button>
|
|
`;
|
|
|
|
exports[`renders ./components/message/demo/other.md correctly 1`] = `
|
|
<div>
|
|
<button
|
|
class="ant-btn"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Success
|
|
</span>
|
|
</button>
|
|
<button
|
|
class="ant-btn"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Error
|
|
</span>
|
|
</button>
|
|
<button
|
|
class="ant-btn"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Warning
|
|
</span>
|
|
</button>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders ./components/message/demo/thenable.md correctly 1`] = `
|
|
<button
|
|
class="ant-btn"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Display a sequence of message
|
|
</span>
|
|
</button>
|
|
`;
|