소스 검색

Select: hide clear icon when value is null (#11460)

杨奕 7 년 전
부모
커밋
51f3035346
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/select/src/select.vue

+ 1 - 0
packages/select/src/select.vue

@@ -199,6 +199,7 @@
           this.inputHovering &&
           !this.multiple &&
           this.value !== undefined &&
+          this.value !== null &&
           this.value !== '';
         return criteria ? 'circle-close is-show-close' : (this.remote && this.filterable ? '' : 'arrow-up');
       },