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.
1290 lines
43 KiB
1290 lines
43 KiB
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`renders components/auto-complete/demo/basic.tsx correctly 1`] = `
|
|
Array [
|
|
<div
|
|
class="ant-select ant-select-auto-complete ant-select-single ant-select-show-search"
|
|
style="width:200px"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<input
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-select-selection-search-input"
|
|
role="combobox"
|
|
type="search"
|
|
value=""
|
|
/>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
>
|
|
input here
|
|
</span>
|
|
</div>
|
|
</div>,
|
|
<br />,
|
|
<br />,
|
|
<div
|
|
class="ant-select ant-select-auto-complete ant-select-single ant-select-show-search"
|
|
style="width:200px"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<input
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-select-selection-search-input"
|
|
role="combobox"
|
|
type="search"
|
|
value=""
|
|
/>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
>
|
|
control mode
|
|
</span>
|
|
</div>
|
|
</div>,
|
|
]
|
|
`;
|
|
|
|
exports[`renders components/auto-complete/demo/certain-category.tsx correctly 1`] = `
|
|
<div
|
|
class="ant-select ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search"
|
|
style="width:250px"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<span
|
|
class="ant-input-group-wrapper ant-input-search ant-input-search-large ant-select-selection-search-input ant-input-group-wrapper-lg"
|
|
>
|
|
<span
|
|
class="ant-input-wrapper ant-input-group"
|
|
>
|
|
<input
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-input ant-input-lg"
|
|
placeholder="input here"
|
|
role="combobox"
|
|
type="search"
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-input-group-addon"
|
|
>
|
|
<button
|
|
class="ant-btn ant-btn-default ant-btn-lg ant-btn-icon-only ant-input-search-button"
|
|
type="button"
|
|
>
|
|
<span
|
|
aria-label="search"
|
|
class="anticon anticon-search"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
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>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders components/auto-complete/demo/custom.tsx correctly 1`] = `
|
|
<div
|
|
class="ant-select ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search"
|
|
style="width:200px"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<textarea
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-input ant-select-selection-search-input custom"
|
|
placeholder="input here"
|
|
role="combobox"
|
|
style="height:50px"
|
|
type="search"
|
|
/>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders components/auto-complete/demo/form-debug.tsx correctly 1`] = `
|
|
<form
|
|
class="ant-form ant-form-horizontal"
|
|
style="margin:0 auto"
|
|
>
|
|
<div
|
|
class="ant-form-item"
|
|
>
|
|
<div
|
|
class="ant-row ant-form-item-row"
|
|
>
|
|
<div
|
|
class="ant-col ant-form-item-label ant-col-xs-24 ant-col-sm-8"
|
|
>
|
|
<label
|
|
class=""
|
|
title="单独 AutoComplete"
|
|
>
|
|
单独 AutoComplete
|
|
</label>
|
|
</div>
|
|
<div
|
|
class="ant-col ant-form-item-control ant-col-xs-24 ant-col-sm-16"
|
|
>
|
|
<div
|
|
class="ant-form-item-control-input"
|
|
>
|
|
<div
|
|
class="ant-form-item-control-input-content"
|
|
>
|
|
<div
|
|
class="ant-select ant-select-in-form-item ant-select-auto-complete ant-select-single ant-select-show-search"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<input
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-select-selection-search-input"
|
|
role="combobox"
|
|
type="search"
|
|
value=""
|
|
/>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="ant-form-item"
|
|
>
|
|
<div
|
|
class="ant-row ant-form-item-row"
|
|
>
|
|
<div
|
|
class="ant-col ant-form-item-label ant-col-xs-24 ant-col-sm-8"
|
|
>
|
|
<label
|
|
class=""
|
|
title="单独 TreeSelect"
|
|
>
|
|
单独 TreeSelect
|
|
</label>
|
|
</div>
|
|
<div
|
|
class="ant-col ant-form-item-control ant-col-xs-24 ant-col-sm-16"
|
|
>
|
|
<div
|
|
class="ant-form-item-control-input"
|
|
>
|
|
<div
|
|
class="ant-form-item-control-input-content"
|
|
>
|
|
<div
|
|
class="ant-select ant-tree-select ant-select-in-form-item ant-select-single ant-select-show-arrow"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<input
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-select-selection-search-input"
|
|
readonly=""
|
|
role="combobox"
|
|
style="opacity:0"
|
|
type="search"
|
|
unselectable="on"
|
|
value=""
|
|
/>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
<span
|
|
aria-hidden="true"
|
|
class="ant-select-arrow"
|
|
style="user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
<span
|
|
aria-label="down"
|
|
class="anticon anticon-down ant-select-suffix"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
data-icon="down"
|
|
fill="currentColor"
|
|
focusable="false"
|
|
height="1em"
|
|
viewBox="64 64 896 896"
|
|
width="1em"
|
|
>
|
|
<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>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="ant-form-item"
|
|
>
|
|
<div
|
|
class="ant-row ant-form-item-row"
|
|
>
|
|
<div
|
|
class="ant-col ant-form-item-label ant-col-xs-24 ant-col-sm-8"
|
|
>
|
|
<label
|
|
class=""
|
|
title="添加 Input.Group 正常"
|
|
>
|
|
添加 Input.Group 正常
|
|
</label>
|
|
</div>
|
|
<div
|
|
class="ant-col ant-form-item-control ant-col-xs-24 ant-col-sm-16"
|
|
>
|
|
<div
|
|
class="ant-form-item-control-input"
|
|
>
|
|
<div
|
|
class="ant-form-item-control-input-content"
|
|
>
|
|
<span
|
|
class="ant-input-group ant-input-group-compact"
|
|
>
|
|
<div
|
|
class="ant-select ant-tree-select ant-select-single ant-select-show-arrow"
|
|
style="width:30%"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<input
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-select-selection-search-input"
|
|
readonly=""
|
|
role="combobox"
|
|
style="opacity:0"
|
|
type="search"
|
|
unselectable="on"
|
|
value=""
|
|
/>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
<span
|
|
aria-hidden="true"
|
|
class="ant-select-arrow"
|
|
style="user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
<span
|
|
aria-label="down"
|
|
class="anticon anticon-down ant-select-suffix"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
data-icon="down"
|
|
fill="currentColor"
|
|
focusable="false"
|
|
height="1em"
|
|
viewBox="64 64 896 896"
|
|
width="1em"
|
|
>
|
|
<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>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="ant-select ant-select-auto-complete ant-select-single ant-select-show-search"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<input
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-select-selection-search-input"
|
|
role="combobox"
|
|
type="search"
|
|
value=""
|
|
/>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="ant-form-item"
|
|
>
|
|
<div
|
|
class="ant-row ant-form-item-row"
|
|
>
|
|
<div
|
|
class="ant-col ant-form-item-label ant-col-xs-24 ant-col-sm-8"
|
|
>
|
|
<label
|
|
class=""
|
|
title="包含 search 图标正常"
|
|
>
|
|
包含 search 图标正常
|
|
</label>
|
|
</div>
|
|
<div
|
|
class="ant-col ant-form-item-control ant-col-xs-24 ant-col-sm-16"
|
|
>
|
|
<div
|
|
class="ant-form-item-control-input"
|
|
>
|
|
<div
|
|
class="ant-form-item-control-input-content"
|
|
>
|
|
<div
|
|
class="ant-select ant-select-in-form-item ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<span
|
|
class="ant-input-affix-wrapper ant-select-selection-search-input"
|
|
>
|
|
<input
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-input"
|
|
role="combobox"
|
|
type="search"
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-input-suffix"
|
|
>
|
|
<span
|
|
aria-label="search"
|
|
class="anticon anticon-search"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
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>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="ant-form-item"
|
|
>
|
|
<div
|
|
class="ant-row ant-form-item-row"
|
|
>
|
|
<div
|
|
class="ant-col ant-form-item-label ant-col-xs-24 ant-col-sm-8"
|
|
>
|
|
<label
|
|
class=""
|
|
title="同时有 Input.Group 和图标发生移位"
|
|
>
|
|
同时有 Input.Group 和图标发生移位
|
|
</label>
|
|
</div>
|
|
<div
|
|
class="ant-col ant-form-item-control ant-col-xs-24 ant-col-sm-16"
|
|
>
|
|
<div
|
|
class="ant-form-item-control-input"
|
|
>
|
|
<div
|
|
class="ant-form-item-control-input-content"
|
|
>
|
|
<span
|
|
class="ant-input-group ant-input-group-compact"
|
|
>
|
|
<div
|
|
class="ant-select ant-tree-select ant-select-single ant-select-show-arrow"
|
|
style="width:30%"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<input
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-select-selection-search-input"
|
|
readonly=""
|
|
role="combobox"
|
|
style="opacity:0"
|
|
type="search"
|
|
unselectable="on"
|
|
value=""
|
|
/>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
<span
|
|
aria-hidden="true"
|
|
class="ant-select-arrow"
|
|
style="user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
<span
|
|
aria-label="down"
|
|
class="anticon anticon-down ant-select-suffix"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
data-icon="down"
|
|
fill="currentColor"
|
|
focusable="false"
|
|
height="1em"
|
|
viewBox="64 64 896 896"
|
|
width="1em"
|
|
>
|
|
<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>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="ant-select ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<span
|
|
class="ant-input-affix-wrapper ant-select-selection-search-input"
|
|
>
|
|
<input
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-input"
|
|
role="combobox"
|
|
type="search"
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-input-suffix"
|
|
>
|
|
<span
|
|
aria-label="search"
|
|
class="anticon anticon-search"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
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>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="ant-form-item"
|
|
>
|
|
<div
|
|
class="ant-row ant-form-item-row"
|
|
>
|
|
<div
|
|
class="ant-col ant-form-item-label ant-col-xs-24 ant-col-sm-8"
|
|
>
|
|
<label
|
|
class=""
|
|
title="同时有 Input.Group 和 Search 组件发生移位"
|
|
>
|
|
同时有 Input.Group 和 Search 组件发生移位
|
|
</label>
|
|
</div>
|
|
<div
|
|
class="ant-col ant-form-item-control ant-col-xs-24 ant-col-sm-16"
|
|
>
|
|
<div
|
|
class="ant-form-item-control-input"
|
|
>
|
|
<div
|
|
class="ant-form-item-control-input-content"
|
|
>
|
|
<span
|
|
class="ant-input-group ant-input-group-compact"
|
|
>
|
|
<div
|
|
class="ant-select ant-tree-select ant-select-single ant-select-show-arrow"
|
|
style="width:30%"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<input
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-select-selection-search-input"
|
|
readonly=""
|
|
role="combobox"
|
|
style="opacity:0"
|
|
type="search"
|
|
unselectable="on"
|
|
value=""
|
|
/>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
<span
|
|
aria-hidden="true"
|
|
class="ant-select-arrow"
|
|
style="user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
<span
|
|
aria-label="down"
|
|
class="anticon anticon-down ant-select-suffix"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
data-icon="down"
|
|
fill="currentColor"
|
|
focusable="false"
|
|
height="1em"
|
|
viewBox="64 64 896 896"
|
|
width="1em"
|
|
>
|
|
<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>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="ant-select ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<span
|
|
class="ant-input-group-wrapper ant-input-search ant-select-selection-search-input"
|
|
>
|
|
<span
|
|
class="ant-input-wrapper ant-input-group"
|
|
>
|
|
<input
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-input"
|
|
role="combobox"
|
|
type="search"
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-input-group-addon"
|
|
>
|
|
<button
|
|
class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button"
|
|
type="button"
|
|
>
|
|
<span
|
|
aria-label="search"
|
|
class="anticon anticon-search"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
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>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="ant-form-item"
|
|
>
|
|
<div
|
|
class="ant-row ant-form-item-row"
|
|
>
|
|
<div
|
|
class="ant-col ant-form-item-label ant-col-xs-24 ant-col-sm-8"
|
|
>
|
|
<label
|
|
class=""
|
|
title="Input Group 和 Button 结合"
|
|
>
|
|
Input Group 和 Button 结合
|
|
</label>
|
|
</div>
|
|
<div
|
|
class="ant-col ant-form-item-control ant-col-xs-24 ant-col-sm-16"
|
|
>
|
|
<div
|
|
class="ant-form-item-control-input"
|
|
>
|
|
<div
|
|
class="ant-form-item-control-input-content"
|
|
>
|
|
<span
|
|
class="ant-input-group ant-input-group-compact"
|
|
>
|
|
<div
|
|
class="ant-select ant-tree-select ant-select-single ant-select-show-arrow"
|
|
style="width:20%"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<input
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-select-selection-search-input"
|
|
readonly=""
|
|
role="combobox"
|
|
style="opacity:0"
|
|
type="search"
|
|
unselectable="on"
|
|
value=""
|
|
/>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
<span
|
|
aria-hidden="true"
|
|
class="ant-select-arrow"
|
|
style="user-select:none;-webkit-user-select:none"
|
|
unselectable="on"
|
|
>
|
|
<span
|
|
aria-label="down"
|
|
class="anticon anticon-down ant-select-suffix"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
data-icon="down"
|
|
fill="currentColor"
|
|
focusable="false"
|
|
height="1em"
|
|
viewBox="64 64 896 896"
|
|
width="1em"
|
|
>
|
|
<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>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="ant-select ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<span
|
|
class="ant-input-group-wrapper ant-input-search ant-select-selection-search-input"
|
|
>
|
|
<span
|
|
class="ant-input-wrapper ant-input-group"
|
|
>
|
|
<input
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-input"
|
|
role="combobox"
|
|
type="search"
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-input-group-addon"
|
|
>
|
|
<button
|
|
class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button"
|
|
type="button"
|
|
>
|
|
<span
|
|
aria-label="search"
|
|
class="anticon anticon-search"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
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>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<button
|
|
class="ant-btn ant-btn-primary"
|
|
type="button"
|
|
>
|
|
<span
|
|
aria-label="search"
|
|
class="anticon anticon-search"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
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>
|
|
Search
|
|
</span>
|
|
</button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
`;
|
|
|
|
exports[`renders components/auto-complete/demo/non-case-sensitive.tsx correctly 1`] = `
|
|
<div
|
|
class="ant-select ant-select-auto-complete ant-select-single ant-select-show-search"
|
|
style="width:200px"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<input
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-select-selection-search-input"
|
|
role="combobox"
|
|
type="search"
|
|
value=""
|
|
/>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
>
|
|
try to type \`b\`
|
|
</span>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders components/auto-complete/demo/options.tsx correctly 1`] = `
|
|
<div
|
|
class="ant-select ant-select-auto-complete ant-select-single ant-select-show-search"
|
|
style="width:200px"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<input
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-select-selection-search-input"
|
|
role="combobox"
|
|
type="search"
|
|
value=""
|
|
/>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
>
|
|
input here
|
|
</span>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders components/auto-complete/demo/render-panel.tsx correctly 1`] = `
|
|
<div
|
|
class="ant-space ant-space-vertical"
|
|
style="display:flex"
|
|
>
|
|
<div
|
|
class="ant-space-item"
|
|
style="margin-bottom:8px"
|
|
>
|
|
<button
|
|
aria-checked="false"
|
|
class="ant-switch"
|
|
role="switch"
|
|
type="button"
|
|
>
|
|
<div
|
|
class="ant-switch-handle"
|
|
/>
|
|
<span
|
|
class="ant-switch-inner"
|
|
>
|
|
<span
|
|
class="ant-switch-inner-checked"
|
|
/>
|
|
<span
|
|
class="ant-switch-inner-unchecked"
|
|
/>
|
|
</span>
|
|
</button>
|
|
</div>
|
|
<div
|
|
class="ant-space-item"
|
|
>
|
|
<div
|
|
style="padding-bottom:0;position:relative;width:fit-content;min-width:0"
|
|
>
|
|
<div
|
|
class="ant-select ant-select-auto-complete ant-select-single ant-select-show-search"
|
|
style="width:120px;margin:0"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<input
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-select-selection-search-input"
|
|
role="combobox"
|
|
type="search"
|
|
value="lucy"
|
|
/>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders components/auto-complete/demo/status.tsx correctly 1`] = `
|
|
<div
|
|
class="ant-space ant-space-vertical"
|
|
style="width:100%"
|
|
>
|
|
<div
|
|
class="ant-space-item"
|
|
style="margin-bottom:8px"
|
|
>
|
|
<div
|
|
class="ant-select ant-select-status-error ant-select-auto-complete ant-select-single ant-select-show-search"
|
|
style="width:200px"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<input
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-select-selection-search-input"
|
|
role="combobox"
|
|
type="search"
|
|
value=""
|
|
/>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="ant-space-item"
|
|
>
|
|
<div
|
|
class="ant-select ant-select-status-warning ant-select-auto-complete ant-select-single ant-select-show-search"
|
|
style="width:200px"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<input
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-select-selection-search-input"
|
|
role="combobox"
|
|
type="search"
|
|
value=""
|
|
/>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`renders components/auto-complete/demo/uncertain-category.tsx correctly 1`] = `
|
|
<div
|
|
class="ant-select ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search"
|
|
style="width:300px"
|
|
>
|
|
<div
|
|
class="ant-select-selector"
|
|
>
|
|
<span
|
|
class="ant-select-selection-search"
|
|
>
|
|
<span
|
|
class="ant-input-group-wrapper ant-input-search ant-input-search-large ant-input-search-with-button ant-select-selection-search-input ant-input-group-wrapper-lg"
|
|
>
|
|
<span
|
|
class="ant-input-wrapper ant-input-group"
|
|
>
|
|
<input
|
|
aria-activedescendant="undefined_list_0"
|
|
aria-autocomplete="list"
|
|
aria-controls="undefined_list"
|
|
aria-expanded="false"
|
|
aria-haspopup="listbox"
|
|
aria-owns="undefined_list"
|
|
autocomplete="off"
|
|
class="ant-input ant-input-lg"
|
|
placeholder="input here"
|
|
role="combobox"
|
|
type="search"
|
|
value=""
|
|
/>
|
|
<span
|
|
class="ant-input-group-addon"
|
|
>
|
|
<button
|
|
class="ant-btn ant-btn-primary ant-btn-lg ant-input-search-button"
|
|
type="button"
|
|
>
|
|
<span
|
|
aria-label="search"
|
|
class="anticon anticon-search"
|
|
role="img"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
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>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
<span
|
|
class="ant-select-selection-placeholder"
|
|
/>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|