Commit 87f448f8 authored by hetech's avatar hetech Committed by GitHub

chore: optimize code (#13214)

parent 168bf64b
......@@ -99,7 +99,7 @@
return this.disabled || this._radioGroup.disabled || (this.elForm || {}).disabled;
},
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;
},
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;
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment