Skip to content

Commit

Permalink
Merge pull request #145 from suyuan32/dev
Browse files Browse the repository at this point in the history
fix(icon): custom icon value in picker
  • Loading branch information
suyuan32 authored Dec 3, 2023
2 parents fa75d05 + 5e272e2 commit 886fbaa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/Icon/src/IconPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@
import { useI18n } from '/@/hooks/web/useI18n';
import svgIcons from 'virtual:svg-icons-names';
import { copyText } from '/@/utils/copyTextToClipboard';
// 没有使用别名引入,是因为WebStorm当前版本还不能正确识别,会报unused警告
const AInput = Input;
const APopover = Popover;
const APagination = Pagination;
Expand Down Expand Up @@ -175,12 +174,12 @@
function handleSearchChange(e: Event) {
const value = (e.target as HTMLInputElement).value;
if (!value) {
setCurrentPage(1);
currentList.value = icons;
return;
}
currentSelect.value = value
currentList.value = icons.filter((item) => item.includes(value));
}
</script>
Expand Down

0 comments on commit 886fbaa

Please sign in to comment.