支持 setSubInput API

This commit is contained in:
muwoo
2021-12-07 11:19:08 +08:00
parent 1353c440aa
commit a9827c6db1
10 changed files with 60 additions and 13 deletions

View File

@@ -47,10 +47,11 @@ const createPluginManager = (): any => {
// @ts-ignore
// document.getElementById("search").value = "";
// state.searchValue = "";
setSearchValue("");
}
};
const { searchValue, onSearch } = searchManager();
const { searchValue, onSearch, setSearchValue, placeholder } = searchManager();
const { options } = optionsManager({
searchValue,
baseDir,
@@ -91,6 +92,7 @@ const createPluginManager = (): any => {
changeSelect,
options,
searchValue,
placeholder,
};
};