Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: TreeSelect removeIcon and clearIcon not working (#18949)
* add tree-select async demo * TreeSelect支持clearIcon和removeIcon * remove docs and demo * run test * clear code * add ui test
- Loading branch information
Showing
4 changed files
with
141 additions
and
10 deletions.
There are no files selected for viewing
93 changes: 93 additions & 0 deletions
93
components/tree-select/__tests__/__snapshots__/index.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`TreeSelect TreeSelect Custom Icons should support customized icons 1`] = ` | ||
<span | ||
aria-haspopup="listbox" | ||
class="ant-select ant-select-enabled ant-select-allow-clear" | ||
role="combobox" | ||
tabindex="-1" | ||
> | ||
<span | ||
class="ant-select-selection ant-select-selection--multiple" | ||
> | ||
<ul | ||
class="ant-select-selection__rendered" | ||
role="menubar" | ||
> | ||
<li | ||
class="ant-select-selection__choice" | ||
role="menuitem" | ||
style="user-select: none;" | ||
unselectable="unselectable" | ||
> | ||
<span | ||
class="ant-select-selection__choice__remove" | ||
> | ||
<span> | ||
remove | ||
</span> | ||
</span> | ||
<span | ||
class="ant-select-selection__choice__content" | ||
> | ||
leaf1 | ||
</span> | ||
</li> | ||
<li | ||
class="ant-select-selection__choice" | ||
role="menuitem" | ||
style="user-select: none;" | ||
unselectable="unselectable" | ||
> | ||
<span | ||
class="ant-select-selection__choice__remove" | ||
> | ||
<span> | ||
remove | ||
</span> | ||
</span> | ||
<span | ||
class="ant-select-selection__choice__content" | ||
> | ||
leaf2 | ||
</span> | ||
</li> | ||
<li | ||
class="ant-select-search ant-select-search--inline" | ||
> | ||
<span | ||
class="ant-select-search__field__wrap" | ||
> | ||
<input | ||
aria-autocomplete="list" | ||
aria-label="filter select" | ||
aria-multiline="false" | ||
class="ant-select-search__field" | ||
style="width: 0px;" | ||
type="text" | ||
value="" | ||
/> | ||
<span | ||
class="ant-select-search__field__mirror" | ||
> | ||
</span> | ||
</span> | ||
</li> | ||
</ul> | ||
<span | ||
class="ant-select-selection__clear" | ||
> | ||
<span> | ||
clear | ||
</span> | ||
</span> | ||
<span | ||
class="ant-select-search__field__placeholder" | ||
style="display: none;" | ||
> | ||
Please select | ||
</span> | ||
</span> | ||
</span> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters