core/Utils.php
public static function camelToAttr($name)
    {
        $name = preg_replace_callback('@[A-Z]@', function ($m) {
            return '-' . strtolower($m[0]);
        }, $name);
        $name = ltrim($name, '-');
        return $name;
    }
public static function camelToAttr($name)
    {
        $name = preg_replace_callback('@[A-Z]@', function ($m) {
            return '-' . strtolower($m[0]);
        }, $name);
        $name = ltrim($name, '-');
        return $name;
    }
驼峰转属性
@param $name
@return null|string|string[]