mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-11 05:11:59 +08:00
focus only on fields that are type text and number (#374)
This commit is contained in:
parent
460f6b9ada
commit
48ca22482c
@ -678,9 +678,11 @@ export default {
|
|||||||
async setFocus() {
|
async setFocus() {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
const fieldFocus = this.getterFieldList.find(itemField => {
|
const fieldFocus = this.getterFieldList.find(itemField => {
|
||||||
if (this.$refs.hasOwnProperty(itemField.columnName)) {
|
if (itemField.componentPath !== 'FieldSelect' && itemField.isDisplayed) {
|
||||||
if (fieldIsDisplayed(itemField) && !itemField.isReadOnly && itemField.isUpdateable) {
|
if (this.$refs.hasOwnProperty(itemField.columnName)) {
|
||||||
return true
|
if (fieldIsDisplayed(itemField) && !itemField.isReadOnly && itemField.isUpdateable) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user