2019-09-23 18:49:13 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2020-03-20 16:03:13 +08:00
|
|
|
exports[`TreeSelect TreeSelect Custom Icons should \`treeIcon\` work 1`] = `
|
|
|
|
<div
|
|
|
|
class="ant-select ant-tree-select ant-select-single ant-select-show-arrow ant-select-open"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-select-selector"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-select-selection-search"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
aria-autocomplete="list"
|
|
|
|
aria-controls="rc_select_TEST_OR_SSR_list"
|
|
|
|
aria-expanded="true"
|
|
|
|
aria-haspopup="listbox"
|
|
|
|
aria-owns="rc_select_TEST_OR_SSR_list"
|
|
|
|
autocomplete="off"
|
|
|
|
class="ant-select-selection-search-input"
|
|
|
|
id="rc_select_TEST_OR_SSR"
|
|
|
|
readonly=""
|
|
|
|
role="combobox"
|
|
|
|
style="opacity: 0;"
|
2020-09-05 00:38:39 +08:00
|
|
|
type="search"
|
2020-05-12 14:57:05 +08:00
|
|
|
unselectable="on"
|
2020-03-20 16:03:13 +08:00
|
|
|
value=""
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
<span
|
|
|
|
class="ant-select-selection-placeholder"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div
|
2021-02-08 17:09:13 +08:00
|
|
|
class="ant-select-dropdown ant-tree-select-dropdown ant-slide-up-appear ant-slide-up-appear-prepare ant-slide-up"
|
2022-04-20 00:16:39 +08:00
|
|
|
style="opacity: 0; min-width: 0; width: 0px;"
|
2020-03-20 16:03:13 +08:00
|
|
|
>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="ant-select-tree"
|
2021-08-27 11:48:59 +08:00
|
|
|
role="tree"
|
2020-03-20 16:03:13 +08:00
|
|
|
>
|
2021-08-27 11:48:59 +08:00
|
|
|
<div>
|
2020-03-20 16:03:13 +08:00
|
|
|
<input
|
2021-08-27 11:48:59 +08:00
|
|
|
aria-label="for screen reader"
|
2020-03-20 16:03:13 +08:00
|
|
|
disabled=""
|
|
|
|
style="width: 0px; height: 0px; display: flex; overflow: hidden; opacity: 0; border: 0px; padding: 0px; margin: 0px;"
|
|
|
|
value=""
|
|
|
|
/>
|
|
|
|
</div>
|
2020-11-30 13:39:01 +08:00
|
|
|
<div
|
|
|
|
aria-hidden="true"
|
|
|
|
class="ant-select-tree-treenode"
|
2022-12-05 11:35:37 +08:00
|
|
|
style="position: absolute; pointer-events: none; visibility: hidden; height: 0px; overflow: hidden; border: 0px; padding: 0px;"
|
2020-11-30 13:39:01 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-select-tree-indent"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-select-tree-indent-unit"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-03-20 16:03:13 +08:00
|
|
|
<div
|
|
|
|
class="ant-select-tree-list"
|
2020-08-20 16:45:10 +08:00
|
|
|
style="position: relative;"
|
2020-03-20 16:03:13 +08:00
|
|
|
>
|
2020-08-20 16:45:10 +08:00
|
|
|
<div
|
|
|
|
class="ant-select-tree-list-holder"
|
|
|
|
style="max-height: 256px; overflow-y: auto;"
|
|
|
|
>
|
|
|
|
<div>
|
2020-03-20 16:03:13 +08:00
|
|
|
<div
|
2020-08-20 16:45:10 +08:00
|
|
|
class="ant-select-tree-list-holder-inner"
|
|
|
|
style="display: flex; flex-direction: column;"
|
2020-03-20 16:03:13 +08:00
|
|
|
>
|
2020-08-20 16:45:10 +08:00
|
|
|
<div
|
2021-09-27 15:54:06 +08:00
|
|
|
aria-grabbed="false"
|
2020-08-20 16:45:10 +08:00
|
|
|
class="ant-select-tree-treenode ant-select-tree-treenode-switcher-close ant-select-tree-treenode-leaf-last"
|
2021-09-27 15:54:06 +08:00
|
|
|
draggable="false"
|
2020-03-20 16:03:13 +08:00
|
|
|
>
|
|
|
|
<span
|
2020-11-30 13:39:01 +08:00
|
|
|
aria-hidden="true"
|
|
|
|
class="ant-select-tree-indent"
|
|
|
|
/>
|
|
|
|
<span
|
2020-08-20 16:45:10 +08:00
|
|
|
class="ant-select-tree-switcher ant-select-tree-switcher-noop"
|
|
|
|
/>
|
2020-03-20 16:03:13 +08:00
|
|
|
<span
|
2020-08-20 16:45:10 +08:00
|
|
|
class="ant-select-tree-node-content-wrapper ant-select-tree-node-content-wrapper-normal"
|
|
|
|
title="parent 1"
|
2020-03-20 16:03:13 +08:00
|
|
|
>
|
2020-08-20 16:45:10 +08:00
|
|
|
<span
|
|
|
|
class="ant-select-tree-iconEle ant-select-tree-icon__customize"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
Bamboo
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span
|
|
|
|
class="ant-select-tree-title"
|
|
|
|
>
|
|
|
|
parent 1
|
|
|
|
</span>
|
2020-03-20 16:03:13 +08:00
|
|
|
</span>
|
2020-08-20 16:45:10 +08:00
|
|
|
</div>
|
2020-03-20 16:03:13 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="ant-select-arrow"
|
|
|
|
style="user-select: none;"
|
|
|
|
unselectable="on"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
aria-label="down"
|
2020-06-24 23:28:54 +08:00
|
|
|
class="anticon anticon-down ant-select-suffix"
|
2020-03-20 16:03:13 +08:00
|
|
|
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>
|
|
|
|
`;
|
|
|
|
|
2019-09-23 18:49:13 +08:00
|
|
|
exports[`TreeSelect TreeSelect Custom Icons should support customized icons 1`] = `
|
2019-09-28 11:31:28 +08:00
|
|
|
<div
|
|
|
|
class="ant-select ant-tree-select ant-select-multiple ant-select-allow-clear ant-select-show-search"
|
2019-09-23 18:49:13 +08:00
|
|
|
>
|
2019-09-28 11:31:28 +08:00
|
|
|
<div
|
|
|
|
class="ant-select-selector"
|
2019-09-23 18:49:13 +08:00
|
|
|
>
|
2020-12-25 13:13:07 +08:00
|
|
|
<div
|
|
|
|
class="ant-select-selection-overflow"
|
2019-09-23 18:49:13 +08:00
|
|
|
>
|
2020-12-25 13:13:07 +08:00
|
|
|
<div
|
|
|
|
class="ant-select-selection-overflow-item"
|
|
|
|
style="opacity: 1;"
|
2019-09-23 18:49:13 +08:00
|
|
|
>
|
2020-12-25 13:13:07 +08:00
|
|
|
<span
|
|
|
|
class="ant-select-selection-item"
|
2021-08-27 11:48:59 +08:00
|
|
|
title="my leaf"
|
2020-12-25 13:13:07 +08:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-select-selection-item-content"
|
|
|
|
>
|
|
|
|
my leaf
|
|
|
|
</span>
|
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="ant-select-selection-item-remove"
|
|
|
|
style="user-select: none;"
|
|
|
|
unselectable="on"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
remove
|
|
|
|
</span>
|
|
|
|
</span>
|
2019-09-23 18:49:13 +08:00
|
|
|
</span>
|
2020-12-25 13:13:07 +08:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-select-selection-overflow-item"
|
|
|
|
style="opacity: 1;"
|
2019-09-28 11:31:28 +08:00
|
|
|
>
|
2020-12-25 13:13:07 +08:00
|
|
|
<span
|
|
|
|
class="ant-select-selection-item"
|
2021-08-27 11:48:59 +08:00
|
|
|
title="your leaf"
|
2020-12-25 13:13:07 +08:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-select-selection-item-content"
|
|
|
|
>
|
|
|
|
your leaf
|
|
|
|
</span>
|
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="ant-select-selection-item-remove"
|
|
|
|
style="user-select: none;"
|
|
|
|
unselectable="on"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
remove
|
|
|
|
</span>
|
|
|
|
</span>
|
2019-09-28 11:31:28 +08:00
|
|
|
</span>
|
2020-12-25 13:13:07 +08:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix"
|
|
|
|
style="opacity: 1;"
|
2019-09-28 11:31:28 +08:00
|
|
|
>
|
2020-12-25 13:13:07 +08:00
|
|
|
<div
|
|
|
|
class="ant-select-selection-search"
|
|
|
|
style="width: 0px;"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
aria-autocomplete="list"
|
|
|
|
aria-controls="rc_select_TEST_OR_SSR_list"
|
|
|
|
aria-haspopup="listbox"
|
|
|
|
aria-owns="rc_select_TEST_OR_SSR_list"
|
|
|
|
autocomplete="off"
|
|
|
|
class="ant-select-selection-search-input"
|
|
|
|
id="rc_select_TEST_OR_SSR"
|
|
|
|
readonly=""
|
|
|
|
role="combobox"
|
|
|
|
style="opacity: 0;"
|
|
|
|
type="search"
|
|
|
|
unselectable="on"
|
|
|
|
value=""
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="ant-select-selection-search-mirror"
|
|
|
|
>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-28 11:31:28 +08:00
|
|
|
</div>
|
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="ant-select-clear"
|
|
|
|
style="user-select: none;"
|
|
|
|
unselectable="on"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
clear
|
2019-09-23 18:49:13 +08:00
|
|
|
</span>
|
|
|
|
</span>
|
2019-09-28 11:31:28 +08:00
|
|
|
</div>
|
2019-09-23 18:49:13 +08:00
|
|
|
`;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
|
|
|
exports[`TreeSelect rtl render component should be rendered correctly in RTL direction 1`] = `
|
|
|
|
<div
|
|
|
|
class="ant-select ant-tree-select ant-select-rtl ant-select-single ant-select-show-arrow"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="ant-select-selector"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ant-select-selection-search"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
aria-autocomplete="list"
|
2021-12-04 17:06:36 +08:00
|
|
|
aria-controls="rc_select_TEST_OR_SSR_list"
|
2020-01-02 19:10:16 +08:00
|
|
|
aria-haspopup="listbox"
|
2021-12-04 17:06:36 +08:00
|
|
|
aria-owns="rc_select_TEST_OR_SSR_list"
|
2020-01-02 19:10:16 +08:00
|
|
|
autocomplete="off"
|
|
|
|
class="ant-select-selection-search-input"
|
2021-12-04 17:06:36 +08:00
|
|
|
id="rc_select_TEST_OR_SSR"
|
2020-01-02 19:10:16 +08:00
|
|
|
readonly=""
|
|
|
|
role="combobox"
|
2021-12-04 17:06:36 +08:00
|
|
|
style="opacity: 0;"
|
2020-09-05 00:38:39 +08:00
|
|
|
type="search"
|
2020-05-12 14:57:05 +08:00
|
|
|
unselectable="on"
|
2020-01-02 19:10:16 +08:00
|
|
|
value=""
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
<span
|
|
|
|
class="ant-select-selection-placeholder"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="ant-select-arrow"
|
2021-12-04 17:06:36 +08:00
|
|
|
style="user-select: none;"
|
2020-01-02 19:10:16 +08:00
|
|
|
unselectable="on"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
aria-label="down"
|
2020-06-24 23:28:54 +08:00
|
|
|
class="anticon anticon-down ant-select-suffix"
|
2020-01-02 19:10:16 +08:00
|
|
|
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>
|
|
|
|
`;
|