fix input 默认获取焦点

This commit is contained in:
Theluyuan 2023-02-16 14:28:33 +08:00
parent 4afba8dd1a
commit b1b09141ee
7 changed files with 12 additions and 10 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -609,7 +609,7 @@ const radioProps = props.getRadioProps(props.data, props.index);
<template v-else>
<template v-if="column.edit">
<span v-if="!editIndex[columnIndex]"> {{ data[column.key] }} </span>
<lay-input v-model="data[column.key]" v-else @keyup.enter = "editIndex[columnIndex] = false" @blur="editIndex[columnIndex] = false"></lay-input>
<lay-input :autofocus="true" v-model="data[column.key]" v-else @keyup.enter = "editIndex[columnIndex] = false" @blur="editIndex[columnIndex] = false"></lay-input>
</template>
<span v-else> {{ data[column.key] }} </span>
</template>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long