update:更新form功能
This commit is contained in:
@@ -3,6 +3,18 @@ namespace catcher\library\form;
|
||||
|
||||
trait FormValidates
|
||||
{
|
||||
/**
|
||||
* 正则验证
|
||||
*
|
||||
* @time 2021年03月06日
|
||||
* @param string $pattern
|
||||
* @return \FormBuilder\UI\Elm\Validate
|
||||
*/
|
||||
public static function validatePattern(string $pattern): \FormBuilder\UI\Elm\Validate
|
||||
{
|
||||
return self::validateStr()->pattern($pattern);
|
||||
}
|
||||
|
||||
/**
|
||||
* 纯数字验证
|
||||
*
|
||||
|
Reference in New Issue
Block a user