Merge "feat: add attributes to the ModalAction"
This commit is contained in:
commit
fbc8fde808
@ -455,7 +455,15 @@ export class ActionButton extends Component {
|
|||||||
if (!visible) {
|
if (!visible) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const { title, action, item, containerProps, items } = this.props;
|
const {
|
||||||
|
title,
|
||||||
|
action,
|
||||||
|
item,
|
||||||
|
containerProps,
|
||||||
|
items,
|
||||||
|
onFinishAction,
|
||||||
|
onCancelAction,
|
||||||
|
} = this.props;
|
||||||
const ActionComponent = action;
|
const ActionComponent = action;
|
||||||
const {
|
const {
|
||||||
okText,
|
okText,
|
||||||
@ -493,6 +501,9 @@ export class ActionButton extends Component {
|
|||||||
items={items}
|
items={items}
|
||||||
ref={this.formRef}
|
ref={this.formRef}
|
||||||
containerProps={containerProps}
|
containerProps={containerProps}
|
||||||
|
onFinishAction={onFinishAction}
|
||||||
|
onCancelAction={onCancelAction}
|
||||||
|
modalProps={modalProps}
|
||||||
/>
|
/>
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user