Skip to content
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

Merged
merged 1 commit into from
Feb 26, 2019

Conversation

zhytang
Copy link
Contributor

@zhytang zhytang commented Feb 24, 2019

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #2769

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@netlify
Copy link

netlify bot commented Feb 24, 2019

Deploy preview for ng-zorro-master ready!

Built with commit 535d595

https://deploy-preview-2963--ng-zorro-master.netlify.com

@codecov
Copy link

codecov bot commented Feb 24, 2019

Codecov Report

Merging #2963 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
components/calendar/nz-calendar.component.ts 97.38% <100%> (+0.1%) ⬆️
components/table/nz-table.component.ts 97.69% <0%> (+0.76%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update abb9ae4...535d595. Read the comment docs.

@zhytang zhytang force-pushed the add-zhytang branch 2 times, most recently from 9c1f206 to b681cba Compare February 24, 2019 09:40
components/calendar/demo/select.ts Outdated Show resolved Hide resolved
components/calendar/nz-calendar.component.ts Outdated Show resolved Hide resolved
components/calendar/nz-calendar.component.ts Outdated Show resolved Hide resolved
this.nzModeChange.emit(mode);
this.nzPanelChange.emit({'date': this.activeDate, 'mode': mode});
Copy link
Member

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

Copy link
Contributor Author

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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nzSelectChange 和 nzValueChange 的区别是什么

@vthinkxie vthinkxie merged commit 35a6f0d into NG-ZORRO:master Feb 26, 2019
@zhytang zhytang deleted the add-zhytang branch January 14, 2020 07:01
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this pull request Apr 9, 2020
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants