Browse Source

fix switch 组件

xaboy 6 years ago
parent
commit
c989324d29
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/UI/Elm/Components/Switches.php
  2. 1 1
      src/UI/Iview/Components/Switches.php

+ 1 - 1
src/UI/Elm/Components/Switches.php

@@ -56,7 +56,7 @@ class Switches extends FormComponent
         'validateEvent' => 'bool',
     ];
 
-    public function getRuleType()
+    public function getComponentName()
     {
         return 'switch';
     }

+ 1 - 1
src/UI/Iview/Components/Switches.php

@@ -41,7 +41,7 @@ class Switches extends FormComponent
         'falseValue' => 'string'
     ];
 
-    public function getRuleType()
+    public function getComponentName()
     {
         return 'switch';
     }