|
@ -112,9 +112,10 @@ export default class Item extends React.Component<ListItemProps, any> { |
|
|
))} |
|
|
))} |
|
|
</ul> |
|
|
</ul> |
|
|
); |
|
|
); |
|
|
|
|
|
const Tag = grid ? 'div' : 'li'; |
|
|
const itemChildren = ( |
|
|
const itemChildren = ( |
|
|
<div |
|
|
<Tag |
|
|
{...others} |
|
|
{...others as any} // `li` element don't have `onCopy` prop. Cast to any.
|
|
|
className={classNames(`${prefixCls}-item`, className, { |
|
|
className={classNames(`${prefixCls}-item`, className, { |
|
|
[`${prefixCls}-item-no-flex`]: !this.isFlexMode(), |
|
|
[`${prefixCls}-item-no-flex`]: !this.isFlexMode(), |
|
|
})} |
|
|
})} |
|
@ -134,7 +135,7 @@ export default class Item extends React.Component<ListItemProps, any> { |
|
|
actionsContent, |
|
|
actionsContent, |
|
|
extra ? React.cloneElement(extra as React.ReactElement<any>, { key: 'extra' }) : null, |
|
|
extra ? React.cloneElement(extra as React.ReactElement<any>, { key: 'extra' }) : null, |
|
|
]} |
|
|
]} |
|
|
</div> |
|
|
</Tag> |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
return grid ? ( |
|
|
return grid ? ( |
|
|