Browse Source

fix eslint: Unary word operator 'typeof' must be followed by whitespace

吴亮 8 năm trước cách đây
mục cha
commit
1b40caf855
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      packages/table/src/filter-panel.vue

+ 2 - 2
packages/table/src/filter-panel.vue

@@ -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);