mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
parent
78b053d9c0
commit
52da9b663b
@ -345,15 +345,26 @@ export default class SelectMobile extends React.Component<Props, SelectState> {
|
||||
>
|
||||
{renderMenu ? (
|
||||
multiple ? (
|
||||
renderMenu(item, {
|
||||
multiple,
|
||||
checkAll,
|
||||
checked,
|
||||
onChange: () => this.handleChange(item),
|
||||
inputValue: inputValue || '',
|
||||
searchable,
|
||||
index
|
||||
})
|
||||
<>
|
||||
<div
|
||||
title={item[labelField]}
|
||||
className={cx('Select-option-item-check')}
|
||||
onClick={() => !item.disabled && this.handleChange([item])}
|
||||
>
|
||||
{renderMenu(item, {
|
||||
multiple,
|
||||
checkAll,
|
||||
checked,
|
||||
onChange: () => this.handleChange(item),
|
||||
inputValue: inputValue || '',
|
||||
searchable,
|
||||
index
|
||||
})}
|
||||
</div>
|
||||
{checked ? (
|
||||
<Icon icon="check" className={cx('Select-option-mcheck')} />
|
||||
) : null}
|
||||
</>
|
||||
) : (
|
||||
renderMenu(item, {
|
||||
multiple,
|
||||
|
Loading…
Reference in New Issue
Block a user