支持 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

@@ -37,7 +37,8 @@ window.rubick = {
ipcSendSync("setExpendHeight", height);
},
setSubInput(onChange, placeholder = "", isFocus) {
typeof cb === "function" && (window.rubick.hooks.onSubInputChange = onChange);
typeof onChange === "function" &&
(window.rubick.hooks.onSubInputChange = onChange);
ipcSendSync("setSubInput", {
placeholder,
isFocus,