mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 11:17:38 +08:00
fix eslint: Unary word operator 'typeof' must be followed by whitespace
This commit is contained in:
parent
e5fa4acfcc
commit
1b40caf855
@ -93,7 +93,7 @@
|
||||
handleSelect(filterValue) {
|
||||
this.filterValue = filterValue;
|
||||
|
||||
if (typeof(filterValue) === "number" && filterValue >= 0) {
|
||||
if (typeof filterValue === "number" && filterValue >= 0) {
|
||||
this.confirmFilter(this.filteredValue);
|
||||
} else {
|
||||
this.confirmFilter([]);
|
||||
@ -129,7 +129,7 @@
|
||||
},
|
||||
set(value) {
|
||||
if (this.filteredValue) {
|
||||
if (typeof(value) === "number" && value >= 0) {
|
||||
if (typeof value === "number" && value >= 0) {
|
||||
this.filteredValue.splice(0, 1, value);
|
||||
} else {
|
||||
this.filteredValue.splice(0, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user