You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
493 lines
14 KiB
493 lines
14 KiB
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`renders ./components/auto-complete/demo/basic.md correctly 1`] = `
|
|
<div
|
|
class="ant-select-show-search ant-select-auto-complete ant-select ant-select-combobox ant-select-enabled"
|
|
style="width:200px"
|
|
>
|
|
<div
|
|
aria-autocomplete="list"
|
|
aria-expanded="false"
|
|
aria-haspopup="true"
|
|
class="ant-select-selection
|
|
ant-select-selection--single"
|
|
role="combobox"
|
|
>
|
|
<div
|
|
class="ant-select-selection__rendered"
|
|
>
|
|
<div
|
|
class="ant-select-selection__placeholder"
|
|
style="display:block;user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
input here
|
|
</div>
|
|
<ul>
|
|
<li
|
|
class="ant-select-search ant-select-search--inline"
|
|
>
|
|
<div
|
|
class="ant-select-search__field__wrap"
|
|
>
|
|
<input
|
|
class="ant-input ant-select-search__field"
|
|
type="text"
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-select-search__field__mirror"
|
|
>
|
|
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<span
|
|
class="ant-select-arrow"
|
|
style="user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
<i
|
|
class="anticon anticon-down ant-select-arrow-icon"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class=""
|
|
data-icon="down"
|
|
fill="currentColor"
|
|
height="1em"
|
|
viewBox="0 0 1024 1024"
|
|
width="1em"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<path
|
|
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
|
|
/>
|
|
</svg>
|
|
</i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders ./components/auto-complete/demo/certain-category.md correctly 1`] = `
|
|
<div
|
|
class="certain-category-search-wrapper"
|
|
style="width:250px"
|
|
>
|
|
<div
|
|
class="ant-select-lg ant-select-lg certain-category-search ant-select-show-search ant-select-auto-complete ant-select ant-select-combobox ant-select-enabled"
|
|
style="width:100%"
|
|
>
|
|
<div
|
|
aria-autocomplete="list"
|
|
aria-expanded="false"
|
|
aria-haspopup="true"
|
|
class="ant-select-selection
|
|
ant-select-selection--single"
|
|
role="combobox"
|
|
>
|
|
<div
|
|
class="ant-select-selection__rendered"
|
|
>
|
|
<div
|
|
class="ant-select-selection__placeholder"
|
|
style="display:block;user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
input here
|
|
</div>
|
|
<ul>
|
|
<li
|
|
class="ant-select-search ant-select-search--inline"
|
|
>
|
|
<div
|
|
class="ant-select-search__field__wrap"
|
|
>
|
|
<span
|
|
class="ant-select-search__field ant-input-affix-wrapper"
|
|
>
|
|
<input
|
|
class="ant-input"
|
|
type="text"
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-input-suffix"
|
|
>
|
|
<i
|
|
class="anticon anticon-search certain-category-icon"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class=""
|
|
data-icon="search"
|
|
fill="currentColor"
|
|
height="1em"
|
|
viewBox="0 0 1024 1024"
|
|
width="1em"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<path
|
|
d="M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1c-3.1 3.1-3.1 8.2 0 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6C473 696.1 537.7 720 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2z"
|
|
/>
|
|
</svg>
|
|
</i>
|
|
</span>
|
|
</span>
|
|
<span
|
|
class="ant-select-search__field__mirror"
|
|
>
|
|
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<span
|
|
class="ant-select-arrow"
|
|
style="user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
<i
|
|
class="anticon anticon-down ant-select-arrow-icon"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class=""
|
|
data-icon="down"
|
|
fill="currentColor"
|
|
height="1em"
|
|
viewBox="0 0 1024 1024"
|
|
width="1em"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<path
|
|
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
|
|
/>
|
|
</svg>
|
|
</i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders ./components/auto-complete/demo/custom.md correctly 1`] = `
|
|
<div
|
|
class="ant-select-show-search ant-select-auto-complete ant-select ant-select-combobox ant-select-enabled"
|
|
style="width:200px"
|
|
>
|
|
<div
|
|
aria-autocomplete="list"
|
|
aria-expanded="false"
|
|
aria-haspopup="true"
|
|
class="ant-select-selection
|
|
ant-select-selection--single"
|
|
role="combobox"
|
|
>
|
|
<div
|
|
class="ant-select-selection__rendered"
|
|
>
|
|
<ul>
|
|
<li
|
|
class="ant-select-search ant-select-search--inline"
|
|
>
|
|
<div
|
|
class="ant-select-search__field__wrap"
|
|
>
|
|
<textarea
|
|
class="ant-input custom ant-select-search__field"
|
|
placeholder="input here"
|
|
style="height:50px"
|
|
/>
|
|
<span
|
|
class="ant-select-search__field__mirror"
|
|
>
|
|
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<span
|
|
class="ant-select-arrow"
|
|
style="user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
<i
|
|
class="anticon anticon-down ant-select-arrow-icon"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class=""
|
|
data-icon="down"
|
|
fill="currentColor"
|
|
height="1em"
|
|
viewBox="0 0 1024 1024"
|
|
width="1em"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<path
|
|
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
|
|
/>
|
|
</svg>
|
|
</i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders ./components/auto-complete/demo/non-case-sensitive.md correctly 1`] = `
|
|
<div
|
|
class="ant-select-show-search ant-select-auto-complete ant-select ant-select-combobox ant-select-enabled"
|
|
style="width:200px"
|
|
>
|
|
<div
|
|
aria-autocomplete="list"
|
|
aria-expanded="false"
|
|
aria-haspopup="true"
|
|
class="ant-select-selection
|
|
ant-select-selection--single"
|
|
role="combobox"
|
|
>
|
|
<div
|
|
class="ant-select-selection__rendered"
|
|
>
|
|
<div
|
|
class="ant-select-selection__placeholder"
|
|
style="display:block;user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
try to type \`b\`
|
|
</div>
|
|
<ul>
|
|
<li
|
|
class="ant-select-search ant-select-search--inline"
|
|
>
|
|
<div
|
|
class="ant-select-search__field__wrap"
|
|
>
|
|
<input
|
|
class="ant-input ant-select-search__field"
|
|
type="text"
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-select-search__field__mirror"
|
|
>
|
|
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<span
|
|
class="ant-select-arrow"
|
|
style="user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
<i
|
|
class="anticon anticon-down ant-select-arrow-icon"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class=""
|
|
data-icon="down"
|
|
fill="currentColor"
|
|
height="1em"
|
|
viewBox="0 0 1024 1024"
|
|
width="1em"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<path
|
|
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
|
|
/>
|
|
</svg>
|
|
</i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders ./components/auto-complete/demo/options.md correctly 1`] = `
|
|
<div
|
|
class="ant-select-show-search ant-select-auto-complete ant-select ant-select-combobox ant-select-enabled"
|
|
style="width:200px"
|
|
>
|
|
<div
|
|
aria-autocomplete="list"
|
|
aria-expanded="false"
|
|
aria-haspopup="true"
|
|
class="ant-select-selection
|
|
ant-select-selection--single"
|
|
role="combobox"
|
|
>
|
|
<div
|
|
class="ant-select-selection__rendered"
|
|
>
|
|
<div
|
|
class="ant-select-selection__placeholder"
|
|
style="display:block;user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
input here
|
|
</div>
|
|
<ul>
|
|
<li
|
|
class="ant-select-search ant-select-search--inline"
|
|
>
|
|
<div
|
|
class="ant-select-search__field__wrap"
|
|
>
|
|
<input
|
|
class="ant-input ant-select-search__field"
|
|
type="text"
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-select-search__field__mirror"
|
|
>
|
|
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<span
|
|
class="ant-select-arrow"
|
|
style="user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
<i
|
|
class="anticon anticon-down ant-select-arrow-icon"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class=""
|
|
data-icon="down"
|
|
fill="currentColor"
|
|
height="1em"
|
|
viewBox="0 0 1024 1024"
|
|
width="1em"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<path
|
|
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
|
|
/>
|
|
</svg>
|
|
</i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders ./components/auto-complete/demo/uncertain-category.md correctly 1`] = `
|
|
<div
|
|
class="global-search-wrapper"
|
|
style="width:300px"
|
|
>
|
|
<div
|
|
class="ant-select-lg ant-select-lg global-search ant-select-show-search ant-select-auto-complete ant-select ant-select-combobox ant-select-enabled"
|
|
style="width:100%"
|
|
>
|
|
<div
|
|
aria-autocomplete="list"
|
|
aria-expanded="false"
|
|
aria-haspopup="true"
|
|
class="ant-select-selection
|
|
ant-select-selection--single"
|
|
role="combobox"
|
|
>
|
|
<div
|
|
class="ant-select-selection__rendered"
|
|
>
|
|
<div
|
|
class="ant-select-selection__placeholder"
|
|
style="display:block;user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
input here
|
|
</div>
|
|
<ul>
|
|
<li
|
|
class="ant-select-search ant-select-search--inline"
|
|
>
|
|
<div
|
|
class="ant-select-search__field__wrap"
|
|
>
|
|
<span
|
|
class="ant-select-search__field ant-input-affix-wrapper"
|
|
>
|
|
<input
|
|
class="ant-input"
|
|
type="text"
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-input-suffix"
|
|
>
|
|
<button
|
|
class="ant-btn search-btn ant-btn-primary ant-btn-lg"
|
|
type="button"
|
|
>
|
|
<i
|
|
class="anticon anticon-search"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class=""
|
|
data-icon="search"
|
|
fill="currentColor"
|
|
height="1em"
|
|
viewBox="0 0 1024 1024"
|
|
width="1em"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<path
|
|
d="M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1c-3.1 3.1-3.1 8.2 0 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6C473 696.1 537.7 720 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2z"
|
|
/>
|
|
</svg>
|
|
</i>
|
|
</button>
|
|
</span>
|
|
</span>
|
|
<span
|
|
class="ant-select-search__field__mirror"
|
|
>
|
|
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<span
|
|
class="ant-select-arrow"
|
|
style="user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
<i
|
|
class="anticon anticon-down ant-select-arrow-icon"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class=""
|
|
data-icon="down"
|
|
fill="currentColor"
|
|
height="1em"
|
|
viewBox="0 0 1024 1024"
|
|
width="1em"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<path
|
|
d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
|
|
/>
|
|
</svg>
|
|
</i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|