-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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:calendar): sync some changes from ant-design (#2769) #2963
Conversation
Deploy preview for ng-zorro-master ready! Built with commit 535d595 |
Codecov Report
@@ Coverage Diff @@
## master #2963 +/- ##
==========================================
+ Coverage 97.37% 97.38% +0.01%
==========================================
Files 545 545
Lines 11260 11266 +6
Branches 809 809
==========================================
+ Hits 10964 10971 +7
+ Misses 188 187 -1
Partials 108 108
Continue to review full report at Codecov.
|
9c1f206
to
b681cba
Compare
this.nzModeChange.emit(mode); | ||
this.nzPanelChange.emit({'date': this.activeDate, 'mode': mode}); |
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.
组合 nzModeChange 和 nzValueChange 就可以得到 nzPanelChange 的内容,为什么还要再增加 nzPanelChange 这个 output
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.
为了和ant-design同步,这个issue不是这个意思?
} | ||
|
||
onMonthSelect(month: number): void { | ||
const date = setMonth(this.activeDate, month); | ||
this.updateDate(date); | ||
this.nzSelectChange.emit(date); |
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.
nzSelectChange 和 nzValueChange 的区别是什么
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?
Issue Number: #2769
What is the new behavior?
Does this PR introduce a breaking change?
Other information