mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-17 16:24:16 +08:00
✨ 支持 setSubInput API
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user