xaboy 5 years ago
parent
commit
d3e6f584a5
1 changed files with 2 additions and 4 deletions
  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();
     }
 }