---
order: 18.2
title:
  en-US: Generate Form Items
  zh-CN: 自动生成表单
---

## zh-CN

可通过 `TModel` 类型自动生成表单元素。当前支持string、DateTime、number、enum类型成员自动生成，根据成员是否为可空控制是否为必填

> **注意:** 此功能正在迭代中，后续本版可能会存在不兼容的变更。

## en-US

A form's set of `FormItem` can be automatically generated by the `TModel` type. This currently supports automatic generation for `string`, `DateTime`, `number`, and `enum` type members. A member can be marked as required or optional by its nullability.

> **Notice:** This feature is in iteration, and incompatible changes may occur in subsequent releases.