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

@@ -4,12 +4,12 @@
<a-input
id="search"
class="main-input"
placeholder="Hi, Rubick2"
@input="(e) => changeValue(e)"
@keydown.down="() => emit('changeCurrent', 1)"
@keydown.up="() => emit('changeCurrent', -1)"
@keydown="checkNeedInit"
:value="searchValue"
:placeholder="placeholder || 'Hi, Rubick2'"
>
<template #suffix>
<div @click="() => emit('openMenu')" class="suffix-tool" >
@@ -31,6 +31,10 @@ const props = defineProps({
type: [String, Number],
default: "",
},
placeholder: {
type: String,
default: "",
},
currentPlugin: {},
});