> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 班级

> 选班级组件适用于K12校园中选择班级的应用场景，支持多选模式和数据填充功能。基础属性包括所在校区、所属学段等信息。

## 1. 使用场景

选班级组件可用于K12校园中需要选择班级的应用场景，如班级德育评价场景

## 2. 基础功能

### 2.1 多选模式

支持选择多个班级，当仅需要选择一个班级时，可以关闭该按钮。

| **表单设计态**                                                                                                                | **表单运行态**                                                                                                                |
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| ![](https://yida-support.oss-cn-shanghai.aliyuncs.com/static/png/1632879471802-94c32524-2f11-45a5-8101-08938560bc25.png) | ![](https://yida-support.oss-cn-shanghai.aliyuncs.com/static/png/1632879519445-09eaa165-63a2-4d58-be43-7060ecc0ec0d.png) |

### 2.2 数据填充

数据填充可以将班级的基础属性填充到宜搭应用的组件中，自动生成表单数据，班级的属性包括：

* 所在校区

* 所属学段

* 年级

* 班主任

* 班级学生人数

* 入学年份

| **表单设计态**                                                                                                                                                                                                                                              | **表单运行态**                                                                                                                |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| ![](https://yida-support.oss-cn-shanghai.aliyuncs.com/static/png/1632879568637-a3afb41a-336b-4df6-86f8-e543ab37033f.png)<br />![](https://yida-support.oss-cn-shanghai.aliyuncs.com/static/png/1632879614274-5f10185d-a49e-42d0-a536-8656f1e497c6.png) | ![](https://yida-support.oss-cn-shanghai.aliyuncs.com/static/png/1632879657887-7c425553-b2de-40f2-afb0-4608e6d5aabb.png) |

## 3. 数据来源

使用家校通讯录中的班级主数据
