Browse Source

修复switch 组件值类型错误

xaboy 5 years ago
parent
commit
ff4e9a8315
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/UI/Iview/Components/Switches.php

+ 2 - 2
src/UI/Iview/Components/Switches.php

@@ -38,8 +38,8 @@ class Switches extends FormComponent
     protected static $propsRule = [
         'size' => 'string',
         'disabled' => 'bool',
-        'trueValue' => 'string',
-        'falseValue' => 'string'
+        'trueValue' => '',
+        'falseValue' => ''
     ];
 
     public function getComponentName()