ant-design/components/spin/__tests__/__snapshots__/demo.test.js.snap

309 lines
6.0 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/spin/demo/basic.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="ant-spin ant-spin-spinning"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-spin-dot ant-spin-dot-spin"
>
2019-03-28 12:25:44 +08:00
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
2016-11-22 14:28:05 +08:00
</span>
</div>
`;
exports[`renders ./components/spin/demo/custom-indicator.md correctly 1`] = `
<div
class="ant-spin ant-spin-spinning"
2018-07-19 20:37:47 +08:00
>
use ant design icons 4.0 (#18217) * feat: use @ant-design/icons@4.0 * feat: use createFromIconfontCN to make site works * feat: update doc for Icon * feat: use icon in component Alert * feat: use icon in component Avatar * feat: use icon in component Breadcrumb * feat: use icon in component Button * feat: use icon in component Cascader * feat: use icon in component Collapse * feat: use icon in component Datepicker * feat: use icon in component Dropdown * feat: use icon in component Form * feat: use icon in component Input * feat: use icon in component InputNumber * feat: use icon in component Layout * feat: use icon in component Mention * feat: use icon in component Message * feat: use icon in component Modal * feat: use icon in component Notification * feat: use icon in component PageHeader * feat: use icon in component Pagination * feat: use icon in component Popconfirm * feat: use icon in component Progress * feat: use icon in component Rate * feat: use icon in component Result * feat: use icon in component Select * feat: use icon in component Step * feat: use icon in component Switch * feat: use icon in component Table * feat: use icon in component Tab * feat: use icon in component Tag * feat: handle rest component which using Icon * fix: remove unused vars * feat: use latest alpha ant design icons * fix: failed test in uploadlist.test.js * test: update snapshot for icons * doc: add Icon for site * doc: use @ant-design/icons in site * chore: use latest icons * fix: tslint issue * fix: test cases * fix: types for react * fix: lint rules for import orders * fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render * fix: eslint error in demo/**.md * inject antd icons * update snapshot * fix site * doc: update docs * fix: code snippets icon in site * feat: use latest @ant-design/icons * fix: icon props in message
2019-08-13 14:07:17 +08:00
<span
aria-label="loading"
2018-08-14 15:32:29 +08:00
class="anticon anticon-loading ant-spin-dot"
use ant design icons 4.0 (#18217) * feat: use @ant-design/icons@4.0 * feat: use createFromIconfontCN to make site works * feat: update doc for Icon * feat: use icon in component Alert * feat: use icon in component Avatar * feat: use icon in component Breadcrumb * feat: use icon in component Button * feat: use icon in component Cascader * feat: use icon in component Collapse * feat: use icon in component Datepicker * feat: use icon in component Dropdown * feat: use icon in component Form * feat: use icon in component Input * feat: use icon in component InputNumber * feat: use icon in component Layout * feat: use icon in component Mention * feat: use icon in component Message * feat: use icon in component Modal * feat: use icon in component Notification * feat: use icon in component PageHeader * feat: use icon in component Pagination * feat: use icon in component Popconfirm * feat: use icon in component Progress * feat: use icon in component Rate * feat: use icon in component Result * feat: use icon in component Select * feat: use icon in component Step * feat: use icon in component Switch * feat: use icon in component Table * feat: use icon in component Tab * feat: use icon in component Tag * feat: handle rest component which using Icon * fix: remove unused vars * feat: use latest alpha ant design icons * fix: failed test in uploadlist.test.js * test: update snapshot for icons * doc: add Icon for site * doc: use @ant-design/icons in site * chore: use latest icons * fix: tslint issue * fix: test cases * fix: types for react * fix: lint rules for import orders * fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render * fix: eslint error in demo/**.md * inject antd icons * update snapshot * fix site * doc: update docs * fix: code snippets icon in site * feat: use latest @ant-design/icons * fix: icon props in message
2019-08-13 14:07:17 +08:00
role="img"
2018-08-13 14:46:55 +08:00
style="font-size:24px"
2018-09-02 19:53:29 +08:00
>
<svg
aria-hidden="true"
class="anticon-spin"
data-icon="loading"
fill="currentColor"
2019-04-11 12:48:36 +08:00
focusable="false"
2018-09-02 19:53:29 +08:00
height="1em"
viewBox="0 0 1024 1024"
width="1em"
>
<path
use ant design icons 4.0 (#18217) * feat: use @ant-design/icons@4.0 * feat: use createFromIconfontCN to make site works * feat: update doc for Icon * feat: use icon in component Alert * feat: use icon in component Avatar * feat: use icon in component Breadcrumb * feat: use icon in component Button * feat: use icon in component Cascader * feat: use icon in component Collapse * feat: use icon in component Datepicker * feat: use icon in component Dropdown * feat: use icon in component Form * feat: use icon in component Input * feat: use icon in component InputNumber * feat: use icon in component Layout * feat: use icon in component Mention * feat: use icon in component Message * feat: use icon in component Modal * feat: use icon in component Notification * feat: use icon in component PageHeader * feat: use icon in component Pagination * feat: use icon in component Popconfirm * feat: use icon in component Progress * feat: use icon in component Rate * feat: use icon in component Result * feat: use icon in component Select * feat: use icon in component Step * feat: use icon in component Switch * feat: use icon in component Table * feat: use icon in component Tab * feat: use icon in component Tag * feat: handle rest component which using Icon * fix: remove unused vars * feat: use latest alpha ant design icons * fix: failed test in uploadlist.test.js * test: update snapshot for icons * doc: add Icon for site * doc: use @ant-design/icons in site * chore: use latest icons * fix: tslint issue * fix: test cases * fix: types for react * fix: lint rules for import orders * fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render * fix: eslint error in demo/**.md * inject antd icons * update snapshot * fix site * doc: update docs * fix: code snippets icon in site * feat: use latest @ant-design/icons * fix: icon props in message
2019-08-13 14:07:17 +08:00
d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
2018-09-02 19:53:29 +08:00
/>
</svg>
use ant design icons 4.0 (#18217) * feat: use @ant-design/icons@4.0 * feat: use createFromIconfontCN to make site works * feat: update doc for Icon * feat: use icon in component Alert * feat: use icon in component Avatar * feat: use icon in component Breadcrumb * feat: use icon in component Button * feat: use icon in component Cascader * feat: use icon in component Collapse * feat: use icon in component Datepicker * feat: use icon in component Dropdown * feat: use icon in component Form * feat: use icon in component Input * feat: use icon in component InputNumber * feat: use icon in component Layout * feat: use icon in component Mention * feat: use icon in component Message * feat: use icon in component Modal * feat: use icon in component Notification * feat: use icon in component PageHeader * feat: use icon in component Pagination * feat: use icon in component Popconfirm * feat: use icon in component Progress * feat: use icon in component Rate * feat: use icon in component Result * feat: use icon in component Select * feat: use icon in component Step * feat: use icon in component Switch * feat: use icon in component Table * feat: use icon in component Tab * feat: use icon in component Tag * feat: handle rest component which using Icon * fix: remove unused vars * feat: use latest alpha ant design icons * fix: failed test in uploadlist.test.js * test: update snapshot for icons * doc: add Icon for site * doc: use @ant-design/icons in site * chore: use latest icons * fix: tslint issue * fix: test cases * fix: types for react * fix: lint rules for import orders * fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render * fix: eslint error in demo/**.md * inject antd icons * update snapshot * fix site * doc: update docs * fix: code snippets icon in site * feat: use latest @ant-design/icons * fix: icon props in message
2019-08-13 14:07:17 +08:00
</span>
2018-07-19 20:37:47 +08:00
</div>
`;
exports[`renders ./components/spin/demo/delayAndDebounce.md correctly 1`] = `
<div>
<div
class="ant-spin-nested-loading"
>
<div
class="ant-spin-container"
>
<div
class="ant-alert ant-alert-info ant-alert-with-description ant-alert-no-icon"
data-show="true"
role="alert"
>
<span
class="ant-alert-message"
>
Alert message title
</span>
<span
class="ant-alert-description"
>
Further details about the context of this alert.
</span>
</div>
</div>
</div>
<div
style="margin-top:16px"
>
Loading state
2018-09-13 19:47:28 +08:00
<button
aria-checked="false"
class="ant-switch"
2018-09-13 19:47:28 +08:00
role="switch"
type="button"
>
<div
class="ant-switch-handle"
/>
<span
class="ant-switch-inner"
/>
2018-09-13 19:47:28 +08:00
</button>
</div>
</div>
`;
exports[`renders ./components/spin/demo/inside.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="example"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-spin ant-spin-spinning"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-spin-dot ant-spin-dot-spin"
>
2019-03-28 12:25:44 +08:00
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
2016-11-22 14:28:05 +08:00
</span>
</div>
</div>
`;
exports[`renders ./components/spin/demo/nested.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-spin-nested-loading"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-spin-container"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-alert ant-alert-info ant-alert-with-description ant-alert-no-icon"
data-show="true"
role="alert"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-alert-message"
>
2016-11-22 14:28:05 +08:00
Alert message title
</span>
<span
class="ant-alert-description"
>
2016-11-22 14:28:05 +08:00
Further details about the context of this alert.
</span>
</div>
</div>
</div>
2017-06-14 13:31:21 +08:00
<div
2017-09-20 16:26:18 +08:00
style="margin-top:16px"
>
2017-06-14 13:31:21 +08:00
Loading state
2018-09-13 19:47:28 +08:00
<button
aria-checked="false"
2017-06-14 13:31:21 +08:00
class="ant-switch"
2018-09-13 19:47:28 +08:00
role="switch"
type="button"
2017-06-14 13:31:21 +08:00
>
<div
class="ant-switch-handle"
/>
2017-06-14 13:31:21 +08:00
<span
class="ant-switch-inner"
/>
2018-09-13 19:47:28 +08:00
</button>
2017-06-14 13:31:21 +08:00
</div>
2016-11-22 14:28:05 +08:00
</div>
`;
exports[`renders ./components/spin/demo/size.md correctly 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-space-item"
style="margin-right:16px"
>
<div
class="ant-spin ant-spin-sm ant-spin-spinning"
>
<span
class="ant-spin-dot ant-spin-dot-spin"
>
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
</span>
</div>
2016-11-22 14:28:05 +08:00
</div>
<div
class="ant-space-item"
style="margin-right:16px"
>
<div
class="ant-spin ant-spin-spinning"
>
<span
class="ant-spin-dot ant-spin-dot-spin"
>
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
</span>
</div>
2016-11-22 14:28:05 +08:00
</div>
<div
class="ant-space-item"
>
<div
class="ant-spin ant-spin-lg ant-spin-spinning"
>
<span
class="ant-spin-dot ant-spin-dot-spin"
>
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
</span>
</div>
2016-11-22 14:28:05 +08:00
</div>
</div>
`;
exports[`renders ./components/spin/demo/tip.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
class="ant-spin-nested-loading"
>
2016-11-22 14:28:05 +08:00
<div>
<div
class="ant-spin ant-spin-spinning ant-spin-show-text"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-spin-dot ant-spin-dot-spin"
>
2019-03-28 12:25:44 +08:00
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
<i
class="ant-spin-dot-item"
/>
2016-11-22 14:28:05 +08:00
</span>
<div
class="ant-spin-text"
>
2016-11-22 14:28:05 +08:00
Loading...
</div>
</div>
</div>
<div
class="ant-spin-container ant-spin-blur"
>
2016-11-22 14:28:05 +08:00
<div
class="ant-alert ant-alert-info ant-alert-with-description ant-alert-no-icon"
data-show="true"
role="alert"
>
2016-11-22 14:28:05 +08:00
<span
class="ant-alert-message"
>
2016-11-22 14:28:05 +08:00
Alert message title
</span>
<span
class="ant-alert-description"
>
2016-11-22 14:28:05 +08:00
Further details about the context of this alert.
</span>
</div>
</div>
</div>
`;