From 0f9cd35f97981838b360adf583ef7ed824fd2546 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Mon, 15 Jul 2019 17:50:56 +0800 Subject: [PATCH] filter --- public/react/src/modules/tpm/TPMsettings/TPMsettings.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js index ed8e53deb..abeb18c9f 100644 --- a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js +++ b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js @@ -1316,13 +1316,19 @@ export default class TPMsettings extends Component { // onMouseEnter={operateauthority?this.bigopen:""} onSelect={operateauthority?this.bigopens:""} // open={opers} + + showSearch + optionFilterProp="children" + filterOption={(input, option) => + option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0 + } > { settingsData === undefined ? "" : settingsData.shixun.main_type.map((item, key) => { return( - + ) }) }