mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
parent
1a2cb0882e
commit
c8d36ad8b3
@ -250,7 +250,7 @@ export default class DropDownButton extends React.Component<
|
||||
button: DropdownButton,
|
||||
index: number | string
|
||||
): React.ReactNode {
|
||||
const {render, classnames: cx, data} = this.props;
|
||||
const {render, classnames: cx, data, ignoreConfirm} = this.props;
|
||||
index = typeof index === 'number' ? index.toString() : index;
|
||||
|
||||
if (typeof button !== 'string' && Array.isArray(button?.children)) {
|
||||
@ -282,11 +282,17 @@ export default class DropDownButton extends React.Component<
|
||||
['is-disabled']: isDisabled(button, data)
|
||||
})}
|
||||
>
|
||||
{render(`button/${index}`, {
|
||||
type: 'button',
|
||||
...(button as any),
|
||||
isMenuItem: true
|
||||
})}
|
||||
{render(
|
||||
`button/${index}`,
|
||||
{
|
||||
type: 'button',
|
||||
...(button as any)
|
||||
},
|
||||
{
|
||||
isMenuItem: true,
|
||||
ignoreConfirm: ignoreConfirm
|
||||
}
|
||||
)}
|
||||
</li>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user