| | |
| | | style={{ width: '100%' }} |
| | | optionFilterProp="children" |
| | | value="请选择表名" |
| | | onChange={this.onTableChange} |
| | | onSelect={this.onTableChange} |
| | | dropdownClassName="mk-tables" |
| | | showArrow={false} |
| | | getPopupContainer={() => containerId ? document.getElementById(containerId) : document.body} |
| | | filterOption={(input, option) => { |
| | | return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0 || |
| | | option.props.value.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
| | | return option.props.children[0].toLowerCase().indexOf(input.toLowerCase()) >= 0 || |
| | | option.props.children[2].toLowerCase().indexOf(input.toLowerCase()) >= 0 |
| | | }} |
| | | > |
| | | {tables.map((table, index) => ( |
| | | <Option key={index} title={table.TbName} value={table.TbName}>{table.Remark}</Option> |
| | | <Option key={index} title={table.TbName} value={table.TbName}>{table.Remark}<br/>{table.TbName}</Option> |
| | | ))} |
| | | </Select> |
| | | {selectedTables.length > 0 && <List |