♻️ search 框输入交互优化

This commit is contained in:
muwoo
2021-12-08 15:51:54 +08:00
parent 951f21f5fa
commit 8a35e60e48
17 changed files with 253 additions and 24 deletions

View File

@@ -9,6 +9,7 @@
@changeSelect="changeSelect"
:searchValue="searchValue"
:placeholder="placeholder"
@choosePlugin="choosePlugin"
/>
</div>
<Result
@@ -56,6 +57,7 @@ getPluginInfo({
watch([searchValue], () => {
currentSelect.value = 0;
if (currentPlugin.value.name) return;
nextTick(() => {
ipcRenderer.sendSync("msg-trigger", {
type: "setExpendHeight",
@@ -81,6 +83,12 @@ const openMenu = () => {
cmd: "插件市场",
});
};
const choosePlugin = () => {
const currentChoose = options.value[currentSelect.value];
console.log(currentChoose);
currentChoose.click();
};
</script>
<style lang="less">