Commit 922145732fa53523adf65736a886009bf66b692b

Authored by WJD
Committed by GitHub
1 parent b6b0e9e7

Update Select.vue

增加单选下拉的值为 null 时,不清空框内文字的情况
Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
src/components/select/select.vue
@@ -155,6 +155,8 @@ @@ -155,6 +155,8 @@
155 if (!this.model.length) { 155 if (!this.model.length) {
156 status = true; 156 status = true;
157 } 157 }
  158 + } else if( this.model === null){
  159 + status = true;
158 } 160 }
159 161
160 return status; 162 return status;