type={item.type || ‘link’}
href={item.href}
onClick={item.onClick}
title={item.altTitle}
className={styles.menuBtn}
{item.title}
</Menu.Item>
)
)}
);
return (
style={ {
display: ‘flex’,
justifyContent: ‘flex-end’,
alignItems: ‘center’,
marginRight: 24,
marginBottom: 24,
…style,
}}
{_buttonList.map((item, index) => {
if (index < maxShowCount) {
if (item.isPopconfirm)
return (
<Popconfirm title={item.popTitle} key={index}
onConfirm={item.onClick}>
<Button
style={ { marginLeft: 8 }}
loading={item.loading}
icon={item.icon}
type={item.type}
{item.title}
);
return item.isDelete ? (
<Popconfirm title={item.btnTxt || ‘确认删除?’} key={index}
onConfirm={item.onClick}>
<Button
style={ { marginLeft: 8 }}
loading={item.loading}
icon={item.icon}
type={item.type}
{item.title}
) : (
<Button
style={ { marginLeft: 8 }}
key={index}
loading={item.loading}
icon={item.icon}
type