Browse Source

fix: radio 结果展示

lilinsen 5 years ago
parent
commit
5540ec71d0
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/packages/radio/demo.vue

+ 5 - 5
src/packages/radio/demo.vue

@@ -165,16 +165,16 @@ export default {
       if(!isNaN(val)){
         this.radioDisable = parseInt(val)
       }else{
-        if(val.split(',').length>0){          
+        if(val.split(',').length>1){          
           this.radioDisable = val.split(',').map(item=>{            
             return !isNaN(item)?parseInt(item):''
           })          
-        }
-        if(val === 'true'){
+        }else if(val === 'true'){
           this.radioDisable = true;
-        }
-        if(val === 'false'){
+        }else if(val === 'false'){
           this.radioDisable = false;
+        }else{
+          this.radioDisable = val;
         }
       }
     }