浏览代码

fix switch 组件

xaboy 6 年之前
父节点
当前提交
c989324d29
共有 2 个文件被更改,包括 2 次插入2 次删除
  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';
     }