-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(module:modal): loading state (confirmLoading) of default footer in modal opened by nzModalService #340
Conversation
props[ 'onCancel' ] = this._getConfirmCb(props[ 'nzOnCancel' ]); | ||
// 在service模式下,不需要nzOnOk,防止触发this.nzOnOk.emit(e); | ||
delete props[ 'nzOnOk' ]; | ||
delete props[ 'nzOnCancel' ]; | ||
return props; | ||
} | ||
|
||
_getConfirmCb(fn?: Function): Function { | ||
return (_close) => { | ||
_getConfirmCb(fn?: Function, isShowConfrimLoading: boolean = false): Function { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isShowConfrimLoading-> isShowConfirmLoading
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh! What a stupid mistake!
props[ 'onCancel' ] = this._getConfirmCb(props[ 'nzOnCancel' ]); | ||
// 在service模式下,不需要nzOnOk,防止触发this.nzOnOk.emit(e); | ||
delete props[ 'nzOnOk' ]; | ||
delete props[ 'nzOnCancel' ]; | ||
return props; | ||
} | ||
|
||
_getConfirmCb(fn?: Function): Function { | ||
return (_close) => { | ||
_getConfirmCb(fn?: Function, isShowConfrimLoading: boolean = false): Function { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @AlcheXie thanks for your pr.
It would be better submit an issue before pr any new feat, and doc needs updated when new feat added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I see. I will update these changes later.
8ad15d0
to
5fecd56
Compare
5fecd56
to
dd5f600
Compare
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
#365
What is the new behavior?
Does this PR introduce a breaking change?
Other information