给文本框增加回车跳转下一个的事件

This commit is contained in:
季圣华
2021-10-29 00:27:11 +08:00
parent deead4b32b
commit 8f30705c79
17 changed files with 216 additions and 159 deletions

View File

@@ -15,7 +15,7 @@
</a-button>
</template>
<a-spin :spinning="confirmLoading">
<a-form :form="form">
<a-form :form="form" id="depotModal">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="仓库名称">
<a-input placeholder="请输入仓库名称" v-decorator.trim="[ 'name', validatorRules.name]" />
</a-form-item>
@@ -48,6 +48,7 @@
<script>
import pick from 'lodash.pick'
import {addDepot,editDepot,checkDepot,getUserList } from '@/api/api'
import {autoJumpNextInput} from "@/utils/util"
export default {
name: "DepotModal",
data () {
@@ -91,6 +92,7 @@
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.model,
'name', 'address', 'warehousing', 'truckage', 'principal', 'sort', 'remark'))
autoJumpNextInput('depotModal')
});
},
close () {