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