mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-12 06:57:11 +08:00
fix: 修复搜索图标不生效,并支持模糊搜索 (#30)
This commit is contained in:
@@ -122,7 +122,7 @@ const search = () => {
|
||||
if (searchValue.value) {
|
||||
const temp = searchValue.value.toLowerCase()
|
||||
searchList.value = iconList.filter((item) => {
|
||||
return item.toLowerCase().startsWith((temp.startsWith('icon') ? '' : 'icon') + temp)
|
||||
return item.toLowerCase().includes((temp))
|
||||
})
|
||||
total.value = searchList.value.length
|
||||
currentPageIconList.value = searchList.value.slice(0, pageSize)
|
||||
|
Reference in New Issue
Block a user