Commit 1b38650b by fanyj

tijiao

parent d5c9ac8f
...@@ -204,13 +204,17 @@ export const Basic = React.forwardRef(function ({}, ref) { ...@@ -204,13 +204,17 @@ export const Basic = React.forwardRef(function ({}, ref) {
style={{ width: 200 }} style={{ width: 200 }}
maxTagCount='responsive' maxTagCount='responsive'
showSearch showSearch
filterOption={(input, option) => optionLabelProp='label'
option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0 filterOption={(input, option) => {
} const searchText = input.toLowerCase()
const name = (option.name ?? '').toLowerCase()
const dname = (option.dname ?? '').toLowerCase()
return name.indexOf(searchText) >= 0 || dname.indexOf(searchText) >= 0
}}
> >
{ {
(currentProperty?.selectItems??[]).map((item, index) => ( (currentProperty?.selectItems??[]).map((item, index) => (
<Select.Option key={index} value={item.id}>{item.name}</Select.Option> <Select.Option key={index} value={item.id} label={item.name} name={item.name} dname={item.dname}>{item.dname}{item.name}</Select.Option>
)) ))
} }
</Select> </Select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment