--- order: 24 title: zh-CN: 校验其他组件 en-US: Other Form Controls --- ## zh-CN 以上演示没有出现的表单控件对应的校验演示。 ## en-US Demonstration of validation configuration for form controls which are not shown in the demos above. ```tsx import { InboxOutlined, UploadOutlined } from '@ant-design/icons'; import { Button, Checkbox, Col, Form, InputNumber, Radio, Rate, Row, Select, Slider, Switch, Upload, } from 'antd'; import React from 'react'; const { Option } = Select; const formItemLayout = { labelCol: { span: 6 }, wrapperCol: { span: 14 }, }; const normFile = (e: any) => { console.log('Upload event:', e); if (Array.isArray(e)) { return e; } return e?.fileList; }; const App: React.FC = () => { const onFinish = (values: any) => { console.log('Received values of form: ', values); }; return (
China machines item 1 item 2 item 3 item 1 item 2 item 3 A B C D E F

Click or drag file to this area to upload

Support for a single or bulk upload.

); }; export default App; ```