mirror of https://github.com/ElemeFE/element
chore: optimize code (#13214)
parent
168bf64b57
commit
87f448f8dd
|
@ -99,7 +99,7 @@
|
||||||
return this.disabled || this._radioGroup.disabled || (this.elForm || {}).disabled;
|
return this.disabled || this._radioGroup.disabled || (this.elForm || {}).disabled;
|
||||||
},
|
},
|
||||||
tabIndex() {
|
tabIndex() {
|
||||||
return !this.isDisabled ? (this._radioGroup ? (this.value === this.label ? 0 : -1) : 0) : -1;
|
return (this.isDisabled || (this._radioGroup && this.value !== this.label)) ? -1 : 0;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,7 @@
|
||||||
: this.disabled || (this.elForm || {}).disabled;
|
: this.disabled || (this.elForm || {}).disabled;
|
||||||
},
|
},
|
||||||
tabIndex() {
|
tabIndex() {
|
||||||
return !this.isDisabled ? (this.isGroup ? (this.model === this.label ? 0 : -1) : 0) : -1;
|
return (this.isDisabled || (this.isGroup && this.model !== this.label)) ? -1 : 0;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue