mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-20 08:16:46 +08:00
回车键调整
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
<a-form layout="inline">
|
||||
<a-form-item class="select">
|
||||
<div>
|
||||
<a-input style="width: 276px; height: 40px; border-radius: 8px" v-model:value="searchParam.name" placeholder="请输入工号/讲师姓名进行检索" />
|
||||
<a-input style="width: 276px; height: 40px; border-radius: 8px" v-model:value="searchParam.name" placeholder="请输入工号/讲师姓名进行检索"
|
||||
v-on:keydown.enter="enterPressHadlerSearch" />
|
||||
</div>
|
||||
</a-form-item>
|
||||
<div style="display: flex; margin-bottom: 20px">
|
||||
@@ -587,8 +588,17 @@ const getTableDate = (obj) => {
|
||||
|
||||
|
||||
}
|
||||
//回车
|
||||
const enterPressHadlerSearch = e => {
|
||||
console.log("e",e);
|
||||
if (e.keyCode === 13) {
|
||||
searchSubmit()
|
||||
|
||||
}
|
||||
};
|
||||
return{
|
||||
...toRefs(state),
|
||||
enterPressHadlerSearch,
|
||||
rules,
|
||||
formRef,
|
||||
columns,
|
||||
|
||||
Reference in New Issue
Block a user