interface ruleParams {
  message?: string;
  trigger?: string;
}

export const phoneRule = (ruleParam?: ruleParams) => {
  const { message = '请输入正确的手机号码！', trigger = 'blur' } = ruleParam || {};
  return {
    pattern: /^1[3456789]\d{9}$/,
    message: message,
    trigger: trigger,
  };
};
