feat: add action props to ModalAction component
add action props to ModalAction component, then can use the action static props for the instance function Change-Id: Ib22120105deb30f108218d040fc1fc33f88b39bc
This commit is contained in:
parent
74ffcc6215
commit
d5b58ac16d
@ -537,6 +537,7 @@ export class ActionButton extends Component {
|
|||||||
onFinishAction={onFinishAction}
|
onFinishAction={onFinishAction}
|
||||||
onCancelAction={onCancelAction}
|
onCancelAction={onCancelAction}
|
||||||
modalProps={modalProps}
|
modalProps={modalProps}
|
||||||
|
action={action}
|
||||||
/>
|
/>
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
|
@ -158,6 +158,11 @@ export default class ModalAction extends BaseForm {
|
|||||||
return (this.item || {}).id;
|
return (this.item || {}).id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get actionId() {
|
||||||
|
const { action } = this.props;
|
||||||
|
return action?.id;
|
||||||
|
}
|
||||||
|
|
||||||
get items() {
|
get items() {
|
||||||
const { items } = this.props;
|
const { items } = this.props;
|
||||||
return items;
|
return items;
|
||||||
|
Loading…
Reference in New Issue
Block a user