---
order: 100
title:
  zh-CN: 验证模式
  en-US: Validate Mode
---

## zh-CN

表单的验证模式，包括：默认、Rules、混合。

使用Rules模式可以直接在FormItem上附加验证特性，
适用场景：需要复用model类，但不同的页面有不同的验证规则，采用Rules模式可以避免重复创建多个类似的model类

## en-US

Form validation mode, including: default, Rules, mixed.

You can use the Rules mode to attach validationAttributes directly to the FormItem,
Applicable scenario: The model class needs to be reused, but different pages have different validation Rules. The Rules mode can avoid creating multiple similar model classes repeatedly