Skip to content

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

Merged
merged 1 commit into from
Dec 2, 2023

Conversation

OriginRing
Copy link
Collaborator

@OriginRing OriginRing commented Nov 28, 2023

fix: #8187

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: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

Copy link

zorro-bot bot commented Nov 28, 2023

This preview will be available after the AzureCI is passed.

@OriginRing OriginRing changed the title fix(module:water-mark): nzWaterMark is a block element && standalone feat(module:water-mark): nzWaterMark is a block element && standalone Nov 28, 2023
Copy link

codecov bot commented Nov 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0bebd6a) 91.70% compared to head (4f13fe1) 91.70%.

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.
📢 Have feedback on the report? Share it here.

@OriginRing OriginRing requested a review from Laffery November 28, 2023 07:39
@@ -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'
Copy link
Collaborator

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],
Copy link
Collaborator

Choose a reason for hiding this comment

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

看起来我们并没有使用到 CommonModule,我们可以删除它 :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

是的,我处理一下

Copy link
Collaborator

@HyperLife1119 HyperLife1119 left a comment

Choose a reason for hiding this comment

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

LGTM. WDYT? @Laffery

@Laffery
Copy link
Collaborator

Laffery commented Nov 28, 2023

LGTM. WDYT? @Laffery

LGTM too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WaterMark 水印组件在Safari上无法显示
3 participants