xaboy 5 年 前
コミット
d3e6f584a5
1 ファイル変更2 行追加4 行削除
  1. 2 4
      src/UI/Elm/Components/Tree.php

+ 2 - 4
src/UI/Elm/Components/Tree.php

@@ -53,6 +53,7 @@ class Tree extends FormComponent
 
     protected $defaultProps = [
         'type' => self::TYPE_CHECKED,
+        'showCheckbox' => true,
         'data' => []
     ];
 
@@ -102,9 +103,6 @@ class Tree extends FormComponent
 
     public function createValidate()
     {
-        if ($this->props['multiple'])
-            return Elm::validateArr();
-        else
-            return Elm::validateStr();
+        return Elm::validateArr();
     }
 }