import { ValidateRuleOptions , Validator } from '../validator' ; /**
 * 必填验证器
 */ export class RequiredValidator implements Validator { validate ( attribute , value , options ? ) { if ( value === undefined || value === '' ) { return '不能为空' ; } return null ; } }