src/templates/zshare/editTable/index.jsx
@@ -826,7 +826,17 @@ return item }) let reg = searchKey ? new RegExp(searchKey, 'i') : null let reg = null let regs = [] if (searchKey) { reg = new RegExp(searchKey, 'i') this.state.columns.forEach(col => { if (col.searchable) { regs.push(col.dataIndex) } }) } return ( <EditableContext.Provider value={this.props.form}> @@ -845,7 +855,7 @@ className += ' active' } if (searchKey) { if (!reg.test(record.field) && !reg.test(record.label)) { if (regs.findIndex(f => reg.test(record[f])) === -1) { className += ' hidden' } }