mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 13:08:41 +08:00
149729e524
* 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
196 lines
4.4 KiB
Plaintext
196 lines
4.4 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`renders ./components/switch/demo/basic.md correctly 1`] = `
|
|
<button
|
|
aria-checked="true"
|
|
class="ant-switch ant-switch-checked"
|
|
role="switch"
|
|
type="button"
|
|
>
|
|
<span
|
|
class="ant-switch-inner"
|
|
/>
|
|
</button>
|
|
`;
|
|
|
|
exports[`renders ./components/switch/demo/disabled.md correctly 1`] = `
|
|
<div>
|
|
<button
|
|
aria-checked="true"
|
|
class="ant-switch ant-switch-checked ant-switch-disabled"
|
|
disabled=""
|
|
role="switch"
|
|
type="button"
|
|
>
|
|
<span
|
|
class="ant-switch-inner"
|
|
/>
|
|
</button>
|
|
<br />
|
|
<button
|
|
class="ant-btn ant-btn-primary"
|
|
type="button"
|
|
>
|
|
<span>
|
|
Toggle disabled
|
|
</span>
|
|
</button>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders ./components/switch/demo/loading.md correctly 1`] = `
|
|
<div>
|
|
<button
|
|
aria-checked="true"
|
|
class="ant-switch-loading ant-switch ant-switch-checked ant-switch-disabled"
|
|
disabled=""
|
|
role="switch"
|
|
type="button"
|
|
>
|
|
<span
|
|
aria-label="loading"
|
|
class="anticon anticon-loading ant-switch-loading-icon"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class="anticon-spin"
|
|
data-icon="loading"
|
|
fill="currentColor"
|
|
focusable="false"
|
|
height="1em"
|
|
viewBox="0 0 1024 1024"
|
|
width="1em"
|
|
>
|
|
<path
|
|
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"
|
|
/>
|
|
</svg>
|
|
</span>
|
|
<span
|
|
class="ant-switch-inner"
|
|
/>
|
|
</button>
|
|
<br />
|
|
<button
|
|
aria-checked="false"
|
|
class="ant-switch-small ant-switch-loading ant-switch ant-switch-disabled"
|
|
disabled=""
|
|
role="switch"
|
|
type="button"
|
|
>
|
|
<span
|
|
aria-label="loading"
|
|
class="anticon anticon-loading ant-switch-loading-icon"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class="anticon-spin"
|
|
data-icon="loading"
|
|
fill="currentColor"
|
|
focusable="false"
|
|
height="1em"
|
|
viewBox="0 0 1024 1024"
|
|
width="1em"
|
|
>
|
|
<path
|
|
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"
|
|
/>
|
|
</svg>
|
|
</span>
|
|
<span
|
|
class="ant-switch-inner"
|
|
/>
|
|
</button>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders ./components/switch/demo/size.md correctly 1`] = `
|
|
<div>
|
|
<button
|
|
aria-checked="true"
|
|
class="ant-switch ant-switch-checked"
|
|
role="switch"
|
|
type="button"
|
|
>
|
|
<span
|
|
class="ant-switch-inner"
|
|
/>
|
|
</button>
|
|
<br />
|
|
<button
|
|
aria-checked="true"
|
|
class="ant-switch-small ant-switch ant-switch-checked"
|
|
role="switch"
|
|
type="button"
|
|
>
|
|
<span
|
|
class="ant-switch-inner"
|
|
/>
|
|
</button>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders ./components/switch/demo/text.md correctly 1`] = `
|
|
<div>
|
|
<button
|
|
aria-checked="true"
|
|
class="ant-switch ant-switch-checked"
|
|
role="switch"
|
|
type="button"
|
|
>
|
|
<span
|
|
class="ant-switch-inner"
|
|
>
|
|
开
|
|
</span>
|
|
</button>
|
|
<br />
|
|
<button
|
|
aria-checked="false"
|
|
class="ant-switch"
|
|
role="switch"
|
|
type="button"
|
|
>
|
|
<span
|
|
class="ant-switch-inner"
|
|
>
|
|
0
|
|
</span>
|
|
</button>
|
|
<br />
|
|
<button
|
|
aria-checked="true"
|
|
class="ant-switch ant-switch-checked"
|
|
role="switch"
|
|
type="button"
|
|
>
|
|
<span
|
|
class="ant-switch-inner"
|
|
>
|
|
<span
|
|
aria-label="check"
|
|
class="anticon anticon-check"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class=""
|
|
data-icon="check"
|
|
fill="currentColor"
|
|
focusable="false"
|
|
height="1em"
|
|
viewBox="64 64 896 896"
|
|
width="1em"
|
|
>
|
|
<path
|
|
d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"
|
|
/>
|
|
</svg>
|
|
</span>
|
|
</span>
|
|
</button>
|
|
</div>
|
|
`;
|