소스 검색

单选组件下拉项可和名称相同

zhouna 6 년 전
부모
커밋
1e57bc5dc0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/RadioDrop/index.jsx

+ 1 - 1
src/components/RadioDrop/index.jsx

@@ -40,7 +40,7 @@ class RadioDrop extends Component{
     if(hideTag){
       return style['no-tag'];
     }
-    if(value&&value!=placeholder){
+    if(value){
       return style['selected-tag'];
     }
     return style['tag'];