File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/easy-select Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,10 @@ class EasySelect extends React.Component<any, any> {
83
83
showSearch = { showSearch } // 默认支持查询
84
84
style = { { minWidth : 120 } } // todo: 暂时样式,有待商榷
85
85
onSearch = { servise && ! filterLocal ? this . onSearch : null }
86
- filterOption = { ! filterLocal ? null : ( input , option ) =>
86
+ filterOption = { ! filterLocal ? null : ( input : any , option : any ) =>
87
87
// 兼容数字和字符串等模糊查询
88
- option . props ? .children ? .toString ( ) . toLowerCase ( ) . indexOf ( input . toLowerCase ( ) ) >= 0 ||
89
- option . props ? .value ? .toString ( ) . toLowerCase ( ) . indexOf ( input . toLowerCase ( ) ) >= 0
88
+ option . props . children . toString ( ) . toLowerCase ( ) . indexOf ( input . toLowerCase ( ) ) >= 0 ||
89
+ option . props . value . toString ( ) . toLowerCase ( ) . indexOf ( input . toLowerCase ( ) ) >= 0
90
90
}
91
91
onPopupScroll = { this . companyScroll }
92
92
{ ...others }
You can’t perform that action at this time.
0 commit comments