xaboy 6 年 前
コミット
67aa55fda0
1 ファイル変更0 行追加11 行削除
  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 array
-     */
-    public function build()
-    {
-        $rule = parent::build();
-        if (!count($rule['props']->slot)) unset($rule['props']->slot);
-
-        return $rule;
-    }
-
     public function createValidate()
     {
         return Elm::validateStr();