Skip to content

Commit

Permalink
fix(icon): custom icon value in picker
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan32 committed Dec 3, 2023
1 parent 27b9f08 commit 5e272e2
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 5e272e2

Please sign in to comment.