xaboy 6 years ago
parent
commit
67aa55fda0
1 changed files with 0 additions and 11 deletions
  1. 0 11
      src/UI/Elm/Components/Switches.php

+ 0 - 11
src/UI/Elm/Components/Switches.php

@@ -61,17 +61,6 @@ class Switches extends FormComponent
         return 'switch';
         return 'switch';
     }
     }
 
 
-    /**
-     * @return array
-     */
-    public function build()
-    {
-        $rule = parent::build();
-        if (!count($rule['props']->slot)) unset($rule['props']->slot);
-
-        return $rule;
-    }
-
     public function createValidate()
     public function createValidate()
     {
     {
         return Elm::validateStr();
         return Elm::validateStr();