mirror of https://github.com/ElemeFE/element
parent
c1083c25c0
commit
74fb8ac225
|
@ -185,7 +185,7 @@
|
||||||
|
|
||||||
showClose() {
|
showClose() {
|
||||||
let hasValue = this.multiple
|
let hasValue = this.multiple
|
||||||
? this.value.length > 0
|
? Array.isArray(this.value) && this.value.length > 0
|
||||||
: this.value !== undefined && this.value !== null && this.value !== '';
|
: this.value !== undefined && this.value !== null && this.value !== '';
|
||||||
let criteria = this.clearable &&
|
let criteria = this.clearable &&
|
||||||
!this.selectDisabled &&
|
!this.selectDisabled &&
|
||||||
|
|
Loading…
Reference in New Issue