We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40bfcd5 commit 6e9b322Copy full SHA for 6e9b322
src/components/GiIconSelector/index.vue
@@ -122,7 +122,7 @@ const search = () => {
122
if (searchValue.value) {
123
const temp = searchValue.value.toLowerCase()
124
searchList.value = iconList.filter((item) => {
125
- return item.toLowerCase().startsWith((temp.startsWith('icon') ? '' : 'icon') + temp)
+ return item.toLowerCase().includes((temp))
126
})
127
total.value = searchList.value.length
128
currentPageIconList.value = searchList.value.slice(0, pageSize)
0 commit comments