-
Notifications
You must be signed in to change notification settings - Fork 4k
feat(module:water-mark): nzWaterMark is a block element && standalone #8197
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
Conversation
This preview will be available after the AzureCI is passed. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8197 +/- ##
=======================================
Coverage 91.70% 91.70%
=======================================
Files 519 519
Lines 17887 17887
Branches 2836 2836
=======================================
Hits 16403 16403
Misses 1182 1182
Partials 302 302 ☔ View full report in Codecov by Sentry. |
@@ -120,7 +122,8 @@ export class NzWaterMarkComponent implements AfterViewInit, OnInit, OnChanges, O | |||
width: '100%', | |||
height: '100%', | |||
pointerEvents: 'none', | |||
backgroundRepeat: 'repeat' | |||
backgroundRepeat: 'repeat', | |||
visibility: 'visible !important' |
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.
我们可以避免使用 !important
吗?
@@ -30,6 +30,8 @@ const FontGap = 3; | |||
|
|||
@Component({ | |||
selector: 'nz-water-mark', | |||
standalone: true, | |||
imports: [CommonModule], |
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.
看起来我们并没有使用到 CommonModule,我们可以删除它 :)
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.
是的,我处理一下
743c2f9
to
cbc9265
Compare
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.
LGTM. WDYT? @Laffery
cbc9265
to
4f13fe1
Compare
LGTM too. |
fix: #8187
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: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information