feat: 支持openDialog api

This commit is contained in:
muwoo
2021-06-11 10:03:42 +08:00
parent 31d57fc404
commit d0e489c36a
4 changed files with 24 additions and 5 deletions

View File

@@ -14,7 +14,10 @@ function getWindowHeight(searchList) {
}
function searchKeyValues(lists, value){
return lists.filter(item => item.indexOf(value) >= 0)
return lists.filter(item => {
if (typeof item === 'string') return item.indexOf(value) >= 0;
return item.type.indexOf(value) >= 0;
})
}
function existOrNot(path) {