浏览代码

修复switch 组件值类型错误

xaboy 6 年之前
父节点
当前提交
ff4e9a8315
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 = [
     protected static $propsRule = [
         'size' => 'string',
         'size' => 'string',
         'disabled' => 'bool',
         'disabled' => 'bool',
-        'trueValue' => 'string',
-        'falseValue' => 'string'
+        'trueValue' => '',
+        'falseValue' => ''
     ];
     ];
 
 
     public function getComponentName()
     public function getComponentName()