React中input输入框搜索功能

<TreeSelect
                                showSearch={true}
                                style={{width: '266px', border: 'none'}}
                                value={controlUnit}
                                dropdownStyle={{maxHeight: 400, overflow: 'auto'}}
                                placeholder="请选择"
                                allowClear
                                treeDefaultExpandAll
                                onChange={onChange}
                                treeData={treeData}
                                treeNodeFilterProp={"label"}
                            />
posted @ 2024-06-24 16:46  Felix_Openmind  阅读(8)  评论(0编辑  收藏  举报