前端项目实战25-忘记绑定form 无法置空

 <Form form={form}>

                                        <Form.Item

                                            name="machineTypeId"

                                            label="设备类型"

                                        >

                                            <Select

                                                onChange={onChangeSelect}

                                                showSearch

                                                style={{ width: 200 }}

                                                placeholder="请输入设备类型"

                                                optionFilterProp="children"

                                            >

                                                {styleList && styleList.map((item: any) => (

                                                    <Option value={item.id}>{item.name}</Option>

                                                ))}

                                            </Select>

                                        </Form.Item>

posted @ 2022-10-14 08:20  前端导师歌谣  阅读(6)  评论(0)    收藏  举报