mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +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
155 lines
4.0 KiB
Plaintext
155 lines
4.0 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Input.Search should support addonAfter 1`] = `
|
|
<span
|
|
class="ant-input-search ant-input-group-wrapper"
|
|
>
|
|
<span
|
|
class="ant-input-wrapper ant-input-group"
|
|
>
|
|
<span
|
|
class="ant-input-search ant-input-affix-wrapper"
|
|
>
|
|
<input
|
|
class="ant-input"
|
|
type="text"
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-input-suffix"
|
|
>
|
|
<span
|
|
aria-label="search"
|
|
class="anticon anticon-search ant-input-search-icon"
|
|
role="img"
|
|
tabindex="-1"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class=""
|
|
data-icon="search"
|
|
fill="currentColor"
|
|
focusable="false"
|
|
height="1em"
|
|
viewBox="64 64 896 896"
|
|
width="1em"
|
|
>
|
|
<path
|
|
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
|
|
/>
|
|
</svg>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
<span
|
|
class="ant-input-group-addon"
|
|
>
|
|
<span>
|
|
Addon After
|
|
</span>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
`;
|
|
|
|
exports[`Input.Search should support addonAfter 2`] = `
|
|
<span
|
|
class="ant-input-search ant-input-search-enter-button ant-input-group-wrapper"
|
|
>
|
|
<span
|
|
class="ant-input-wrapper ant-input-group"
|
|
>
|
|
<input
|
|
class="ant-input"
|
|
type="text"
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-input-group-addon"
|
|
>
|
|
<button
|
|
class="ant-btn ant-input-search-button ant-btn-primary"
|
|
type="button"
|
|
>
|
|
<span
|
|
aria-label="search"
|
|
class="anticon anticon-search"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class=""
|
|
data-icon="search"
|
|
fill="currentColor"
|
|
focusable="false"
|
|
height="1em"
|
|
viewBox="64 64 896 896"
|
|
width="1em"
|
|
>
|
|
<path
|
|
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
|
|
/>
|
|
</svg>
|
|
</span>
|
|
</button>
|
|
<span>
|
|
Addon After
|
|
</span>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
`;
|
|
|
|
exports[`Input.Search should support custom Button 1`] = `
|
|
<span
|
|
class="ant-input-search ant-input-search-enter-button ant-input-group-wrapper"
|
|
>
|
|
<span
|
|
class="ant-input-wrapper ant-input-group"
|
|
>
|
|
<input
|
|
class="ant-input"
|
|
type="text"
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-input-group-addon"
|
|
>
|
|
<button
|
|
class="ant-btn ant-input-search-button"
|
|
type="button"
|
|
>
|
|
<span>
|
|
ok
|
|
</span>
|
|
</button>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
`;
|
|
|
|
exports[`Input.Search should support custom button 1`] = `
|
|
<span
|
|
class="ant-input-search ant-input-search-enter-button ant-input-group-wrapper"
|
|
>
|
|
<span
|
|
class="ant-input-wrapper ant-input-group"
|
|
>
|
|
<input
|
|
class="ant-input"
|
|
type="text"
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-input-group-addon"
|
|
>
|
|
<button
|
|
type="button"
|
|
>
|
|
ok
|
|
</button>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
`;
|