mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-11 05:11:59 +08:00
reolve the activate focus primary field (#417)
This commit is contained in:
parent
8c9e2f0513
commit
e6fd209d2b
@ -329,7 +329,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
showMessage,
|
showMessage,
|
||||||
focusField() {
|
focusField() {
|
||||||
if (this.isDisplayed && this.isMandatory && !this.isReadOnly) {
|
if (this.isDisplayed && !this.isReadOnly) {
|
||||||
this.$refs[this.field.columnName].activeFocus()
|
this.$refs[this.field.columnName].activeFocus()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -680,7 +680,7 @@ export default {
|
|||||||
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 (this.$refs.hasOwnProperty(itemField.columnName)) {
|
||||||
if (fieldIsDisplayed(itemField) && !itemField.isReadOnly && itemField.isUpdateable) {
|
if (fieldIsDisplayed(itemField) && !itemField.isReadOnly && itemField.isUpdateable && itemField.componentPath !== 'FieldSelect') {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user